Skip to content

Commit 6541539

Browse files
committed
x86/Kconfig: Add CONFIG_CALL_THUNKS
JIRA: https://issues.redhat.com/browse/RHEL-255 commit 8f7c0d8 Author: Thomas Gleixner <tglx@linutronix.de> Date: Thu Sep 15 13:11:17 2022 +0200 x86/Kconfig: Add CONFIG_CALL_THUNKS In preparation for mitigating the Intel SKL RSB underflow issue in software, add a new configuration symbol which allows to build the required call thunk infrastructure conditionally. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220915111146.849523555@infradead.org Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
1 parent 668a93c commit 6541539

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/x86/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,6 +2476,14 @@ config CC_HAS_SLS
24762476
config CC_HAS_RETURN_THUNK
24772477
def_bool $(cc-option,-mfunction-return=thunk-extern)
24782478

2479+
config HAVE_CALL_THUNKS
2480+
def_bool y
2481+
depends on RETHUNK && OBJTOOL
2482+
2483+
config CALL_THUNKS
2484+
def_bool n
2485+
select FUNCTION_ALIGNMENT_16B
2486+
24792487
menuconfig SPECULATION_MITIGATIONS
24802488
bool "Mitigations for speculative execution vulnerabilities"
24812489
default y

0 commit comments

Comments
 (0)