HomeFreeBSD

Add a helper function for validating VA ranges.

Description

Add a helper function for validating VA ranges.

Functions which take untrusted user ranges must validate against the
bounds of the map, and also check for wraparound. Instead of having the
same logic duplicated in a number of places, add a function to check.

Reviewed by: dougm, kib
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25328

Details

Provenance
markjAuthored on
Reviewer
dougm
Differential Revision
D25328: Add a helper function for validating VA ranges.
Parents
rS362360: Fix a double object unlock in vm_object_backing_collapse_wait().
Branches
Unknown
Tags
Unknown