[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpV6rFHP_N21LqZPJ1coDd8vmfCe2-NQp5p9-Fy9dS3s+g@mail.gmail.com>
Date: Thu, 29 Nov 2018 14:44:16 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Davide Caratti <dcaratti@...hat.com>
Cc: Jamal Hadi Salim <jhs@...atatu.com>, Jiri Pirko <jiri@...nulli.us>,
David Miller <davem@...emloft.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH net] net/sched: act_police: fix memory leak in case of
invalid control action
On Wed, Nov 28, 2018 at 9:44 AM Davide Caratti <dcaratti@...hat.com> wrote:
>
> when users set an invalid control action, kmemleak complains as follows:
...
> change tcf_police_init() to avoid leaking 'new' in case TCA_POLICE_RESULT
> contains TC_ACT_GOTO_CHAIN extended action.
>
> Fixes: c08f5ed5d625 ("net/sched: act_police: disallow 'goto chain' on fallback control action")
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Acked-by: Cong Wang <xiyou.wangcong@...il.com>
Powered by blists - more mailing lists