Thread (4 messages) 4 messages, 3 authors, 2023-07-03

Re: [RFC PATCH v2 1/1] powerpc: update ppc_save_regs to save current r1 in pt_regs

From: Michael Ellerman <hidden>
Date: 2023-07-03 05:34:55

On Thu, 15 Jun 2023 14:40:47 +0530, Aditya Gupta wrote:
ppc_save_regs() skips one stack frame while saving the CPU register states.
Instead of saving current R1, it pulls the previous stack frame pointer.

When vmcores caused by direct panic call (such as `echo c >
/proc/sysrq-trigger`), are debugged with gdb, gdb fails to show the
backtrace correctly. On further analysis, it was found that it was because
of mismatch between r1 and NIP.

[...]
Applied to powerpc/next.

[1/1] powerpc: update ppc_save_regs to save current r1 in pt_regs
      https://git.kernel.org/powerpc/c/b684c09f09e7a6af3794d4233ef785819e72db79

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help