x86/returnthunk: Allow different return thunks
authorPeter Zijlstra <peterz@infradead.org>
Thu, 15 Sep 2022 11:11:25 +0000 (13:11 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:41:14 +0000 (16:41 +0200)
commit770ae1b709528a6a173b5c7b183818ee9b45e376
tree32e60c4fe4e050c253f981ed2ae7af00e2d51f77
parenteaf44c816ed8d1ef94c354e3ed47d53cd5a5cb13
x86/returnthunk: Allow different return thunks

In preparation for call depth tracking on Intel SKL CPUs, make it possible
to patch in a SKL specific return thunk.

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/20220915111147.680469665@infradead.org
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/alternative.c
arch/x86/kernel/ftrace.c
arch/x86/kernel/static_call.c
arch/x86/net/bpf_jit_comp.c