]> 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)
commit3032f39ca21483606f3cc7101954d3a4f6fa7b09
tree5befebf050b7a22af1ae20fa3b71d5959e780e0a
parent0ea0e56b04cc6d4ce161db6ca1675abf9593bb1d
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: 5bd078f4a64d ("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