Re: [PATCH v4 1/2] liveupdate: add LUO_SESSION_MAGIC magic inode type

From: Pasha Tatashin

Date: Fri Apr 17 2026 - 17:04:52 EST


On 04-17 21:57, luca.boccassi@xxxxxxxxx wrote:
> From: Luca Boccassi <luca.boccassi@xxxxxxxxx>
>
> 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().
>
> Signed-off-by: Luca Boccassi <luca.boccassi@xxxxxxxxx>

Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>