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
F175641267: D41280.id125479.diff
Mon, Oct 12, 5:52 AM
F175636322: D41280.id125434.diff
Mon, Oct 12, 5:06 AM
F175608549: D41280.diff
Mon, Oct 12, 12:37 AM
Unknown Object (File)
Wed, Sep 30, 6:51 PM
Unknown Object (File)
Wed, Sep 30, 6:48 PM
Unknown Object (File)
Wed, Sep 30, 5:23 PM
Unknown Object (File)
Sat, Sep 19, 10:54 PM
Unknown Object (File)
Sep 9 2026, 10:52 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