From 137563d82bbb7276b1d590ddbbfda5468e5f479f Mon Sep 17 00:00:00 2001 From: Vinayak Menon Date: Fri, 17 Apr 2020 19:49:05 +0530 Subject: [PATCHv3 2/4] fix the calculation of _stext_vmlinux for ramdumps For ramdumps without any vmcoreinfo and kaslr passed as argument, _stext_vmlinux is not set. This causes incorrect calculation of vmalloc_start with VA_BITS_ACTUAL. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index e04f28d..7f562e6 100644 --- a/main.c +++ b/main.c @@ -244,6 +244,7 @@ main(int argc, char **argv) kt->relocate *= -1; kt->flags |= RELOC_SET; kt->flags2 |= KASLR; + st->_stext_vmlinux = UNINITIALIZED; } } else if (STREQ(long_options[option_index].name, "reloc")) { --