* [folded-merged] kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4.patch removed from -mm tree
@ 2025-11-27 22:21 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-11-27 22:21 UTC (permalink / raw)
To: mm-commits, rppt, pratyush, pasha.tatashin, graf, changyuanl,
catalin.marinas, ran.xiaokai, akpm
The quilt patch titled
Subject: kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4
has been removed from the -mm tree. Its filename was
kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4.patch
This patch was dropped because it was folded into kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages.patch
------------------------------------------------------
From: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Subject: kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4
Date: Thu, 27 Nov 2025 12:27:00 +0000
add comment
Link: https://lkml.kernel.org/r/20251127122700.103927-1-ranxiaokai627@163.com
Fixes: 3dc92c311498 ("kexec: add Kexec HandOver (KHO) generation helpers")
Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Cc: Alexander Graf <graf@amazon.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Changyuan Lyu <changyuanl@google.com>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/liveupdate/kexec_handover.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/kernel/liveupdate/kexec_handover.c~kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4
+++ a/kernel/liveupdate/kexec_handover.c
@@ -1370,6 +1370,14 @@ static __init int kho_init(void)
unsigned long count = kho_scratch[i].size >> PAGE_SHIFT;
unsigned long pfn;
+ /*
+ * When debug_pagealloc is enabled, __free_pages() clears the
+ * corresponding PRESENT bit in the kernel page table.
+ * Subsequent kmemleak scans of these pages cause the
+ * non-PRESENT page faults.
+ * Mark scratch areas with kmemleak_ignore_phys() to exclude
+ * them from kmemleak scanning.
+ */
kmemleak_ignore_phys(kho_scratch[i].addr);
for (pfn = base_pfn; pfn < base_pfn + count;
pfn += pageblock_nr_pages)
_
Patches currently in -mm which might be from ran.xiaokai@zte.com.cn are
kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-27 22:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 22:21 [folded-merged] kho-fix-boot-failure-due-to-kmemleak-access-to-non-present-pages-v4.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.