projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed9e84a
)
powerpc/xmon: Show the stack protector canary in xmon
author
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 12 Oct 2018 02:58:52 +0000
(13:58 +1100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sat, 13 Oct 2018 11:21:25 +0000
(22:21 +1100)
This is helpful for debugging stack protector crashes.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/xmon/xmon.c
b/arch/powerpc/xmon/xmon.c
index c70d17c9a6ba921f09450a0e404d46fed4389e9c..d139741f26fe3df6cf1f12e9646190ae523581b2 100644
(file)
--- a/
arch/powerpc/xmon/xmon.c
+++ b/
arch/powerpc/xmon/xmon.c
@@
-2418,6
+2418,9
@@
static void dump_one_paca(int cpu)
DUMP(p, __current, "%-*px");
DUMP(p, kstack, "%#-*llx");
printf(" %-*s = 0x%016llx\n", 25, "kstack_base", p->kstack & ~(THREAD_SIZE - 1));
+#ifdef CONFIG_STACKPROTECTOR
+ DUMP(p, canary, "%#-*lx");
+#endif
DUMP(p, saved_r1, "%#-*llx");
DUMP(p, trap_save, "%#-*x");
DUMP(p, irq_soft_mask, "%#-*x");