]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kho: mm: don't allow deferred struct page with KHO
authorPasha Tatashin <pasha.tatashin@soleen.com>
Fri, 8 Aug 2025 20:18:03 +0000 (20:18 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 19 Aug 2025 23:35:53 +0000 (16:35 -0700)
commit8b66ed2c3f42cc462e05704af6b94e6a7bad2f5e
tree86466fbc098336e4c45085af26862f14c9033ad2
parent63b17b653df30e90f95338083cb44c35d64bcae4
kho: mm: don't allow deferred struct page with KHO

KHO uses struct pages for the preserved memory early in boot, however,
with deferred struct page initialization, only a small portion of memory
has properly initialized struct pages.

This problem was detected where vmemmap is poisoned, and illegal flag
combinations are detected.

Don't allow them to be enabled together, and later we will have to teach
KHO to work properly with deferred struct page init kernel feature.

Link: https://lkml.kernel.org/r/20250808201804.772010-3-pasha.tatashin@soleen.com
Fixes: 4e1d010e3bda ("kexec: add config option for KHO")
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Baoquan He <bhe@redhat.com>
Cc: Changyuan Lyu <changyuanl@google.com>
Cc: Coiby Xu <coxu@redhat.com>
Cc: Dave Vasilevsky <dave@vasilevsky.ca>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Kees Cook <kees@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/Kconfig.kexec