diff options
| author | Jann Horn <[email protected]> | 2025-03-25 02:01:22 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-03-25 07:30:43 +0000 |
| commit | 57e2428f8df8263275344566e02c277648a4b7f1 (patch) | |
| tree | 2c04d02c359f4fd51b07523e4a5e501dc0fafd48 /samples/rust/rust_driver_pci.rs | |
| parent | x86/Kconfig: Fix lists in X86_EXTENDED_PLATFORM help text (diff) | |
| download | kernel-57e2428f8df8263275344566e02c277648a4b7f1.tar.gz kernel-57e2428f8df8263275344566e02c277648a4b7f1.zip | |
x86/entry: Fix ORC unwinder for PUSH_REGS with save_ret=1
PUSH_REGS with save_ret=1 is used by interrupt entry helper functions that
initially start with a UNWIND_HINT_FUNC ORC state.
However, save_ret=1 means that we clobber the helper function's return
address (and then later restore the return address further down on the
stack); after that point, the only thing on the stack we can unwind through
is the IRET frame, so use UNWIND_HINT_IRET_REGS until we have a full
pt_regs frame.
( An alternate approach would be to move the pt_regs->di overwrite down
such that it is the final step of pt_regs setup; but I don't want to
rearrange entry code just to make unwinding a tiny bit more elegant. )
Fixes: 9e809d15d6b6 ("x86/entry: Reduce the code footprint of the 'idtentry' macro")
Signed-off-by: Jann Horn <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Juergen Gross <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'samples/rust/rust_driver_pci.rs')
0 files changed, 0 insertions, 0 deletions
