Page MenuHomeFreeBSD

lindebugfs.c: Fix possible NULL dereference
ClosedPublic

Authored by dumbbell on Jun 23 2025, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 29, 11:12 AM
Unknown Object (File)
Wed, Oct 29, 9:55 AM
Unknown Object (File)
Wed, Oct 29, 9:54 AM
Unknown Object (File)
Wed, Oct 29, 9:54 AM
Unknown Object (File)
Wed, Oct 29, 9:47 AM
Unknown Object (File)
Wed, Oct 29, 9:37 AM
Unknown Object (File)
Sun, Oct 26, 3:06 AM
Unknown Object (File)
Thu, Oct 16, 6:24 PM
Subscribers

Details

Summary

If debugfs_destroy() is called early as part of error handling during initialzation, pn->pn_data is unset. This led to a panic in that if because dm is NULL.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable