HomeFreeBSD

linuxolator: implement Linux' PROT_GROWSDOWN

Description

linuxolator: implement Linux' PROT_GROWSDOWN

From the Linux man page for mprotect(2):

PROT_GROWSDOWN
    Apply  the  protection  mode  down to the beginning of a mapping
    that grows downward (which should be a stack segment or a
    segment mapped with the MAP_GROWSDOWN flag set).

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 29 2023, 9:00 PM
Reviewer
alc
Differential Revision
D41099: More fixes for stacks
Parents
rG90049eabcfad: vm_map_protect(): add VM_MAP_PROTECT_GROWSDOWN flag
Branches
Unknown
Tags
Unknown