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)
Sun, Dec 14, 2:38 AM
Unknown Object (File)
Sat, Dec 13, 10:49 PM
Unknown Object (File)
Wed, Dec 10, 6:32 AM
Unknown Object (File)
Mon, Dec 1, 1:42 PM
Unknown Object (File)
Tue, Nov 18, 10:46 AM
Unknown Object (File)
Nov 14 2025, 12:27 PM
Unknown Object (File)
Nov 4 2025, 9:00 PM
Unknown Object (File)
Nov 4 2025, 8:56 PM
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.