Skip to content

netfilter: nf_nat: fix yet another bizarre early demux corner case

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: nf_nat: undo erroneous tcp edemux lookup after port clashnet/netfilter/nf_nat_proto.c+61 -30 replies
2/2selftests: netfilter: test nat source port clash resolution interaction with tcp early demuxtools/testing/selftests/netfilter/nf_nat_edemux.sh+37 -90 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: nf_nat: fix yet another bizarre early demux corner case

There is another corner case where early demux can end up assigning the wrong socket to skb->sk.

This extends the existing workaround in nf_nat and the test case to demonstrate the problem.

Florian Westphal (2):
netfilter: nf_nat: undo erroneous tcp edemux lookup after port clash
selftests: netfilter: test nat source port clash resolution
interaction with tcp early demux

 net/netfilter/nf_nat_proto.c                  | 63 ++++++++++++++++++-
 .../selftests/netfilter/nf_nat_edemux.sh      | 46 +++++++++++---
 2 files changed, 97 insertions(+), 12 deletions(-)
Signature · 1 line
2.41.0