Skip to content

Commit 4210157

Browse files
linuswRussell King
authored and
Russell King
committed
ARM: 9017/2: Enable KASan for ARM
This patch enables the kernel address sanitizer for ARM. XIP_KERNEL has not been tested and is therefore not allowed for now. Cc: Andrey Ryabinin <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: [email protected] Acked-by: Dmitry Vyukov <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Tested-by: Ard Biesheuvel <[email protected]> # QEMU/KVM/mach-virt/LPAE/8G Tested-by: Florian Fainelli <[email protected]> # Brahma SoCs Tested-by: Ahmad Fatoum <[email protected]> # i.MX6Q Signed-off-by: Abbott Liu <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 5615f69 commit 4210157

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Documentation/dev-tools/kasan.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ out-of-bounds accesses for global variables is only supported since Clang 11.
1818

1919
Tag-based KASAN is only supported in Clang.
2020

21-
Currently generic KASAN is supported for the x86_64, arm64, xtensa, s390 and
22-
riscv architectures, and tag-based KASAN is supported only for arm64.
21+
Currently generic KASAN is supported for the x86_64, arm, arm64, xtensa, s390
22+
and riscv architectures, and tag-based KASAN is supported only for arm64.
2323

2424
Usage
2525
-----

Documentation/features/debug/KASAN/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-----------------------
99
| alpha: | TODO |
1010
| arc: | TODO |
11-
| arm: | TODO |
11+
| arm: | ok |
1212
| arm64: | ok |
1313
| c6x: | TODO |
1414
| csky: | TODO |

arch/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ config ARM
6767
select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
6868
select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU
6969
select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
70+
select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
7071
select HAVE_ARCH_MMAP_RND_BITS if MMU
7172
select HAVE_ARCH_SECCOMP
7273
select HAVE_ARCH_SECCOMP_FILTER if AEABI && !OABI_COMPAT

0 commit comments

Comments
 (0)