Page MenuHomeFreeBSD

[PPC64] Fix trapstk overflow
ClosedPublic

Authored by luporl on Oct 30 2019, 9:27 PM.
Tags
None
Referenced Files
F148552067: D22200.diff
Wed, Mar 18, 4:42 PM
F148501454: D22200.diff
Wed, Mar 18, 7:12 AM
Unknown Object (File)
Fri, Mar 13, 9:52 PM
Unknown Object (File)
Tue, Mar 10, 12:06 PM
Unknown Object (File)
Tue, Mar 3, 11:07 AM
Unknown Object (File)
Tue, Mar 3, 8:00 AM
Unknown Object (File)
Mon, Mar 2, 11:17 PM
Unknown Object (File)
Mon, Mar 2, 11:11 PM
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