Permalink
Browse files

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)
  • Loading branch information...
1 parent 14d93d6 commit 1562376fc511cea33cd0671e38f314136ec288c6 @kostikbel kostikbel committed Aug 7, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 sys/kern/kern_fork.c
View
@@ -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;

0 comments on commit 1562376

Please sign in to comment.