[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180723220704.flqyeaaiznehmyln@salvia>
Date: Tue, 24 Jul 2018 00:07:04 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Florian Westphal <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
On Mon, Jul 23, 2018 at 12:47:14PM +0200, Florian Westphal wrote:
> 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.
Applied, thanks Florian.
Powered by blists - more mailing lists