linux-mainline/arch/x86
Peter Zijlstra 7825451fa4 static_call: Add call depth tracking support
When indirect calls are switched to direct calls then it has to be ensured
that the call target is not the function, but the call thunk when call
depth tracking is enabled. But static calls are available before call
thunks have been set up.

Ensure a second run through the static call patching code after call thunks
have been created. When call thunks are not enabled this has no side
effects.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220915111148.306100465@infradead.org
2022-10-17 16:41:16 +02:00
..
boot arch: Introduce CONFIG_FUNCTION_ALIGNMENT 2022-10-17 16:40:58 +02:00
coco
configs
crypto crypto: x86/poly1305: Remove custom function alignment 2022-10-17 16:41:03 +02:00
entry x86/retbleed: Add SKL return thunk 2022-10-17 16:41:15 +02:00
events Perf events updates for v6.1: 2022-10-10 09:27:46 -07:00
hyperv
ia32
include static_call: Add call depth tracking support 2022-10-17 16:41:16 +02:00
kernel static_call: Add call depth tracking support 2022-10-17 16:41:16 +02:00
kvm x86/retbleed: Add SKL return thunk 2022-10-17 16:41:15 +02:00
lib x86/calldepth: Add ret/call counting for debug 2022-10-17 16:41:16 +02:00
math-emu
mm treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
net x86/retpoline: Add SKL retthunk retpolines 2022-10-17 16:41:15 +02:00
pci
platform EFI updates for v6.1 2022-10-09 08:56:54 -07:00
power
purgatory
ras
realmode x86: kmsan: disable instrumentation of unsupported code 2022-10-03 14:03:24 -07:00
tools
um
video
virt/vmx/tdx
xen x86/cpu: Get rid of redundant switch_to_new_gdt() invocations 2022-10-17 16:40:56 +02:00
.gitignore
Kbuild
Kconfig x86/callthunks: Add call patching for call depth tracking 2022-10-17 16:41:13 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile x86/Kconfig: Introduce function padding 2022-10-17 16:41:10 +02:00
Makefile_32.cpu
Makefile.um