Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: Fix config KASAN && DEBUG_VIRTUAL
__virt_to_phys function is called very early in the boot process (ie kasan_early_init) so it should not be instrumented by KASAN otherwise it bugs. Fix this by declaring phys_addr.c as non-kasan instrumentable. Signed-off-by: Alexandre Ghiti <[email protected]> Fixes: 8ad8b72 (riscv: Add KASAN support) Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
- Loading branch information