mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-03 07:37:56 +07:00
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 <davem@davemloft.net>
This commit is contained in:
parent
14d2c68baa
commit
ada44a0430
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user