public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/8] Fix a number of bugs with handling of TCP packets from tap
@ 2023-09-08  1:49 David Gibson
  2023-09-08  1:49 ` [PATCH 1/8] tcp, tap: Correctly advance through packets in tcp_tap_handler() David Gibson
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: David Gibson @ 2023-09-08  1:49 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: jlesev, David Gibson

In the course of investigating bug 68, I discovered a number of pretty
serious bugs in how we handle various cases in tcp_tap_handler() and
tcp_data_from_tap().  This series fixes a number of them.

Note that while I'm pretty sure the bugs fixed here are real, I
haven't yet positively traced how they lead to the symptoms in bug 68
- I'm still waiting on the results from some special instrumentation
to track that down.

Link: https://bugs.passt.top/show_bug.cgi?id=68

David Gibson (8):
  tcp, tap: Correctly advance through packets in tcp_tap_handler()
  udp, tap: Correctly advance through packets in udp_tap_handler()
  tcp: Remove some redundant packet_get() operations
  tcp: Never hash match closed connections
  tcp: Return consumed packet count from tcp_data_from_tap()
  tcp: Correctly handle RST followed rapidly by SYN
  tcp: Consolidate paths where we initiate reset on tap interface
  tcp: Correct handling of FIN,ACK followed by SYN

 tap.c | 29 ++++++++++--------
 tcp.c | 98 +++++++++++++++++++++++++++++++----------------------------
 tcp.h |  2 +-
 udp.c | 15 ++++-----
 udp.h |  2 +-
 5 files changed, 78 insertions(+), 68 deletions(-)

-- 
2.41.0


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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-08  1:49 [PATCH 0/8] Fix a number of bugs with handling of TCP packets from tap David Gibson
2023-09-08  1:49 ` [PATCH 1/8] tcp, tap: Correctly advance through packets in tcp_tap_handler() David Gibson
2023-09-08  1:49 ` [PATCH 2/8] udp, tap: Correctly advance through packets in udp_tap_handler() David Gibson
2023-09-08  1:49 ` [PATCH 3/8] tcp: Remove some redundant packet_get() operations David Gibson
2023-09-08  1:49 ` [PATCH 4/8] tcp: Never hash match closed connections David Gibson
2023-09-08  1:49 ` [PATCH 5/8] tcp: Return consumed packet count from tcp_data_from_tap() David Gibson
2023-09-08  1:49 ` [PATCH 6/8] tcp: Correctly handle RST followed rapidly by SYN David Gibson
2023-09-08  1:49 ` [PATCH 7/8] tcp: Consolidate paths where we initiate reset on tap interface David Gibson
2023-09-08  1:49 ` [PATCH 8/8] tcp: Correct handling of FIN,ACK followed by SYN David Gibson
2023-09-08 15:27 ` [PATCH 0/8] Fix a number of bugs with handling of TCP packets from tap Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).