public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/4] Corrections to seeting of ACK flag in TCP packets
@ 2024-03-26  5:42 David Gibson
  2024-03-26  5:42 ` [PATCH 1/4] tcp: Split handling of DUP_ACK from ACK David Gibson
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: David Gibson @ 2024-03-26  5:42 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: maxi.rostock, pholzing, David Gibson

A recently reported podman bug shows transfer failures in podman
custom rootless networks connected with pasta.  Analysis suggests this
is triggered by pasta generating a TCP packet without the ACK flag
when it should have one.

The exact symptoms seem to arise because of some odd kernel behaviour
- rather than simply ignoring the packet, an RST is observed killing
the connection.  However, there are also packets seen after the RST
which don't seem to make sense.

While there are some mysteries which we still hope to track down here,
in the meantime it definitely seems like pasta's ACK behaviour isn't
correct, and appears to trigger the other problems.  So, fix it.

Link: https://github.com/containers/podman/issues/22146
Link: https://bugs.passt.top/show_bug.cgi?id=84

David Gibson (4):
  tcp: Split handling of DUP_ACK from ACK
  tcp: Rearrange logic for setting ACK flag in tcp_send_flag()
  tcp: Never automatically add the ACK flag to RST packets
  tcp: Unconditionally force ACK for all !SYN, !RST packets

 tcp.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

-- 
2.44.0


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

end of thread, other threads:[~2024-03-26  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26  5:42 [PATCH 0/4] Corrections to seeting of ACK flag in TCP packets David Gibson
2024-03-26  5:42 ` [PATCH 1/4] tcp: Split handling of DUP_ACK from ACK David Gibson
2024-03-26  5:42 ` [PATCH 2/4] tcp: Rearrange logic for setting ACK flag in tcp_send_flag() David Gibson
2024-03-26  5:42 ` [PATCH 3/4] tcp: Never automatically add the ACK flag to RST packets David Gibson
2024-03-26  5:42 ` [PATCH 4/4] tcp: Unconditionally force ACK for all !SYN, !RST packets David Gibson
2024-03-26  8:54 ` [PATCH 0/4] Corrections to seeting of ACK flag in TCP packets 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).