Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm In uvm_proc_exit bail out early if we have no vmspac...
details: https://anonhg.NetBSD.org/src/rev/b1a2a55026e5
branches: trunk
changeset: 773659:b1a2a55026e5
user: martin <martin%NetBSD.org@localhost>
date: Sun Feb 12 11:18:04 2012 +0000
description:
In uvm_proc_exit bail out early if we have no vmspace yet (as it happens
for failing posix_spawn child processes).
Fixes PR kern/45991.
diffstat:
sys/uvm/uvm_glue.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 80b5a1b790d1 -r b1a2a55026e5 sys/uvm/uvm_glue.c
--- a/sys/uvm/uvm_glue.c Sun Feb 12 10:01:57 2012 +0000
+++ b/sys/uvm/uvm_glue.c Sun Feb 12 11:18:04 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_glue.c,v 1.155 2012/02/11 23:16:18 martin Exp $ */
+/* $NetBSD: uvm_glue.c,v 1.156 2012/02/12 11:18:04 martin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.155 2012/02/11 23:16:18 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.156 2012/02/12 11:18:04 martin Exp $");
#include "opt_kgdb.h"
#include "opt_kstack.h"
@@ -416,6 +416,8 @@
KASSERT(p == l->l_proc);
ovm = p->p_vmspace;
+ if (__predict_false(ovm == NULL))
+ return;
/*
* borrow proc0's address space.
Home |
Main Index |
Thread Index |
Old Index