diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-11-14 19:02:50 +0100 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-11-18 23:01:13 +0100 |
| commit | e9c14351f84f2ddf4aae2914979c0378bc14460a (patch) | |
| tree | 16f1d9dfbeed46b02b30e1425f94900d1e020547 /kernel/debug | |
| parent | a739c9192173c0437ed3c76f87f5a39532ef9fe1 (diff) | |
parisc: Fix register corruption in 32-bit dynamic ftrace
The 32-bit dynamic ftrace trampoline allocates a 64-byte frame.
ftrace_caller() saves %r26 at offset 20, which overlaps the third
argument's spill slot for ftrace_function_trampoline().
In the failing build, GCC spills org_sp_gr3 into that slot, overwriting
saved %r26 with the original stack pointer. Tracing preempt_count_add()
then passes that pointer as val and corrupts the preempt count.
Allocate two frames on 32-bit, as 64-bit already does, and update the
generated trampoline instruction to match.
Fixes: 6ca6366220ed ("parisc: add dynamic ftrace")
Cc: stable@vger.kernel.org
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
