From: David S. Miller Date: Thu, 22 May 2008 04:50:01 +0000 (-0700) Subject: sparc64: Prevent stack backtrace false positives on trap frames. X-Git-Tag: v2.6.26-rc4~71^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ada44a0430fdd00b3f38aad0aa518e97cb760bd0;p=linux-2.6-omap-h63xx.git sparc64: Prevent stack backtrace false positives on trap frames. 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 --- diff --git a/arch/sparc64/kernel/rtrap.S b/arch/sparc64/kernel/rtrap.S index 3afacbb5781..c6fc695fe1f 100644 --- 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