]> 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)
commit153f39cafe69751eeafea922e767696450289a46
tree810f730706a6175ce19697e4eb3f2a81a1c0ca99
parentbad142d58778a8823ca0726a7539fe0c134c366f
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