public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] liveupdate: serialization safety and race fixes
@ 2026-05-06  4:32 Pasha Tatashin
  2026-05-06  4:32 ` [PATCH v1 1/3] liveupdate: skip serialization for context-preserving kexec Pasha Tatashin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Pasha Tatashin @ 2026-05-06  4:32 UTC (permalink / raw)
  To: rppt, sourabhjain, jbouron, akpm, bhe, linux-kernel,
	dan.carpenter, liaoyuanhong, pasha.tatashin, rafael.j.wysocki,
	piliu, kexec, pratyush, graf, mario.limonciello

This series addresses several issues related to the synchronization between
the reboot process and LUO session management.

1. Skip serialization for context-preserving kexec:
   A preserve_context kexec returns to the current kernel, which is
   unrelated to live update where state is passed to the next kernel.
   Skipping serialization avoids unnecessary work and prevents sessions
   from being left in a frozen state upon return.

2. Block session mutations during serialization:
   Once serialization has started, no new outgoing session mutations
   (creations or file preservations) should occur. A 'rebooting' flag
   is introduced to ensure this.

3. Pin sessions and handle inactive ones:
   Ensures that outgoing sessions are pinned by taking a reference to
   their struct file during serialization. This prevents race conditions
   where a user process might close a session while it is being
   serialized. Inactive sessions are cleaned up and removed.

Tree: git.kernel.org/pub/scm/linux/kernel/git/tatashin/linux.git
Branch: luo-reboot-sync/v1

Pasha Tatashin (3):
  liveupdate: skip serialization for context-preserving kexec
  liveupdate: block outgoing session mutations during serialization
  liveupdate: pin sessions and handle inactive ones during serialization

 kernel/kexec_core.c              |  8 +--
 kernel/liveupdate/luo_internal.h |  1 +
 kernel/liveupdate/luo_session.c  | 90 ++++++++++++++++++++++++++++++--
 3 files changed, 91 insertions(+), 8 deletions(-)


base-commit: 7b0b68b2b95606e65594958686833e53423f58f2
-- 
2.54.0.545.g6539524ca2-goog


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

end of thread, other threads:[~2026-05-06 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06  4:32 [PATCH v1 0/3] liveupdate: serialization safety and race fixes Pasha Tatashin
2026-05-06  4:32 ` [PATCH v1 1/3] liveupdate: skip serialization for context-preserving kexec Pasha Tatashin
2026-05-06  8:31   ` Pratyush Yadav
2026-05-06 15:12     ` Pasha Tatashin
2026-05-06 15:33       ` Pratyush Yadav
2026-05-06 16:06         ` Pasha Tatashin
2026-05-06  4:32 ` [PATCH v1 2/3] liveupdate: block outgoing session mutations during serialization Pasha Tatashin
2026-05-06  8:47   ` Pratyush Yadav
2026-05-06 15:25     ` Pasha Tatashin
2026-05-06  4:32 ` [PATCH v1 3/3] liveupdate: pin sessions and handle inactive ones " Pasha Tatashin
2026-05-06  8:53   ` Pratyush Yadav

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