svn commit: r251957 - stable/9/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Jun 18 19:03:28 UTC 2013
Author: kib
Date: Tue Jun 18 19:03:27 2013
New Revision: 251957
URL: http://svnweb.freebsd.org/changeset/base/251957
Log:
MFC r251285:
Do not map the shared page COW.
Modified:
stable/9/sys/kern/kern_exec.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/kern_exec.c
==============================================================================
--- stable/9/sys/kern/kern_exec.c Tue Jun 18 16:36:21 2013 (r251956)
+++ stable/9/sys/kern/kern_exec.c Tue Jun 18 19:03:27 2013 (r251957)
@@ -1069,8 +1069,9 @@ exec_new_vmspace(imgp, sv)
vm_object_reference(obj);
error = vm_map_fixed(map, obj, 0,
sv->sv_shared_page_base, sv->sv_shared_page_len,
- VM_PROT_READ | VM_PROT_EXECUTE, VM_PROT_ALL,
- MAP_COPY_ON_WRITE | MAP_ACC_NO_CHARGE);
+ VM_PROT_READ | VM_PROT_EXECUTE,
+ VM_PROT_READ | VM_PROT_EXECUTE,
+ MAP_INHERIT_SHARE | MAP_ACC_NO_CHARGE);
if (error) {
vm_object_deallocate(obj);
return (error);
More information about the svn-src-stable-9
mailing list