summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorChristian Aurich Zanettini Martins <christian.aurichzm@gmail.com>2026-11-03 12:39:28 -0300
committerMike Rapoport (Microsoft) <rppt@kernel.org>2026-11-03 23:16:01 +0200
commitcc448e44f6e9fc83f1527f926f52ebfa5a3d1ce9 (patch)
treec1dbfc574b27520a41c7025bcc3207107c8f8ff0 /rust/kernel/alloc
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
liveupdate: check for duplicate session before growing block set
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@vger.kernel.org Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com> Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org> Link: https://patch.msgid.link/20261103153928.716753-1-christian.aurichzm@gmail.com Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions