[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260130145122.368748-1-me@linux.beauty>
Date: Fri, 30 Jan 2026 22:51:16 +0800
From: Li Chen <me@...ux.beauty>
To: Pasha Tatashin <pasha.tatashin@...een.com>,
Mike Rapoport <rppt@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Neal Cardwell <ncardwell@...gle.com>,
"David S. Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Jonathan Corbet <corbet@....net>,
netdev@...r.kernel.org,
linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Pratyush Yadav <pratyush@...nel.org>,
Kuniyuki Iwashima <kuniyu@...gle.com>,
Simon Horman <horms@...nel.org>
Subject: [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(-)
--
2.52.0
Powered by blists - more mailing lists