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)
Thu, Oct 9, 5:06 PM
Unknown Object (File)
Wed, Oct 8, 9:33 PM
Unknown Object (File)
Sun, Oct 5, 12:49 AM
Unknown Object (File)
Fri, Oct 3, 1:49 PM
Unknown Object (File)
Wed, Oct 1, 8:36 PM
Unknown Object (File)
Wed, Oct 1, 5:10 PM
Unknown Object (File)
Wed, Oct 1, 10:29 AM
Unknown Object (File)
Wed, Oct 1, 8:25 AM
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