summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNaveen N Rao <naveen@kernel.org>2023-12-15 16:44:33 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-20 15:38:04 +0100
commit0d2c629858e14c7a81c3992c39fff6aae5639113 (patch)
treef3eb1afa7119c3af076169ac27066a5a9a42a53a /kernel
parentefe775c71423a4096f558530b5609eb6f6d46f0e (diff)
downloadlinux-0d2c629858e14c7a81c3992c39fff6aae5639113.tar.gz
linux-0d2c629858e14c7a81c3992c39fff6aae5639113.tar.bz2
linux-0d2c629858e14c7a81c3992c39fff6aae5639113.zip
powerpc/ftrace: Fix stack teardown in ftrace_no_trace
commit 4b3338aaa74d7d4ec5b6734dc298f0db94ec83d2 upstream. Commit 41a506ef71eb ("powerpc/ftrace: Create a dummy stackframe to fix stack unwind") added use of a new stack frame on ftrace entry to fix stack unwind. However, the commit missed updating the offset used while tearing down the ftrace stack when ftrace is disabled. Fix the same. In addition, the commit missed saving the correct stack pointer in pt_regs. Update the same. Fixes: 41a506ef71eb ("powerpc/ftrace: Create a dummy stackframe to fix stack unwind") Cc: stable@vger.kernel.org # v6.5+ Signed-off-by: Naveen N Rao <naveen@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231130065947.2188860-1-naveen@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions