Skip to content

net: fix passive TFO socket having invalid NAPI ID

David Wei netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesApplied 4/4
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

--------------
* Use sk_mark_napi_id_set() instead
* Add fixes tag to patch 4

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests: netdevsim: improve lib.sh include in peer.shtools/testing/selftests/drivers/net/netdevsim/peer.sh+2 -10 repliesApplied
2/4selftests: net: add passive TFO test binarytools/testing/selftests/net/.gitignore tools/testing/selftests/net/Makefile tools/testing/selftests/net/tfo.c+173 -00 repliesApplied
3/4selftests: net: add test for passive TFO socket NAPI IDtools/testing/selftests/net/Makefile tools/testing/selftests/net/tfo_passive.sh+113 -00 repliesApplied
4/4tcp: fix passive TFO socket having invalid NAPI IDnet/ipv4/tcp_fastopen.c+3 -02 repliesApplied

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchKuniyuki IwashimaEric Dumazet
1/4
2/4
3/4
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/4] net: fix passive TFO socket having invalid NAPI ID

Found a bug where an accepted passive TFO socket returns an invalid NAPI ID (i.e. 0) from SO_INCOMING_NAPI_ID. Add a selftest for this using netdevsim and fix the bug.

Patch 1 is a drive-by fix for the lib.sh include in an existing drivers/net/netdevsim/peer.sh selftest.

Patch 2 adds a test binary for a simple TFO server/client.

Patch 3 adds a selftest for checking that the NAPI ID of a passive TFO socket is valid. This will currently fail.

Patch 4 adds a fix for the bug.

Changes in v2:
--------------
* Use sk_mark_napi_id_set() instead
* Add fixes tag to patch 4

David Wei (4):
selftests: netdevsim: improve lib.sh include in peer.sh
selftests: net: add passive TFO test binary
selftests: net: add test for passive TFO socket NAPI ID
tcp: fix passive TFO socket having invalid NAPI ID

 net/ipv4/tcp_fastopen.c                       |   3 +
 .../selftests/drivers/net/netdevsim/peer.sh   |   3 +-
 tools/testing/selftests/net/.gitignore        |   1 +
 tools/testing/selftests/net/Makefile          |   2 +
 tools/testing/selftests/net/tfo.c             | 171 ++++++++++++++++++
 tools/testing/selftests/net/tfo_passive.sh    | 112 ++++++++++++
 6 files changed, 291 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/net/tfo.c
 create mode 100755 tools/testing/selftests/net/tfo_passive.sh
Signature · 1 line
2.47.1