Page MenuHomeFreeBSD

kdb: Permit a NULL thread credential in kdb_backend_permitted()
ClosedPublic

Authored by markj on Aug 1 2023, 4:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 3, 4:07 PM
Unknown Object (File)
Mon, Jun 1, 4:09 PM
Unknown Object (File)
Sat, May 30, 8:59 PM
Unknown Object (File)
Mon, May 18, 3:21 PM
Unknown Object (File)
Mon, May 18, 3:16 PM
Unknown Object (File)
Mon, May 18, 1:19 PM
Unknown Object (File)
Mon, May 18, 1:13 PM
Unknown Object (File)
May 12 2026, 1:41 AM
Subscribers

Details

Summary

Early during boot, thread0 runs with td->td_ucred == NULL. This is
fixed up in proc0_init() at SI_SUB_INTRINSIC. If a panic occurs before
then, rather than dereference a NULL pointer, simply allow the thread to
enter KDB.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable