]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Fix config KASAN && DEBUG_VIRTUAL
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Fri, 25 Feb 2022 12:39:51 +0000 (13:39 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 3 Mar 2022 23:32:41 +0000 (15:32 -0800)
commit34679d6e0c8abe412bc63ef5042f85db39f576d1
treee67d89772dabc9fb768684f51f3a796a88cc8a25
parent4968d0964b49a4c69534c1a2b153c8c29f6f43c5
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 <alexandre.ghiti@canonical.com>
Fixes: 540138b2e2b6 (riscv: Add KASAN support)
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/Makefile