diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-07-23 14:19:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-07-23 14:19:03 +0000 |
commit | 6020908a3838ee5c7fd267233353177daada258e (patch) | |
tree | c46767c6fb38a905fc5cb05e7a1c0249723cf671 /sys/kern/kern_fork.c | |
parent | 44a608a84bb9dd3d78066d473000b933b0bcfd6c (diff) |
Make sure the u area of new processes is zero-filled; this got lost in
1.119.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 8d30efdc09c..07b8b1bc2c7 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.120 2010/07/19 23:00:15 guenther Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.121 2010/07/23 14:19:02 miod Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -243,7 +243,8 @@ 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, 0, dma_constraint.ucr_low, dma_constraint.ucr_high, + USPACE_ALIGN, UVM_KMF_ZERO, + dma_constraint.ucr_low, dma_constraint.ucr_high, 0, 0, USPACE/PAGE_SIZE); if (uaddr == 0) { chgproccnt(uid, -1); |