netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf 0/2] netfilter: nf_nat: fix yet another bizarre early demux corner case
@ 2023-08-15  9:52 Florian Westphal
  2023-08-15  9:52 ` [PATCH nf 1/2] netfilter: nf_nat: undo erroneous tcp edemux lookup after port clash Florian Westphal
  2023-08-15  9:52 ` [PATCH nf 2/2] selftests: netfilter: test nat source port clash resolution interaction with tcp early demux Florian Westphal
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Westphal @ 2023-08-15  9:52 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

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(-)

-- 
2.41.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-15  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15  9:52 [PATCH nf 0/2] netfilter: nf_nat: fix yet another bizarre early demux corner case Florian Westphal
2023-08-15  9:52 ` [PATCH nf 1/2] netfilter: nf_nat: undo erroneous tcp edemux lookup after port clash Florian Westphal
2023-08-15  9:52 ` [PATCH nf 2/2] selftests: netfilter: test nat source port clash resolution interaction with tcp early demux Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).