]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid specifying VM_PROT_EXECUTE in mappings from pipe_map and exec_map.
authormarkj <markj@FreeBSD.org>
Tue, 6 Nov 2018 21:57:03 +0000 (21:57 +0000)
committermarkj <markj@FreeBSD.org>
Tue, 6 Nov 2018 21:57:03 +0000 (21:57 +0000)
commitc259f44e9a4648c22df026244fa845941bbac5b7
tree6575163734e4ed104fc13e63248d7171a203f5b2
parent96845afdec2c015e1cef5bce34d411790d60d431
Avoid specifying VM_PROT_EXECUTE in mappings from pipe_map and exec_map.

These submaps are used for mapping pipe buffers and execv() argument
strings respectively, so there's no need for such mappings to have
execute permissions.

Reported by: jhb
Reviewed by: alc, jhb, kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17827
sys/kern/sys_pipe.c
sys/vm/vm_kern.c