linux-stable/arch/powerpc
Naveen N Rao 75fbe0d9d5 powerpc/ftrace: Fix stack teardown in ftrace_no_trace
commit 4b3338aaa7 upstream.

Commit 41a506ef71 ("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: 41a506ef71 ("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>
2023-12-20 15:32:39 +01:00
..
boot powerpc: dts: t208x: Disable 10G on MAC1 and MAC2 2023-02-25 11:50:31 +01:00
configs Remove DECnet support from kernel 2023-06-21 15:38:58 +02:00
crypto crypto: hash - annotate algorithms taking optional key 2018-02-16 20:23:00 +01:00
include word-at-a-time: use the same return type for has_zero regardless of endianness 2023-08-11 11:33:54 +02:00
kernel powerpc/ftrace: Fix stack teardown in ftrace_no_trace 2023-12-20 15:32:39 +01:00
kvm KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow 2021-07-28 11:12:19 +02:00
lib powerpc/lib/sstep: Fix build errors with newer binutils 2022-04-20 09:08:23 +02:00
math-emu powerpc/math_emu/efp: Include module.h 2022-10-26 13:17:07 +02:00
mm powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E 2022-08-25 11:11:30 +02:00
net powerpc/bpf: Fix BPF_SUB when imm == 0x80000000 2021-11-26 11:40:36 +01:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf powerpc/perf/hv-24x7: Update domain value check 2023-10-10 21:43:38 +02:00
platforms powerpc/pseries: fix possible memory leak in ibmebus_bus_init() 2023-09-23 10:47:04 +02:00
purgatory License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sysdev powerpc/sysdev/tsi108: fix resource printk format warnings 2023-05-17 11:11:44 +02:00
tools powerpc/tools: Don't quote $objdump in scripts 2020-01-04 13:59:39 +01:00
xmon powerpc/xmon: Change printk() to pr_cont() 2020-12-29 13:47:08 +01:00
Kconfig powerpc: Fix HAVE_HARDLOCKUP_DETECTOR_ARCH build configuration 2021-05-22 10:57:32 +02:00
Kconfig.debug powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y 2023-08-11 11:33:40 +02:00
Makefile powerpc: Fix defconfig choice logic when cross compiling 2023-06-21 15:38:59 +02:00
Makefile.postlink License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00