Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH v2] KVM: s390: pv: ignore ultravisor donated storage for kmemleak
@ 2026-07-17 13:31 Christian Borntraeger
  2026-07-17 13:45 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Borntraeger @ 2026-07-17 13:31 UTC (permalink / raw)
  To: KVM
  Cc: Christian Borntraeger, Janosch Frank, David Hildenbrand,
	linux-s390, Claudio Imbrenda, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Sven Schnelle

ignore ultravisor base storage memory that was donated early on for
kmemleak to avoid kernel crashes when accessing such memory.

Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
---
v1->v2: rebase on linux/master
 arch/s390/kernel/uv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c
index a284f98d9716..7dde37c365a9 100644
--- a/arch/s390/kernel/uv.c
+++ b/arch/s390/kernel/uv.c
@@ -16,6 +16,7 @@
 #include <linux/swap.h>
 #include <linux/pagewalk.h>
 #include <linux/backing-dev.h>
+#include <linux/kmemleak.h>
 #include <asm/facility.h>
 #include <asm/sections.h>
 #include <asm/uv.h>
@@ -70,6 +71,7 @@ void __init setup_uv(void)
 			uv_info.uv_base_stor_len);
 		goto fail;
 	}
+	kmemleak_ignore_phys(__pa(uv_stor_base));
 
 	if (uv_init(__pa(uv_stor_base), uv_info.uv_base_stor_len)) {
 		memblock_free(uv_stor_base, uv_info.uv_base_stor_len);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-17 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 13:31 [PATCH v2] KVM: s390: pv: ignore ultravisor donated storage for kmemleak Christian Borntraeger
2026-07-17 13:45 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox