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)
Sun, Sep 6, 3:28 AM
Unknown Object (File)
Sat, Sep 5, 8:12 PM
Unknown Object (File)
Sat, Sep 5, 7:46 PM
Unknown Object (File)
Sat, Sep 5, 7:46 PM
Unknown Object (File)
Sat, Sep 5, 11:48 AM
Unknown Object (File)
Sat, Sep 5, 5:11 AM
Unknown Object (File)
Sat, Sep 5, 4:08 AM
Unknown Object (File)
Fri, Sep 4, 7:34 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 52938
Build 49829: arc lint + arc unit