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)
Sep 27 2024, 9:32 AM
Unknown Object (File)
Sep 20 2024, 12:03 AM
Unknown Object (File)
Sep 20 2024, 12:03 AM
Unknown Object (File)
Sep 19 2024, 5:16 PM
Unknown Object (File)
Sep 19 2024, 5:53 AM
Unknown Object (File)
Sep 18 2024, 11:36 PM
Unknown Object (File)
Sep 5 2024, 4:30 PM
Unknown Object (File)
Sep 2 2024, 11:46 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