Page MenuHomeFreeBSD

[PPC64] Fix trapstk overflow
ClosedPublic

Authored by luporl on Oct 30 2019, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 30, 2:26 AM
Unknown Object (File)
Wed, Nov 27, 5:46 AM
Unknown Object (File)
Wed, Nov 27, 3:26 AM
Unknown Object (File)
Oct 18 2024, 3:27 PM
Unknown Object (File)
Oct 4 2024, 4:51 AM
Unknown Object (File)
Sep 27 2024, 3:02 PM
Unknown Object (File)
Sep 21 2024, 12:07 PM
Unknown Object (File)
Sep 13 2024, 10:05 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