From: Qianli Zhao <[email protected]>

Setting st->_stext_vmlinux to UNINITIALIZED to search for "_stext" from the 
vmlinux
Without the patch, if we do not enable kaslr, will get the wrong
MODULES/VMALLOC ranges, cause parsing dump failure

Signed-off-by: Qianli Zhao <[email protected]>
---
 arm64.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arm64.c b/arm64.c
index 0f615cf..4458a66 100644
--- a/arm64.c
+++ b/arm64.c
@@ -149,6 +149,9 @@ arm64_init(int when)
 
                ms = machdep->machspec;
 
+               if (ms->VA_BITS_ACTUAL)
+                       st->_stext_vmlinux = UNINITIALIZED;
+
                if (!ms->kimage_voffset && STREQ(pc->live_memsrc, "/dev/crash"))
                        ioctl(pc->mfd, DEV_CRASH_ARCH_DATA, 
&ms->kimage_voffset);
 
-- 
2.17.1

--
Crash-utility mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/crash-utility
Contribution Guidelines: https://github.com/crash-utility/crash/wiki

Reply via email to