[PATCH 0/2] kho: fixes for vmalloc restoration

Mike Rapoport
2025-11-25T11:09:26Z

From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>

Hi,

Pratyush reported off-list that when kho_restore_vmalloc() is used to
restore a vmalloc_huge() allocation it hits VM_BUG_ON() when we reconstruct
the struct pages in kho_restore_pages().

These patches fix the issue.

Mike Rapoport (Microsoft) (2):
kho: kho_restore_vmalloc: fix initialization of pages array
kho: fix restoring of contiguous ranges of order-0 pages

kernel/liveupdate/kexec_handover.c | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)

--
2.50.1