net: fix passive TFO socket having invalid NAPI ID
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
- v2 Latest4 patches 2 repliesApplied 4/4
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | selftests: netdevsim: improve lib.sh include in peer.shtools/ | +2 | 0 replies | Applied |
| 2/4 | selftests: net: add passive TFO test binarytools/ tools/ tools/ | +173 | 0 replies | Applied |
| 3/4 | selftests: net: add test for passive TFO socket NAPI IDtools/ tools/ | +113 | 0 replies | Applied |
| 4/4 | tcp: fix passive TFO socket having invalid NAPI IDnet/ | +3 | 2 replies | Applied |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Kuniyuki Iwashima | Eric Dumazet |
|---|---|---|
| 1/4 | ||
| 2/4 | ||
| 3/4 | ||
| 4/4 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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