]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: bogus EBUSY when deleting set after flush
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Mar 2019 14:30:03 +0000 (15:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Mar 2019 12:19:24 +0000 (13:19 +0100)
commitfd1b49a128be73e3bf1d42722a9a91fe17033fe0
tree810f730706a6175ce19697e4eb3f2a81a1c0ca99
parent88b684fb61b582be51226c99a7c4a124256c0288
netfilter: nf_tables: bogus EBUSY when deleting set after flush

Set deletion after flush coming in the same batch results in EBUSY. Add
set use counter to track the number of references to this set from
rules. We cannot rely on the list of bindings for this since such list
is still populated from the preparation phase.

Reported-by: Václav Zindulka <vaclav.zindulka@tlapnet.cz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_dynset.c
net/netfilter/nft_lookup.c
net/netfilter/nft_objref.c