[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210830110551.730c34c4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 30 Aug 2021 11:05:51 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Xiyu Yang <xiyuyang19@...an.edu.cn>
Cc: Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: sched: Fix qdisc_rate_table refcount leak when get
tcf_block failed
On Sun, 29 Aug 2021 23:58:01 +0800 Xiyu Yang wrote:
> The reference counting issue happens in one exception handling path of
> cbq_change_class(). When failing to get tcf_block, the function forgets
> to decrease the refcount of "rtab" increased by qdisc_put_rtab(),
> causing a refcount leak.
>
> Fix this issue by jumping to "failure" label when get tcf_block failed.
>
> Signed-off-by: Xiyu Yang <xiyuyang19@...an.edu.cn>
Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure")
Powered by blists - more mailing lists