Page MenuHomeFreeBSD

[PPC64] Fix trapstk overflow
ClosedPublic

Authored by luporl on Oct 30 2019, 9:27 PM.
Tags
None
Referenced Files
F169015475: D22200.id63813.diff
Mon, Aug 31, 3:21 AM
F169003105: D22200.id.diff
Mon, Aug 31, 2:43 AM
F168994955: D22200.diff
Mon, Aug 31, 2:19 AM
Unknown Object (File)
Fri, Aug 28, 1:23 PM
Unknown Object (File)
Thu, Aug 27, 3:51 PM
Unknown Object (File)
Thu, Aug 27, 12:10 PM
Unknown Object (File)
Wed, Aug 26, 5:27 PM
Unknown Object (File)
Tue, Aug 25, 9:12 AM
Subscribers

Details

Summary

In some scenarios, the 4K trapstk may overflow, corrupting tmpstk.

This was observed during remote debugging, with the following steps:

At remote host (R):

  • enter kdb during boot
  • switch to gdb backend

At local host (L):

  • attach gdb to R
  • try to read an invalid memory position

At R:

  • a DSI trap occurs and kdb restarts (all this occurs on trapstk)
  • while printing the stacktrace, trapstk overflows and corrupts tmpstk

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable