linux/arch
Andrey Konovalov f6f37d9320 arm64: select KASAN_VMALLOC for SW/HW_TAGS modes
Generic KASAN already selects KASAN_VMALLOC to allow VMAP_STACK to be
selected unconditionally, see commit acc3042d62 ("arm64: Kconfig:
select KASAN_VMALLOC if KANSAN_GENERIC is enabled").

The same change is needed for SW_TAGS KASAN.

HW_TAGS KASAN does not require enabling KASAN_VMALLOC for VMAP_STACK, they
already work together as is.  Still, selecting KASAN_VMALLOC still makes
sense to make vmalloc() always protected.  In case any bugs in KASAN's
vmalloc() support are discovered, the command line kasan.vmalloc flag can
be used to disable vmalloc() checking.

Select KASAN_VMALLOC for all KASAN modes for arm64.

Link: https://lkml.kernel.org/r/99d6b3ebf57fc1930ff71f9a4a71eea19881b270.1643047180.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-24 19:06:48 -07:00
..
alpha Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
arc asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
arm Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
arm64 arm64: select KASAN_VMALLOC for SW/HW_TAGS modes 2022-03-24 19:06:48 -07:00
csky asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
h8300 Merge branch 'set_fs-4' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic into asm-generic 2022-02-25 11:16:58 +01:00
hexagon asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
ia64 flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
m68k asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
microblaze asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
mips Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
nios2 asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
openrisc asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00
parisc Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
powerpc mm/migration: add trace events for THP migrations 2022-03-24 19:06:45 -07:00
riscv Merge branch 'akpm' (patches from Andrew) 2022-03-24 14:14:07 -07:00
s390 kasan, x86, arm64, s390: rename functions for modules shadow 2022-03-24 19:06:47 -07:00
sh flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
sparc Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
um flexible-array transformations for 5.18-rc1 2022-03-24 11:39:32 -07:00
x86 kasan, x86, arm64, s390: rename functions for modules shadow 2022-03-24 19:06:47 -07:00
xtensa Networking changes for 5.18. 2022-03-24 13:13:26 -07:00
.gitignore
Kconfig asm-generic updates for 5.18 2022-03-23 18:03:08 -07:00