]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_dup_netdev: add and use recursion counter
authorFlorian Westphal <fw@strlen.de>
Mon, 20 Jun 2022 14:17:31 +0000 (16:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Jun 2022 08:50:41 +0000 (10:50 +0200)
commit14be6f13ae2c7e11d4a1756b84b1299d71e98d69
tree5befebf050b7a22af1ae20fa3b71d5959e780e0a
parentf9f4f14518b7490c71807a411ce16a5386db6241
netfilter: nf_dup_netdev: add and use recursion counter

Now that the egress function can be called from egress hook, we need
to avoid recursive calls into the nf_tables traverser, else crash.

Fixes: 2da1c50cc54c ("netfilter: nft_fwd_netdev: Support egress hook")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_dup_netdev.c