summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorFlorian Westphal2018-07-31 13:41:23 +0200
committerPablo Neira Ayuso2018-08-16 19:37:00 +0200
commit3e673b23b541b8e7f773b2d378d6eb99831741cd (patch)
tree385d7d6561f7595aae77c8780709fec4a7aa5d36 /include/net/netfilter/nf_tables.h
parentnetfilter: nft_set: fix allocation size overflow in privsize callback. (diff)
downloadkernel-qcow2-linux-3e673b23b541b8e7f773b2d378d6eb99831741cd.tar.gz
kernel-qcow2-linux-3e673b23b541b8e7f773b2d378d6eb99831741cd.tar.xz
kernel-qcow2-linux-3e673b23b541b8e7f773b2d378d6eb99831741cd.zip
netfilter: fix memory leaks on netlink_dump_start error
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 move allocations there. Same pattern as used in commit 90fd131afc565159c9e0ea742f082b337e10f8c6 ("netfilter: nf_tables: move dumper state allocation into ->start"). Reported-by: shaochun chen <cscnull@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables.h')
0 files changed, 0 insertions, 0 deletions