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)
Nov 22 2024, 11:17 AM
Unknown Object (File)
Nov 22 2024, 11:17 AM
Unknown Object (File)
Nov 22 2024, 11:17 AM
Unknown Object (File)
Nov 22 2024, 10:56 AM
Unknown Object (File)
Nov 18 2024, 2:50 PM
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
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