We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88053ec commit 85f58ebCopy full SHA for 85f58eb
arch/arm64/mm/init.c
@@ -30,6 +30,7 @@
30
#include <linux/crash_dump.h>
31
#include <linux/hugetlb.h>
32
#include <linux/acpi_iort.h>
33
+#include <linux/kmemleak.h>
34
35
#include <asm/boot.h>
36
#include <asm/fixmap.h>
@@ -115,6 +116,11 @@ static void __init reserve_crashkernel(void)
115
116
pr_info("crashkernel reserved: 0x%016llx - 0x%016llx (%lld MB)\n",
117
crash_base, crash_base + crash_size, crash_size >> 20);
118
119
+ /*
120
+ * The crashkernel memory will be removed from the kernel linear
121
+ * map. Inform kmemleak so that it won't try to access it.
122
+ */
123
+ kmemleak_ignore_phys(crash_base);
124
crashk_res.start = crash_base;
125
crashk_res.end = crash_base + crash_size - 1;
126
}
0 commit comments