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)
Mon, Mar 30, 11:43 AM
Unknown Object (File)
Mon, Mar 30, 1:58 AM
Unknown Object (File)
Fri, Mar 27, 7:17 AM
Unknown Object (File)
Wed, Mar 25, 12:32 AM
Unknown Object (File)
Tue, Mar 24, 6:20 PM
Unknown Object (File)
Sun, Mar 15, 2:24 PM
Unknown Object (File)
Sat, Mar 14, 9:11 PM
Unknown Object (File)
Mon, Mar 9, 5:39 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