]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_map_growstack(): handle max protection for stacks
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 25 Jul 2023 13:56:29 +0000 (16:56 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 12 Aug 2023 06:28:13 +0000 (09:28 +0300)
commitaa928a52164fe57965491d63e57de66e9c078e1a
tree4737d152c00cb98052034f47346db846d238b5c9
parent0fb6aae7f0e19c0628c398bbe30297ef9245030e
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
sys/vm/vm_map.c