liveupdate: suppress TCP RST during post-kexec restore window
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | liveupdate: track post-kexec restore windowinclude/ kernel/ kernel/ +1 more | +57 | 0 replies | |
| 2/3 | liveupdate: bound and control post-kexec restore windowinclude/ include/ kernel/ +2 more | +103 | 0 replies | |
| 3/3 | liveupdate: suppress TCP RST during post-kexec restore windowDocumentation/ include/ kernel/ +3 more | +46 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/3] liveupdate: suppress TCP RST during post-kexec restore window
LUO supports kexec-based live update where userspace restores preserved state after the new kernel boots. For established TCP connections that are restored in userspace (e.g. CRIU), there is an unavoidable window where the new kernel has no socket yet but the peer can still send packets. The TCP no-socket path replies with a RST to segments with ACK set, causing the peer to immediately tear down the connection.
This series tracks a bounded "restore window" in which incoming LUO sessions are expected to be retrieved and finished. The window ends automatically when all incoming sessions are retrieved and finished (or their session file descriptors are closed), can be terminated early via the global LIVEUPDATE_IOCTL_RESTORE_DONE, and is also bounded by a hard timeout (15 minutes) so it cannot remain open indefinitely.
On top of that, an optional cmdline knob, liveupdate_tcp_rst_suppress=on, drops established (ACK && !SYN) segments that would otherwise trigger a RST while the restore window is in progress. Default is off and requires liveupdate=on.
Tested with an established TCP stream across LUO kexec + CRIU restore; calling RESTORE_DONE after restore avoids TCP RST and the connection continues.
Li Chen (3):
liveupdate: track post-kexec restore window
liveupdate: bound and control post-kexec restore window
liveupdate: suppress TCP RST during post-kexec restore window
.../admin-guide/kernel-parameters.txt | 10 +++ include/linux/liveupdate.h | 26 ++++++ include/uapi/linux/liveupdate.h | 34 ++++++++ kernel/liveupdate/luo_core.c | 31 +++++++ kernel/liveupdate/luo_internal.h | 5 ++ kernel/liveupdate/luo_session.c | 85 ++++++++++++++++++- net/ipv4/tcp_ipv4.c | 5 ++ net/ipv6/tcp_ipv6.c | 5 ++ 8 files changed, 198 insertions(+), 3 deletions(-)
Signature · 1 line
2.52.0