Message ID | 20240711093948.3816-2-pablo@netfilter.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 631a4b3ddc7831b20442c59c28b0476d0704c9af |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net,1/2] netfilter: nfnetlink_queue: drop bogus WARN_ON | expand |
Hello: This series was applied to netdev/net.git (main) by Pablo Neira Ayuso <pablo@netfilter.org>: On Thu, 11 Jul 2024 11:39:47 +0200 you wrote: > From: Florian Westphal <fw@strlen.de> > > Happens when rules get flushed/deleted while packet is out, so remove > this WARN_ON. > > This WARN exists in one form or another since v4.14, no need to backport > this to older releases, hence use a more recent fixes tag. > > [...] Here is the summary with links: - [net,1/2] netfilter: nfnetlink_queue: drop bogus WARN_ON https://git.kernel.org/netdev/net/c/631a4b3ddc78 - [net,2/2] netfilter: nf_tables: prefer nft_chain_validate https://git.kernel.org/netdev/net/c/cff3bd012a95 You are awesome, thank you!
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index f1c31757e496..55e28e1da66e 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -325,7 +325,7 @@ static void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict) hooks = nf_hook_entries_head(net, pf, entry->state.hook); i = entry->hook_index; - if (WARN_ON_ONCE(!hooks || i >= hooks->num_hook_entries)) { + if (!hooks || i >= hooks->num_hook_entries) { kfree_skb_reason(skb, SKB_DROP_REASON_NETFILTER_DROP); nf_queue_entry_free(entry); return;