x86/returnthunk: Allow different return thunks
Upstream commit: 770ae1b7 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 Signed-off-by:
Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- arch/x86/include/asm/nospec-branch.h 6 additions, 0 deletionsarch/x86/include/asm/nospec-branch.h
- arch/x86/kernel/alternative.c 13 additions, 4 deletionsarch/x86/kernel/alternative.c
- arch/x86/kernel/cpu/bugs.c 2 additions, 0 deletionsarch/x86/kernel/cpu/bugs.c
- arch/x86/kernel/ftrace.c 1 addition, 1 deletionarch/x86/kernel/ftrace.c
- arch/x86/kernel/static_call.c 1 addition, 1 deletionarch/x86/kernel/static_call.c
- arch/x86/net/bpf_jit_comp.c 1 addition, 1 deletionarch/x86/net/bpf_jit_comp.c
Loading