[PATCH 0/2] x86/retpoline,kprobes: Fix the [__indirect_thunk_start, ..end] range

From: Petr Pavlu
Date: Wed Jul 05 2023 - 04:16:16 EST


Fix problems with an output position of thunk sections and the
associated definition of range [__indirect_thunk_start,
__indirect_thunk_end] which affects the kprobes optimization.

Petr Pavlu (2):
x86/retpoline,kprobes: Fix position of thunk sections with
CONFIG_LTO_CLANG
x86/retpoline,kprobes: Avoid treating rethunk as an indirect jump

arch/x86/kernel/vmlinux.lds.S | 4 +---
arch/x86/lib/retpoline.S | 8 ++++++--
2 files changed, 7 insertions(+), 5 deletions(-)

--
2.35.3