Skip to content

netfilter: fix two nf_dup bugs with egress hook

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: nf_dup_netdev: do not push mac header a second timenet/netfilter/nf_dup_netdev.c+10 -40 replies
2/2netfilter: nf_dup_netdev: add and use recursion counternet/netfilter/nf_dup_netdev.c+15 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nf 0/2] netfilter: fix two nf_dup bugs with egress hook

We need to be more careful now that nf_dup is exposed to new egress hook.

When called from egress hook, we need to skip push of mac header, this is only ok for ingress invocation.

Also add a recursion counter to prevent re-entry into the expression.

Florian Westphal (2):
netfilter: nf_dup_netdev: do not push mac header a second time
netfilter: nf_dup_netdev: add and use recursion counter

 net/netfilter/nf_dup_netdev.c | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
Signature · 1 line
2.35.1