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)
May 2 2024, 9:06 AM
Unknown Object (File)
May 2 2024, 9:06 AM
Unknown Object (File)
May 2 2024, 9:04 AM
Unknown Object (File)
May 2 2024, 2:44 AM
Unknown Object (File)
Apr 22 2024, 5:39 AM
Unknown Object (File)
Dec 12 2023, 5:41 AM
Unknown Object (File)
Nov 2 2023, 12:45 PM
Unknown Object (File)
Oct 14 2023, 7:38 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