public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* Migration failure across bridge
@ 2025-03-18  5:21 David Gibson
  2025-03-18  8:28 ` Stefano Brivio
  0 siblings, 1 reply; 3+ messages in thread
From: David Gibson @ 2025-03-18  5:21 UTC (permalink / raw)
  To: Stefano Brivio; +Cc: passt-dev

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

Continued investigating the problem with migration failing across a
bridge.

Good news is I've found the problem... or at least one problem.  Bad
news is we'll have to change the migration stream format to fix it.

The packets are being dropped in tcp_validate_incoming() due to a
failed PAWS check (skb drop reason "TCP_RFC7323_PAWS").  That in turn
looks to be because we don't preserve TCP timestamp state across the
migration.  We preserve _whether_ TCP timestamps are active on the
connection (TCPOPT_TIMESTAMP entry in TCP_REPAIR_OPTIONS), but we
don't preserve the current timestamp values (TCP_TIMESTAMP socket
option).  The equivalent CRIU code is

https://github.com/checkpoint-restore/criu/blob/d18912fc88f3dc7bde5fdfa3575691977eb21753/soccr/soccr.c#L266

and

https://github.com/checkpoint-restore/criu/blob/d18912fc88f3dc7bde5fdfa3575691977eb21753/soccr/soccr.c#L572

I'll work on writing a fix tomorrow.

Not yet sure why we didn't hit this with a local migration.  I'm
guessing some part of being a local connection means we're bypassing
the PAWS check.

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2025-03-19  5:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18  5:21 Migration failure across bridge David Gibson
2025-03-18  8:28 ` Stefano Brivio
2025-03-19  5:22   ` David Gibson

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).