HomeFreeBSD

ASLR: check for max_addr after applying randomization, not before.

Description

ASLR: check for max_addr after applying randomization, not before.

Otherwise resulting address from vm_map_find() migh not satisfy the
upper limit. For instance, it could affect MAP_32BIT flag from 64bit
processes.

Found by: Doug Moore <dougm@rice.edu>
Reviewed by: alc, Doug Moore <dougm@rice.edu>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D19688

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D19688: ASLR: check for max_addr after applying randomization, not before.
Parents
rS345451: MFC r342762:
Branches
Unknown
Tags
Unknown