summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-06 17:05:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-06 17:05:47 +0000
commitd2a285457d0c89bdbfc900ff091099f892e0e4f4 (patch)
tree90f9b8cebefe6f5dfc9454e898129245c5465f75 /sys/kern/kern_fork.c
parent95bb94cc96431b31e24edf923367b4cf20dc7bc4 (diff)
push kernel malloc(9) and kernel stacks into non-dma memory, since that
appears to be safe now. If not, we'll know soon where the bugs lie, so that we can fix them. This diff has been in snapshots for many months. ok oga miod
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 1753df4bbf3..ebdc5a53a24 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.125 2011/04/03 14:56:28 guenther Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.126 2011/06/06 17:05:46 deraadt Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -253,7 +253,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize,
uaddr = uvm_km_kmemalloc_pla(kernel_map, uvm.kernel_object, USPACE,
USPACE_ALIGN, UVM_KMF_ZERO,
- dma_constraint.ucr_low, dma_constraint.ucr_high,
+ no_constraint.ucr_low, no_constraint.ucr_high,
0, 0, USPACE/PAGE_SIZE);
if (uaddr == 0) {
chgproccnt(uid, -1);