[PATCH 2/2] liveupdate: reject nonzero reserved value for SESSION_FINISH
Pratyush Yadav
pratyush at kernel.org
Wed Jul 15 07:11:37 PDT 2026
On Wed, Jul 15 2026, Jackie Liu wrote:
> From: Jackie Liu <liuyun01 at kylinos.cn>
>
> The UAPI documents liveupdate_session_finish::reserved as requiring zero,
> but luo_session_finish() currently ignores it and finishes the session.
> Accepting nonzero values prevents the field from being safely repurposed
> by a future extension.
>
> Reject nonzero reserved values before changing session state, matching
> LIVEUPDATE_SESSION_GET_NAME.
>
> Fixes: 16cec0d26521 ("liveupdate: luo_session: add ioctls for file preservation")
> Assisted-by: Codex:gpt-5.6-sol
> Signed-off-by: Jackie Liu <liuyun01 at kylinos.cn>
Reviewed-by: Pratyush Yadav (Google) <pratyush at kernel.org>
[...]
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list