OSDN Git Service

x86/orc: Make it callthunk aware
authorPeter Zijlstra <peterz@infradead.org>
Thu, 15 Sep 2022 11:11:33 +0000 (13:11 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:41:17 +0000 (16:41 +0200)
commit396e0b8e09e86440c2119d12c2101110d3cd5bf9
tree1c1177879cb877b61d64b5851acdddb15fef01c2
parentf1389181622a08d6f1c71407a64df36b809d632b
x86/orc: Make it callthunk aware

Callthunks addresses on the stack would confuse the ORC unwinder. Handle
them correctly and tell ORC to proceed further down the stack.

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.511637628@infradead.org
arch/x86/include/asm/alternative.h
arch/x86/kernel/callthunks.c
arch/x86/kernel/unwind_orc.c