]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: bogus EBUSY when deleting flowtable after flush
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 12 Aug 2023 22:09:02 +0000 (00:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:13:01 +0000 (18:13 +0200)
commit00c0a1fb180e630e4a8de0324ebbb301edc8ad6b
tree7c9e419aac990544c634e65efa83c57da0ab5eb8
parent73b5b38711a16216d2e133bb9cb8420ac25665fc
netfilter: nf_tables: bogus EBUSY when deleting flowtable after flush

From: Laura Garcia Liebana <nevola@gmail.com>

commit 9b05b6e11d5e93a3a517cadc12b9836e0470c255 upstream.

The deletion of a flowtable after a flush in the same transaction
results in EBUSY. This patch adds an activation and deactivation of
flowtables in order to update the _use_ counter.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_flow_offload.c