[PATCH] liveupdate: check for duplicate session before growing block set

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 3 07:42:18 PST 2026


> luo_session_insert() grows the outgoing block set before checking for a
> duplicate session name. On -EEXIST the new block stays in the set.
> 
> If the session count is an exact multiple of the per-block capacity (51
> with 4K pages), that block stays empty. It is serialized with count 0,
> which kho_block_set_restore() rejects in the next kernel:
> 
>   luo: Block contains invalid entry count: 0
>   Kernel panic - not syncing: The incoming tree failed to initialize properly [-EINVAL], disabling live update
> 
> Check for the duplicate before growing the block set, as
> luo_preserve_file() does with the token.
> 
> Fixes: 2a441a14c2c0 ("liveupdate: Remove limit on the number of sessions")
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm at gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103153928.716753-1-christian.aurichzm@gmail.com?part=1




More information about the kexec mailing list