Skip to content

Commit 8ca0cc6

Browse files
committed
netfilter: nf_tables: skip bound chain in netns release path
JIRA: https://issues.redhat.com/browse/RHEL-1720 JIRA: https://issues.redhat.com/browse/RHEL-1721 Upstream Status: commit 751d460 commit 751d460 Author: Pablo Neira Ayuso <[email protected]> Date: Wed Jul 19 20:19:43 2023 +0200 netfilter: nf_tables: skip bound chain in netns release path Skip bound chain from netns release path, the rule that owns this chain releases these objects. Fixes: d0e2c7d ("netfilter: nf_tables: add NFT_CHAIN_BINDING") Signed-off-by: Pablo Neira Ayuso <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Florian Westphal <[email protected]>
1 parent 4427002 commit 8ca0cc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10441,6 +10441,9 @@ static void __nft_release_table(struct net *net, struct nft_table *table)
1044110441
ctx.family = table->family;
1044210442
ctx.table = table;
1044310443
list_for_each_entry(chain, &table->chains, list) {
10444+
if (nft_chain_is_bound(chain))
10445+
continue;
10446+
1044410447
ctx.chain = chain;
1044510448
list_for_each_entry_safe(rule, nr, &chain->rules, list) {
1044610449
list_del(&rule->list);

0 commit comments

Comments
 (0)