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
F115010650: D41280.diff
Sat, Apr 19, 2:11 PM
F115009671: D41280.diff
Sat, Apr 19, 1:55 PM
F115004199: D41280.id125479.diff
Sat, Apr 19, 12:39 PM
Unknown Object (File)
Sat, Apr 19, 8:10 AM
Unknown Object (File)
Sat, Apr 19, 1:28 AM
Unknown Object (File)
Fri, Apr 18, 1:41 PM
Unknown Object (File)
Fri, Apr 18, 12:45 PM
Unknown Object (File)
Mon, Apr 14, 1:02 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