From: Huibin Hong Date: Wed, 29 Jun 2016 11:58:26 +0000 (+0800) Subject: ARM64: kernel: dump kernel addresses larger than VA_START X-Git-Tag: firefly_0821_release~2343 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=75830c2ceae158730744c834e2d318ad17660f90;p=firefly-linux-kernel-4.4.55.git ARM64: kernel: dump kernel addresses larger than VA_START The arm64 virtual addresses of kernel are like: VA_START < MODULES_VADDR < KIMAGE_VADDR < PAGE_OFFSET. PAGE_OFFSET is the virtual address of the start of the linear map. And the vmalloc, kernel code and so on are between VA_START and PAGE_OFFSET, so it is necessary to expand dump addresses to VA_START, instead of PAGE_OFFSET. Change-Id: I810ed216862de4c6e68b92d483de4aa68da532b8 Signed-off-by: Huibin Hong --- diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 6f3fb46170bf..8e0b77810dcc 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -178,7 +178,7 @@ static void show_data(unsigned long addr, int nbytes, const char *name) * don't attempt to dump non-kernel addresses or * values that are probably just small negative numbers */ - if (addr < PAGE_OFFSET || addr > -256UL) + if (addr < VA_START || addr > -256UL) return; printk("\n%s: %#lx:\n", name, addr);