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)
Wed, Sep 11, 8:23 AM
Unknown Object (File)
Sun, Sep 8, 3:20 PM
Unknown Object (File)
Sun, Sep 8, 9:55 AM
Unknown Object (File)
Sun, Sep 8, 12:11 AM
Unknown Object (File)
Sat, Sep 7, 5:32 AM
Unknown Object (File)
Thu, Sep 5, 1:17 AM
Unknown Object (File)
Mon, Sep 2, 8:16 PM
Unknown Object (File)
Sun, Sep 1, 11:32 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 Not Applicable
Unit
Tests Not Applicable

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.