[PATCH v2] liveupdate: add LUO_SESSION_MAGIC magic inode type

Pasha Tatashin pasha.tatashin at soleen.com
Fri Apr 17 13:34:00 PDT 2026


On 04-17 10:44, luca.boccassi at gmail.com wrote:
> From: Luca Boccassi <luca.boccassi at gmail.com>
> 
> In userspace when managing LUO sessions we want to be able to identify
> a FD as a LUO session, in order to be able to do the special handling
> that they require in order to function as intended on kexec.
> 
> Currently this requires scraping procfs and doing string matching on
> the prefix of the dname, which is not an ideal interface.
> 
> Add a singleton inode type with a magic value, so that we can
> programmatically identify a fd as a LUO session via fstat().

Hi Luca,

The patch looks good to me, but please add a self-test to 
selftests/liveupdate/liveupdate.c to verify that the fstat interface works 
as expected.

Pasha



More information about the kexec mailing list