HomeFreeBSD

vm_map_growstack(): handle max protection for stacks

Description

vm_map_growstack(): handle max protection for stacks

Do not assume that protection is same as max_protection. Store both in
offset, packed in the same way as the prot syscall parameter.

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

Details

Provenance
kibAuthored on Jul 25 2023, 1:56 PM
Reviewer
alc
Differential Revision
D41099: More fixes for stacks
Parents
rG0fb6aae7f0e1: vm_map.c: add CONTAINS_BITS macro
Branches
Unknown
Tags
Unknown