netfilter: nf_tables: discard table flag update with pending basechain deletion
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 3 Apr 2024 17:35:30 +0000 (19:35 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 4 Apr 2024 09:38:35 +0000 (11:38 +0200)
commit1bc83a019bbe268be3526406245ec28c2458a518
treebfa1e23fadc72ec10c914021bacc1336812e886e
parent24225011d81b471acc0e1e315b7d9905459a6304
netfilter: nf_tables: discard table flag update with pending basechain deletion

Hook unregistration is deferred to the commit phase, same occurs with
hook updates triggered by the table dormant flag. When both commands are
combined, this results in deleting a basechain while leaving its hook
still registered in the core.

Fixes: 179d9ba5559a ("netfilter: nf_tables: fix table flag updates")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c