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)
Jun 3 2026, 4:07 PM
Unknown Object (File)
Jun 1 2026, 4:09 PM
Unknown Object (File)
May 30 2026, 8:59 PM
Unknown Object (File)
May 18 2026, 3:21 PM
Unknown Object (File)
May 18 2026, 3:16 PM
Unknown Object (File)
May 18 2026, 1:19 PM
Unknown Object (File)
May 18 2026, 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