Skip to content

Commit 50530f5

Browse files
committed
powerpc/xmon: Show the stack protector canary in xmon
This is helpful for debugging stack protector crashes. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent ed9e84a commit 50530f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/powerpc/xmon/xmon.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,9 @@ static void dump_one_paca(int cpu)
24182418
DUMP(p, __current, "%-*px");
24192419
DUMP(p, kstack, "%#-*llx");
24202420
printf(" %-*s = 0x%016llx\n", 25, "kstack_base", p->kstack & ~(THREAD_SIZE - 1));
2421+
#ifdef CONFIG_STACKPROTECTOR
2422+
DUMP(p, canary, "%#-*lx");
2423+
#endif
24212424
DUMP(p, saved_r1, "%#-*llx");
24222425
DUMP(p, trap_save, "%#-*x");
24232426
DUMP(p, irq_soft_mask, "%#-*x");

0 commit comments

Comments
 (0)