]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxolator: implement Linux' PROT_GROWSDOWN
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 29 Jul 2023 21:00:51 +0000 (00:00 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 12 Aug 2023 06:28:14 +0000 (09:28 +0300)
commit9b65fa69407808e710748875b0af98902110f128
tree191bd636c2dcbc3fdc1147499acfa0e686eb8a06
parent90049eabcfadf229e3983f04310a8ea28fe3d2b1
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
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/linux/linux_mmap.c
sys/sys/syscallsubr.h
sys/vm/vm_mmap.c