HomeFreeBSD

vm_map_protect(): add VM_MAP_PROTECT_GROWSDOWN flag

Description

vm_map_protect(): add VM_MAP_PROTECT_GROWSDOWN flag

which requests to propagate lowest stack segment protection to the grow gap.
This seems to be required for Linux emulation.

Reported by: dchagin
Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D41099

Details

Provenance
kibAuthored on Jul 28 2023, 12:40 AM
Reviewer
alc
Differential Revision
D41099: More fixes for stacks
Parents
rGb6037edbd17d: vm_map_growstack(): restore stack gap data if gap entry was removed
Branches
Unknown
Tags
Unknown