Skip to contentSkip to conversation

KVM: s390: pv: ignore ultravisor donated storage for kmemleak

PATCH Superseded Christian Borntraeger 1 participant 1 message Jul 17

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Christian Borntraeger

author maintainer
#0 lore raw

PATCH 1/1 KVM: s390: pv: ignore ultravisor donated storage for kmemleak

ignore ultravisor donated memory for kmemleak to avoid kernel crashes when accessing such memory.

---
 arch/s390/kernel/uv.c | 2 ++
 1 file changed, 2 insertions(+)
arch/s390/kernel/uv.c +2 -0
index 98a7f988fc69..e0286f434e25 100644
@@ -16,6 +16,7 @@
 #include <linux/swap.h>
 #include <linux/pagewalk.h>
 #include <linux/backing-dev.h>
+#include <linux/kmemleak.h>
 #include <linux/vmalloc.h>
 #include <asm/facility.h>
 #include <asm/sections.h>
@@ -71,6 +72,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);
Signature · 1 line
2.53.0