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)
Mon, Dec 2, 2:10 AM
Unknown Object (File)
Mon, Nov 25, 7:24 AM
Unknown Object (File)
Mon, Nov 25, 4:50 AM
Unknown Object (File)
Sun, Nov 24, 11:49 AM
Unknown Object (File)
Sat, Nov 23, 3:03 AM
Unknown Object (File)
Nov 22 2024, 8:43 AM
Unknown Object (File)
Nov 19 2024, 7:50 PM
Unknown Object (File)
Nov 9 2024, 6:24 AM
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.