[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180723.094734.1171302416140052925.davem@davemloft.net>
Date: Mon, 23 Jul 2018 09:47:34 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org,
cscnull@...il.com
Subject: Re: [PATCH nf] netfilter: nf_tables: move dumper state alloation
into ->start
From: Florian Westphal <fw@...len.de>
Date: Mon, 23 Jul 2018 12:47:14 +0200
> Shaochun Chen points out we leak dumper filter state allocations
> stored in dump_control->data in case there is an error before netlink sets
> cb_running (after which ->done will be called at some point).
>
> In order to fix this, add .start functions and do the allocations
> there.
>
> ->done is going to clean up, and in case error occurs before
> ->start invocation no cleanups need to be done anymore.
>
> Reported-by: shaochun chen <cscnull@...il.com>
> Signed-off-by: Florian Westphal <fw@...len.de>
Acked-by: David S. Miller <davem@...emloft.net>
Powered by blists - more mailing lists