Skip to content

Commit fedf7f9

Browse files
committed
netfilter: nf_tables: fix scheduling-while-atomic splat
jira VULN-429 subsystem-sync netfilter:nf_tables 4.18.0-502 commit-author Florian Westphal <fw@strlen.de> commit 2024439 nf_tables_check_loops() can be called from rhashtable list walk so cond_resched() cannot be used here. Fixes: 81ea010 ("netfilter: nf_tables: add rescheduling points during loop detection walks") Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> (cherry picked from commit 2024439) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent dbb1f88 commit fedf7f9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8360,13 +8360,9 @@ static int nf_tables_check_loops(const struct nft_ctx *ctx,
83608360
break;
83618361
}
83628362
}
8363-
8364-
cond_resched();
83658363
}
83668364

83678365
list_for_each_entry(set, &ctx->table->sets, list) {
8368-
cond_resched();
8369-
83708366
if (!nft_is_active_next(ctx->net, set))
83718367
continue;
83728368
if (!(set->flags & NFT_SET_MAP) ||

0 commit comments

Comments
 (0)