Skip to content

Commit f6a2c2b

Browse files
nathanchancePeter Zijlstra
authored andcommitted
x86/Kconfig: Only allow CONFIG_X86_KERNEL_IBT with ld.lld >= 14.0.0
With CONFIG_X86_KERNEL_IBT=y and a version of ld.lld prior to 14.0.0, there are numerous objtool warnings along the lines of: warning: objtool: .plt+0x6: indirect jump found in RETPOLINE build This is a known issue that has been resolved in ld.lld 14.0.0. Prevent CONFIG_X86_KERNEL_IBT from being selectable when using one of these problematic ld.lld versions. Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 262448f commit f6a2c2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,6 +1875,8 @@ config X86_KERNEL_IBT
18751875
prompt "Indirect Branch Tracking"
18761876
bool
18771877
depends on X86_64 && CC_HAS_IBT && STACK_VALIDATION
1878+
# https://github.com/llvm/llvm-project/commit/9d7001eba9c4cb311e03cd8cdc231f9e579f2d0f
1879+
depends on !LD_IS_LLD || LLD_VERSION >= 140000
18781880
help
18791881
Build the kernel with support for Indirect Branch Tracking, a
18801882
hardware support course-grain forward-edge Control Flow Integrity

0 commit comments

Comments
 (0)