public inbox for linux-mm@kvack.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] liveupdate: tighten handover cleanup and session lifetime
@ 2026-03-24 21:27 Oskar Gerlicz Kowalczuk
  2026-03-24 21:27 ` [PATCH v4 1/5] liveupdate: block outgoing session updates during reboot Oskar Gerlicz Kowalczuk
  2026-03-25 13:38 ` [PATCH v4 0/5] liveupdate: tighten handover cleanup and session lifetime Pasha Tatashin
  0 siblings, 2 replies; 11+ messages in thread
From: Oskar Gerlicz Kowalczuk @ 2026-03-24 21:27 UTC (permalink / raw)
  To: Pasha Tatashin, Mike Rapoport, Baoquan He
  Cc: Pratyush Yadav, Andrew Morton, linux-kernel, kexec, linux-mm,
	Oskar Gerlicz Kowalczuk

Hi Pasha,

this v4 keeps the simpler direction from your mail: outgoing handover is
still driven by a boolean rebooting gate, refcount pinning of outgoing
sessions during serialization, and session->mutex as the serialization
point for in-flight mutations. There is no return to the earlier closing
counter or a larger session state machine.

The main changes in this respin are:

- reshape the series into five commits, each building and standing on its
  own
- keep incoming session origin immutable and use retrieved only as the
  checked-out bit
- make FINISH and implicit close consume incoming sessions without
  reopening races through retrieve-by-name
- route deserialize failures through explicit rollback paths for
  sessions, files, and serialized memfd state
- validate KHO-preserved extents before walking serialized metadata
- harden incoming FLB lifetime and remaining teardown paths

Patches 1-4 keep the core session, kexec, deserialize and validation work
separate. Patch 5 carries the remaining FLB and teardown fixes needed to
match the final tree.

Oskar Gerlicz Kowalczuk (5):
  liveupdate: block outgoing session updates during reboot
  kexec: abort liveupdate handover on kernel_kexec() unwind
  liveupdate: fail session restore on file deserialization errors
  liveupdate: validate handover metadata before using it
  liveupdate: harden FLB lifetime and remaining teardown paths

 include/linux/kexec_handover.h     |  13 +
 include/linux/liveupdate.h         |  17 +-
 kernel/kexec_core.c                |   4 +
 kernel/liveupdate/kexec_handover.c |  22 ++
 kernel/liveupdate/luo_core.c       |  16 +-
 kernel/liveupdate/luo_file.c       | 237 ++++++++++++--
 kernel/liveupdate/luo_flb.c        | 116 +++++--
 kernel/liveupdate/luo_internal.h   |  14 +-
 kernel/liveupdate/luo_session.c    | 500 ++++++++++++++++++++++++-----
 lib/tests/liveupdate.c             |   2 +
 mm/memfd_luo.c                     | 160 +++++++--
 11 files changed, 934 insertions(+), 167 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-03-26 14:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 21:27 [PATCH v4 0/5] liveupdate: tighten handover cleanup and session lifetime Oskar Gerlicz Kowalczuk
2026-03-24 21:27 ` [PATCH v4 1/5] liveupdate: block outgoing session updates during reboot Oskar Gerlicz Kowalczuk
2026-03-24 21:27   ` [PATCH v4 2/5] kexec: abort liveupdate handover on kernel_kexec() unwind Oskar Gerlicz Kowalczuk
2026-03-24 21:39     ` [PATCH v4 3/5] liveupdate: fail session restore on file deserialization errors Oskar Gerlicz Kowalczuk
2026-03-24 21:39       ` [PATCH v4 4/5] liveupdate: validate handover metadata before using it Oskar Gerlicz Kowalczuk
2026-03-24 21:39         ` [PATCH v4 5/5] liveupdate: harden FLB lifetime and remaining teardown paths Oskar Gerlicz Kowalczuk
2026-03-25 13:38 ` [PATCH v4 0/5] liveupdate: tighten handover cleanup and session lifetime Pasha Tatashin
2026-03-26  6:43   ` oskar
2026-03-26  6:47   ` oskar
2026-03-26  9:18     ` Mike Rapoport
2026-03-26 14:49       ` Pasha Tatashin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox