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

From: Mike Rapoport

Date: Tue Nov 03 2026 - 13:30:38 EST


From: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

On Tue, 03 Nov 2026 12:39:28 -0300, Christian Aurich Zanettini Martins wrote:
> 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:
>
> [...]

Applied to next branch of liveupdate/linux.git tree, thanks!

[1/1] liveupdate: check for duplicate session before growing block set
commit: 7d4282ec2d3bfd5e7959bbd2663936a29c45f609

tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: next

--
Sincerely yours,
Mike.