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)
Thu, Oct 9, 9:51 PM
Unknown Object (File)
Thu, Oct 9, 9:51 PM
Unknown Object (File)
Thu, Oct 9, 9:51 PM
Unknown Object (File)
Thu, Oct 9, 6:37 PM
Unknown Object (File)
Wed, Sep 17, 8:46 AM
Unknown Object (File)
Aug 20 2025, 8:06 AM
Unknown Object (File)
Aug 2 2025, 4:00 AM
Unknown Object (File)
Jul 26 2025, 8:04 PM
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