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)
commitfcd53c51d03709bc429822086f1e9b3e88904284
tree5befebf050b7a22af1ae20fa3b71d5959e780e0a
parent574a5b85dc3b9ab672ff3fba0ee020f927960648
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: f87b9464d152 ("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