mirror-linux/kernel/liveupdate
Pasha Tatashin 76be9983df liveupdate: defer FLB module refcounting to active sessions
Stop pinning modules indefinitely upon FLB registration.  Instead,
dynamically take a module reference when the FLB is actively used in a
session (e.g., during preserve and retrieve) and release it when the
session concludes.

This allows modules providing FLB operations to be cleanly unloaded when
not in active use by the live update orchestrator.

Link: https://lore.kernel.org/20260327033335.696621-6-pasha.tatashin@soleen.com
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Cc: David Matlack <dmatlack@google.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-18 00:10:50 -07:00
..
Kconfig liveupdate: separate memfd support into LIVEUPDATE_MEMFD 2026-01-26 19:07:10 -08:00
Makefile liveupdate: luo_flb: introduce File-Lifecycle-Bound global state 2026-02-08 00:13:33 -08:00
kexec_handover.c kho: kexec-metadata: track previous kernel chain 2026-04-18 00:10:48 -07:00
kexec_handover_debug.c
kexec_handover_debugfs.c kho: fix kho_in_debugfs_init() to handle non-FDT blobs 2026-04-18 00:10:48 -07:00
kexec_handover_internal.h kho: rename fdt parameter to blob in kho_add/remove_subtree() 2026-04-18 00:10:48 -07:00
luo_core.c liveupdate: protect file handler list with rwsem 2026-04-18 00:10:49 -07:00
luo_file.c liveupdate: protect file handler list with rwsem 2026-04-18 00:10:49 -07:00
luo_flb.c liveupdate: defer FLB module refcounting to active sessions 2026-04-18 00:10:50 -07:00
luo_internal.h liveupdate: protect file handler list with rwsem 2026-04-18 00:10:49 -07:00
luo_session.c liveupdate: safely print untrusted strings 2026-04-18 00:10:49 -07:00