netfilter: nf_nat: fix yet another bizarre early demux corner case
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | netfilter: nf_nat: undo erroneous tcp edemux lookup after port clashnet/ | +61 | 0 replies | |
| 2/2 | selftests: netfilter: test nat source port clash resolution interaction with tcp early demuxtools/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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