diff options
author | 2011-06-06 17:10:23 +0000 | |
---|---|---|
committer | 2011-06-06 17:10:23 +0000 | |
commit | 97581e8a0a11f01a47d6770c7128a59e7705ac0a (patch) | |
tree | ae5dfa1059412b2100527a457aa3ec56e96a260e /sys/kern/kern_exec.c | |
parent | push kernel malloc(9) and kernel stacks into non-dma memory, since that (diff) | |
download | wireguard-openbsd-97581e8a0a11f01a47d6770c7128a59e7705ac0a.tar.xz wireguard-openbsd-97581e8a0a11f01a47d6770c7128a59e7705ac0a.zip |
Backout vmmap in order to repair virtual address selection algorithms
outside the tree.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 5518cf41929..92db43a6f3b 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.118 2011/05/24 15:27:36 ariane Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.119 2011/06/06 17:10:23 ariane Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -810,6 +810,7 @@ exec_sigcode_map(struct proc *p, struct emul *e) } /* Just a hint to uvm_mmap where to put it. */ + p->p_sigcode = uvm_map_hint(p, VM_PROT_READ|VM_PROT_EXECUTE); uao_reference(e->e_sigobject); if (uvm_map(&p->p_vmspace->vm_map, &p->p_sigcode, round_page(sz), e->e_sigobject, 0, 0, UVM_MAPFLAG(UVM_PROT_RX, UVM_PROT_RX, |