Commit dbf4600
objtool/x86: Fixup frame-pointer vs rethunk
For stack-validation of a frame-pointer build, objtool validates that
every CALL instruction is preceded by a frame-setup. The new SRSO
return thunks violate this with their RSB stuffing trickery.
Extend the __fentry__ exception to also cover the embedded_insn case
used for this. This cures:
vmlinux.o: warning: objtool: srso_untrain_ret+0xd: call without frame pointer save/setup
Fixes: 4ae68b2 ("objtool/x86: Fix SRSO mess")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 9dbd23e commit dbf4600
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | | - | |
| 2653 | + | |
2654 | 2654 | | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
2659 | 2664 | | |
2660 | 2665 | | |
2661 | 2666 | | |
| |||
3656 | 3661 | | |
3657 | 3662 | | |
3658 | 3663 | | |
3659 | | - | |
| 3664 | + | |
3660 | 3665 | | |
3661 | 3666 | | |
3662 | 3667 | | |
| |||
0 commit comments