Re: [PATCH v4 04/19] liveupdate: Reference struct luo_file_set_ser via serialized pointer

From: Pratyush Yadav

Date: Mon Nov 23 2026 - 08:53:05 EST


On Tue, Nov 10 2026, Tarun Sahu wrote:

> struct luo_session_ser currently embeds struct luo_file_set_ser directly
> by value. Embedding struct luo_file_set_ser couples the session layout's
> size and field offsets to struct luo_file_set_ser, preventing either
> structure from appending fields independently across kexec.
>
> Convert struct luo_session_ser to hold a DECLARE_KHOSER_PTR pointer to
> struct luo_file_set_ser instead of embedding it by value. Reserve space
> for both structures in each session block-set entry, placing struct
> luo_file_set_ser immediately after struct luo_session_ser, and bump
> LUO_ABI_COMPATIBLE from luo-v5 to luo-v6.
>
> Signed-off-by: Tarun Sahu <tarunsahu@xxxxxxxxxx>

Apart from the static asserts,

Reviewed-by: Pratyush Yadav (Google) <pratyush@xxxxxxxxxx>

[...]

--
Regards,
Pratyush Yadav