Page MenuHomeFreeBSD

[PPC64] Fix trapstk overflow
ClosedPublic

Authored by luporl on Oct 30 2019, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 12:19 PM
Unknown Object (File)
Sun, Apr 7, 12:03 PM
Unknown Object (File)
Nov 15 2023, 2:34 PM
Unknown Object (File)
Nov 14 2023, 11:23 AM
Unknown Object (File)
Nov 5 2023, 6:34 AM
Unknown Object (File)
Nov 4 2023, 6:30 AM
Unknown Object (File)
Oct 14 2023, 1:40 PM
Unknown Object (File)
Oct 13 2023, 10:23 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