mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 12:30:23 +09:00
netfilter: nf_tables: skip bound chain in netns release path
[ Upstream commit751d460ccf] Skip bound chain from netns release path, the rule that owns this chain releases these objects. Fixes:d0e2c7de92("netfilter: nf_tables: add NFT_CHAIN_BINDING") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
706ce3c81b
commit
dbe1a82d46
@@ -10192,6 +10192,9 @@ static void __nft_release_table(struct net *net, struct nft_table *table)
|
||||
ctx.family = table->family;
|
||||
ctx.table = table;
|
||||
list_for_each_entry(chain, &table->chains, list) {
|
||||
if (nft_chain_is_bound(chain))
|
||||
continue;
|
||||
|
||||
ctx.chain = chain;
|
||||
list_for_each_entry_safe(rule, nr, &chain->rules, list) {
|
||||
list_del(&rule->list);
|
||||
|
||||
Reference in New Issue
Block a user