Page MenuHomeFreeBSD

metadata parser: add a check for invalid values
ClosedPublic

Authored by royger on Aug 20 2015, 3:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 20, 3:51 PM
Unknown Object (File)
Sun, Oct 20, 12:30 AM
Unknown Object (File)
Thu, Oct 17, 12:39 AM
Unknown Object (File)
Tue, Oct 15, 12:48 AM
Unknown Object (File)
Mon, Oct 14, 1:36 AM
Unknown Object (File)
Sat, Oct 12, 8:14 PM
Unknown Object (File)
Sat, Oct 12, 2:41 AM
Unknown Object (File)
Thu, Oct 10, 7:18 PM
Subscribers

Details

Summary

Add a check to preload_search_info to make sure mod is correctly set. Most
of the callers of preload_search_info don't check that the mod parameter is
valid, which can cause page faults.

Sponsored by: Citrix Systems R&D

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 174
Build 174: arc lint + arc unit

Event Timeline

royger retitled this revision from to metadata parser: add a check for invalid values.
royger updated this object.
royger edited the test plan for this revision. (Show Details)
royger added reviewers: kib, jhb.

I would argue that the commit message should talk not about the 'correct' kmdp, but instead of kmdp presence.

There is at least one place which is now redundandly check for kmdp != NULL, look at the hammer_time():1624.

royger edited edge metadata.

Thanks, I've updated the commit message and removed some unnecessary kmdp !=
NULL checks before calling preload_search_info and MD_FETCH.

Currently running a tinderbox, will commit after tinderbox finishes unless
there are other comments.

kib edited edge metadata.
This revision is now accepted and ready to land.Aug 21 2015, 12:10 PM
This revision was automatically updated to reflect the committed changes.