Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ada44a04 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 14d2c68b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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