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
F103219572: D3440.diff
Fri, Nov 22, 8:43 AM
Unknown Object (File)
Tue, Nov 19, 7:50 PM
Unknown Object (File)
Sat, Nov 9, 6:24 AM
Unknown Object (File)
Oct 20 2024, 3:51 PM
Unknown Object (File)
Oct 20 2024, 12:30 AM
Unknown Object (File)
Oct 17 2024, 12:39 AM
Unknown Object (File)
Oct 15 2024, 12:48 AM
Unknown Object (File)
Oct 14 2024, 1:36 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.