Skip to content
Unverified Commit c25a053e authored by Nick Hu's avatar Nick Hu Committed by Palmer Dabbelt
Browse files

riscv: Fix KASAN memory mapping.



Use virtual address instead of physical address when translating
the address to shadow memory by kasan_mem_to_shadow().

Signed-off-by: default avatarNick Hu <nickhu@andestech.com>
Signed-off-by: default avatarNylon Chen <nylon7@andestech.com>
Fixes: b10d6bca

 ("arch, drivers: replace for_each_membock() with for_each_mem_range()")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 0aa2ec8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment