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)
Tue, Nov 19, 1:21 AM
Unknown Object (File)
Oct 3 2024, 8:51 AM
Unknown Object (File)
Sep 28 2024, 6:31 PM
Unknown Object (File)
Sep 28 2024, 6:31 PM
Unknown Object (File)
Sep 28 2024, 6:22 PM
Unknown Object (File)
Sep 16 2024, 1:16 PM
Unknown Object (File)
Sep 16 2024, 8:12 AM
Unknown Object (File)
Sep 9 2024, 3:25 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.