projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14d2c68
)
sparc64: Prevent stack backtrace false positives on trap frames.
author
David S. Miller
<davem@davemloft.net>
Thu, 22 May 2008 04:50:01 +0000
(21:50 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 22 May 2008 04:50:01 +0000
(21:50 -0700)
When we fully commit to returning back to kernel mode from
a trap, zero out the regs->magic value to prevent false
positives during stack backtraces.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/rtrap.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc64/kernel/rtrap.S
b/arch/sparc64/kernel/rtrap.S
index 3afacbb5781da9c7405093073f70335ea2193222..c6fc695fe1fe79fb7c695a3d2f51069e031c10b5 100644
(file)
--- a/
arch/sparc64/kernel/rtrap.S
+++ b/
arch/sparc64/kernel/rtrap.S
@@
-363,6
+363,7
@@
kern_rtt: rdpr %canrestore, %g1
brz,pn %g1, kern_rtt_fill
nop
kern_rtt_restore:
+ stw %g0, [%sp + PTREGS_OFF + PT_V9_MAGIC]
restore
retry