Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3
+3
arch/powerpc/xmon/xmon.c
··· 2418 2418 DUMP(p, __current, "%-*px"); 2419 2419 DUMP(p, kstack, "%#-*llx"); 2420 2420 printf(" %-*s = 0x%016llx\n", 25, "kstack_base", p->kstack & ~(THREAD_SIZE - 1)); 2421 + #ifdef CONFIG_STACKPROTECTOR 2422 + DUMP(p, canary, "%#-*lx"); 2423 + #endif 2421 2424 DUMP(p, saved_r1, "%#-*llx"); 2422 2425 DUMP(p, trap_save, "%#-*x"); 2423 2426 DUMP(p, irq_soft_mask, "%#-*x");