]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: skip netdev hook unregistration if table is dormant
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 21 Mar 2024 00:28:07 +0000 (01:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:35:44 +0000 (16:35 +0200)
commitcf893953633db14a749aa6677bed20529cfb13ac
tree747bd19fa1e158c33a2c377ea64a65dd55a0ad73
parent2d0d1abe119af2595a760ccc404cdb4e8c846de9
netfilter: nf_tables: skip netdev hook unregistration if table is dormant

[ Upstream commit 216e7bf7402caf73f4939a8e0248392e96d7c0da ]

Skip hook unregistration when adding or deleting devices from an
existing netdev basechain. Otherwise, commit/abort path try to
unregister hooks which not enabled.

Fixes: b9703ed44ffb ("netfilter: nf_tables: support for adding new devices to an existing netdev chain")
Fixes: 7d937b107108 ("netfilter: nf_tables: support for deleting devices in an existing netdev chain")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c