linux/arch/x86
Andrey Konovalov b243efc9b4 UPSTREAM: kasan, x86, s390: update undef CONFIG_KASAN
[ Upstream commit 8a494023b8 ]

With the intoduction of hardware tag-based KASAN some kernel checks of
this kind:

  ifdef CONFIG_KASAN

will be updated to:

  if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)

x86 and s390 use a trick to #undef CONFIG_KASAN for some of the code
that isn't linked with KASAN runtime and shouldn't have any KASAN
annotations.

Also #undef CONFIG_KASAN_GENERIC with CONFIG_KASAN.

Link: https://lkml.kernel.org/r/9d84bfaaf8fabe0fc89f913c9e420a30bd31a260.1606161801.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Marco Elver <elver@google.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Branislav Rankov <Branislav.Rankov@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Bug: 172318110
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Change-Id: I5cf77ddb7725f71a69cf08dec139b988e59a7386
2021-01-19 21:47:29 -08:00
..
boot UPSTREAM: kasan, x86, s390: update undef CONFIG_KASAN 2021-01-19 21:47:29 -08:00
configs ANDROID: GKI: Enable CONFIG_KUNIT 2021-01-12 16:52:20 +00:00
crypto FROMLIST: crypto: x86/poly1305 - add back a needed assignment 2020-10-28 15:11:33 +01:00
entry FROMLIST: x86, vdso: disable LTO only for vDSO 2020-12-16 08:56:36 -08:00
events perf/x86/intel/lbr: Fix the return type of get_lbr_cycles() 2020-12-30 11:54:10 +01:00
hyperv x86/hyperv: check cpu mask after interrupt has been disabled 2021-01-19 18:27:18 +01:00
ia32 Revert "Revert "x86: remove address space overrides using set_fs()"" 2020-10-28 15:08:48 +01:00
include ANDROID: x86: map CFI jump tables in pti_clone_entry_text 2021-01-14 16:35:28 +00:00
kernel This is the 5.10.9 stable release 2021-01-19 18:49:54 +01:00
kvm KVM: x86: fix shift out of bounds reported by UBSAN 2021-01-12 20:18:26 +01:00
lib x86/insn-eval: Use new for_each_insn_prefix() macro to loop over prefixes bytes 2020-12-06 10:03:08 +01:00
math-emu treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mm ANDROID: x86: map CFI jump tables in pti_clone_entry_text 2021-01-14 16:35:28 +00:00
net bpf: x64: Do not emit sub/add 0, %rsp when !stack_depth 2020-09-29 16:47:39 -07:00
oprofile
pci UPSTREAM: x86/pci: Fix the function type for check_reserved_t 2021-01-14 16:36:20 +00:00
platform efi/x86: Free efi_pgd with free_pages() 2020-11-10 19:18:11 +01:00
power ANDROID: Setting up GS before calling __restore_processor_state. 2020-09-10 19:03:45 +00:00
purgatory ANDROID: x86/purgatory: disable CFI 2021-01-14 16:35:55 +00:00
ras
realmode x86/head/64: Don't call verify_cpu() on starting APs 2020-09-09 11:33:20 +02:00
tools ANDROID: x86, relocs: Ignore __typeid__ relocations 2021-01-14 16:35:01 +00:00
um ANDROID: um: Return to old __section declarations for um 2020-10-30 17:42:29 +00:00
video
xen xen: branch for v5.10-rc5 2020-11-20 10:30:48 -08:00
.gitignore
Kbuild
Kconfig Merge 5.10.8 into android12-5.10 2021-01-19 09:33:21 +01:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}() 2020-10-06 11:18:04 +02:00
Makefile FROMLIST: x86, build: allow LTO to be selected 2020-12-16 08:56:36 -08:00
Makefile_32.cpu
Makefile.um