From 74d1f5d20f166f85b04ab7e5743e812d5a924ca1 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 7 Aug 2013 10:07:55 +0000 Subject: [PATCH] Revert the MFC of the r244237, done as r244806. There are indeed bugs in XEN pmap. The revert hides a panic with the cost of non-working vfork(2), which means more obscure misbehaviour in the usermode. Revert is only done on the stable branch to maintain the consistent erratic behaviour. PR: kern/180788 Approved by: re (marius) git-svn-id: svn://svn.freebsd.org/base/releng/9.2@254054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/kern/kern_fork.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 255942fe..f98697c5 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -150,7 +150,11 @@ sys_vfork(struct thread *td, struct vfork_args *uap) int error, flags; struct proc *p2; +#ifdef XEN + flags = RFFDG | RFPROC; /* validate that this is still an issue */ +#else flags = RFFDG | RFPROC | RFPPWAIT | RFMEM; +#endif error = fork1(td, flags, 0, &p2, NULL, 0); if (error == 0) { td->td_retval[0] = p2->p_pid; -- 2.42.0