Re: [PATCH 1/1] riscv: Fix KASAN memory mapping.

2021-01-13 Thread Palmer Dabbelt
On Tue, 12 Jan 2021 18:24:10 PST (-0800), nyl...@andestech.com wrote: From: Nick Hu Use virtual address instead of physical address when translating the address to shadow memory by kasan_mem_to_shadow(). Signed-off-by: Nick Hu Signed-off-by: Nylon Chen --- arch/riscv/mm/kasan_init.c | 4 ++-

[PATCH 1/1] riscv: Fix KASAN memory mapping.

2021-01-12 Thread Nylon Chen
From: Nick Hu Use virtual address instead of physical address when translating the address to shadow memory by kasan_mem_to_shadow(). Signed-off-by: Nick Hu Signed-off-by: Nylon Chen --- arch/riscv/mm/kasan_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ri