From fc0c9ea31f172cf5bd266d65e206fa45febc9cd7 Mon Sep 17 00:00:00 2001 From: Runmin Wang Date: Fri, 10 Feb 2017 11:59:33 -0800 Subject: [PATCH] arm64: process: Update the kernel offset Kernel address is relocated to the VMALLOC region. Update the check to use KIMAGE_VADDR. Change-Id: Ie2539a78a8180a3dbc2c8075a891e99892d809f2 Signed-off-by: Runmin Wang --- arch/arm64/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 5759095e0023..3c4605f5ba9d 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -183,7 +183,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 < KIMAGE_VADDR || addr > -256UL) return; printk("\n%s: %#lx:\n", name, addr);