]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_map_protect(): handle stack protection stored in the stack guard
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 25 Jul 2023 13:32:28 +0000 (16:32 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 12 Aug 2023 06:28:13 +0000 (09:28 +0300)
commit55be6be12cd95552a46feccb42db984c8d3cbc36
tree97aa3492ca3ee1a87012af23e954e300de2e3d1b
parent79169929f04d00e51a901d1e4cb377d2475bf660
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
sys/vm/vm_map.c