arm64: Drop unneeded __nocfi attributes
authorSami Tolvanen <samitolvanen@google.com>
Thu, 8 Sep 2022 21:54:53 +0000 (14:54 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 26 Sep 2022 17:13:14 +0000 (10:13 -0700)
commit5f20997c194e8b74254cbdb113b2b09bc1c0c734
tree11a18632d8c36699e1a1b0465d73c0ca0f46980d
parentb26e484b8bb3a992ef30e851d771973a3dd2336b
arm64: Drop unneeded __nocfi attributes

With -fsanitize=kcfi, CONFIG_CFI_CLANG no longer has issues
with address space confusion in functions that switch to linear
mapping. Now that the indirectly called assembly functions have
type annotations, drop the __nocfi attributes.

Suggested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-12-samitolvanen@google.com
arch/arm64/include/asm/mmu_context.h
arch/arm64/kernel/alternative.c
arch/arm64/kernel/cpufeature.c