From 07f00bd9337a8100b42c613e48886e969e95501d Mon Sep 17 00:00:00 2001 From: Vinayak Menon Date: Fri, 17 Apr 2020 19:49:05 +0530 Subject: [PATCH 2/3] 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")) { --