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, 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)
Tue, May 12, 1:41 AM
Unknown Object (File)
Sun, May 10, 12:09 PM
Unknown Object (File)
Sun, May 10, 12:04 PM
Unknown Object (File)
Fri, May 8, 7:08 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