From: Patrick Talbert on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/391#note_53998...
Hey Mark,
I moved the config item.
I also noticed CONFIG_ARM64_BTI_KERNEL has been kicking around in
pending-common since ffa224580f56 so I moved it out of pending here as
well. I hope that is okay with everybody?
@jmflinuxtx ?
```
config ARM64_BTI_KERNEL
bool "Use Branch Target Identification for kernel"
default y
depends on ARM64_BTI
depends on ARM64_PTR_AUTH
depends on CC_HAS_BRANCH_PROT_PAC_RET_BTI
#
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94697
depends on !CC_IS_GCC || GCC_VERSION >= 100100
depends on !(CC_IS_CLANG && GCOV_KERNEL)
depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_REGS)
help
Build the kernel with Branch Target Identification annotations
and enable enforcement of this for kernel code. When this
option
is enabled and the system supports BTI all kernel code
including
modular code must have BTI enabled.
```
Thank you,
Patrick