linux/kernel/liveupdate
Pasha Tatashin 019fc36872 kho: fix KASAN support for restored vmalloc regions
Restored vmalloc regions are currently not properly marked for KASAN,
causing KASAN to treat accesses to these regions as out-of-bounds.

Fix this by properly unpoisoning the restored vmalloc area using
kasan_unpoison_vmalloc().  This requires setting the VM_UNINITIALIZED flag
during the initial area allocation and clearing it after the pages have
been mapped and unpoisoned, using the clear_vm_uninitialized_flag()
helper.

Link: https://lkml.kernel.org/r/20260225223857.1714801-3-pasha.tatashin@soleen.com
Fixes: a667300bd5 ("kho: add support for preserving vmalloc allocations")
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reported-by: Pratyush Yadav <pratyush@kernel.org>
Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Tested-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-05 13:53:06 -07:00
..
Kconfig liveupdate: separate memfd support into LIVEUPDATE_MEMFD 2026-01-26 19:07:10 -08:00
kexec_handover_debug.c
kexec_handover_debugfs.c kho: remove finalize state and clients 2026-04-05 13:53:04 -07:00
kexec_handover_internal.h kho: remove finalize state and clients 2026-04-05 13:53:04 -07:00
kexec_handover.c kho: fix KASAN support for restored vmalloc regions 2026-04-05 13:53:06 -07:00
luo_core.c kho: remove finalize state and clients 2026-04-05 13:53:04 -07:00
luo_file.c liveupdate: luo_file: remember retrieve() status 2026-02-24 11:13:26 -08:00
luo_flb.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
luo_internal.h tests/liveupdate: add in-kernel liveupdate test 2026-02-08 00:13:33 -08:00
luo_session.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile liveupdate: luo_flb: introduce File-Lifecycle-Bound global state 2026-02-08 00:13:33 -08:00