This goes on top of Walter's patch titled "kasan: fix KASAN unit tests for tag-based KASAN" (already in mm tree). Bugzilla link: https://bugzilla.kernel.org/show_bug.cgi?id=203497 Thanks to Walter Wu for debugging and testing. Changes v1 -> v2: - Add efi patch to undefined reference to `efi_enter_virtual_mode'. - Reorder attributes for start_kernel(). Andrey Konovalov (5): kasan: don't tag stacks allocated with pagealloc efi: provide empty efi_enter_virtual_mode implementation kasan, arm64: don't instrument functions that enable kasan kasan: allow enabling stack tagging for tag-based mode kasan: adjust kasan_stack_oob for tag-based mode arch/arm64/kernel/setup.c | 2 +- include/linux/efi.h | 4 ++++ init/main.c | 2 +- kernel/fork.c | 3 ++- lib/test_kasan.c | 2 +- scripts/Makefile.kasan | 3 ++- 6 files changed, 11 insertions(+), 5 deletions(-) -- 2.28.0.163.g6104cc2f0b6-goog