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)
Fri, Oct 17, 6:36 PM
Unknown Object (File)
Fri, Oct 17, 6:36 PM
Unknown Object (File)
Fri, Oct 17, 6:36 PM
Unknown Object (File)
Fri, Oct 17, 9:43 AM
Unknown Object (File)
Tue, Sep 30, 11:42 PM
Unknown Object (File)
Wed, Sep 24, 2:15 AM
Unknown Object (File)
Sat, Sep 20, 5:23 AM
Unknown Object (File)
Sep 19 2025, 5:00 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.