Commit 81f755d
x86/32: Remove schedule_tail_wrapper()
The unwinder expects a return address at the very top of the kernel
stack just below pt_regs and before any stack frame is created. Instead
of calling a wrapper, set up a return address as if ret_from_fork()
was called from the syscall entry code.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lkml.kernel.org/r/20230623225529.34590-2-brgerst@gmail.com1 parent 9831c62 commit 81f755d
1 file changed
Lines changed: 10 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | 722 | | |
743 | 723 | | |
744 | 724 | | |
| |||
748 | 728 | | |
749 | 729 | | |
750 | 730 | | |
751 | | - | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
752 | 739 | | |
753 | 740 | | |
754 | 741 | | |
755 | 742 | | |
756 | 743 | | |
757 | 744 | | |
758 | | - | |
| 745 | + | |
759 | 746 | | |
760 | | - | |
| 747 | + | |
761 | 748 | | |
762 | 749 | | |
763 | 750 | | |
| |||
0 commit comments