HomeFreeBSD

vm_map_protect(): handle stack protection stored in the stack guard

Description

vm_map_protect(): handle stack protection stored in the stack guard

mprotect(2) on the stack region needs to adjust guard stored protection,
so that e.g. enable executing on stack worked properly on stack growth.

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 25 2023, 1:32 PM
Reviewer
alc
Differential Revision
D41099: More fixes for stacks
Parents
rG79169929f04d: vm_map_protect(): move guard handling at the last phase into an empty dedicated…
Branches
Unknown
Tags
Unknown