Page MenuHomeFreeBSD

gctl_get_geom: Skip validation of g_class.
ClosedPublic

Authored by delphij on Jul 26 2020, 6:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 19, 12:24 AM
Unknown Object (File)
Thu, Jan 15, 5:12 PM
Unknown Object (File)
Dec 20 2025, 11:05 AM
Unknown Object (File)
Dec 14 2025, 2:38 AM
Unknown Object (File)
Dec 13 2025, 10:49 PM
Unknown Object (File)
Dec 10 2025, 6:32 AM
Unknown Object (File)
Dec 1 2025, 1:42 PM
Unknown Object (File)
Nov 18 2025, 10:46 AM
Subscribers

Details

Summary

The caller from kernel is expected to provide an valid g_class
pointer, instead of traversing the global g_class list, just
assert that it is not NULL and use it directly instead.

MFC after: 2 weeks

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

delphij created this revision.

Makes sense. Not sure why it was made so paranoid.

This revision is now accepted and ready to land.Jul 26 2020, 7:45 PM

It was primarily made paranoid because GEOM went into the kernel during a very turbulent period in terms of locking, and because some of the compatibility shims necessary to keep systems working were ... "interesting".

This revision was automatically updated to reflect the committed changes.