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)
Sat, Nov 22, 2:10 AM
Unknown Object (File)
Mon, Nov 17, 8:19 PM
Unknown Object (File)
Wed, Nov 12, 12:08 AM
Unknown Object (File)
Oct 29 2025, 9:52 AM
Unknown Object (File)
Oct 29 2025, 9:44 AM
Unknown Object (File)
Oct 28 2025, 12:58 AM
Unknown Object (File)
Oct 26 2025, 3:51 AM
Unknown Object (File)
Oct 26 2025, 3:30 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