svn commit: r254053 - stable/9/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Aug 7 09:18:22 UTC 2013


Author: kib
Date: Wed Aug  7 09:18:21 2013
New Revision: 254053
URL: http://svnweb.freebsd.org/changeset/base/254053

Log:
  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

Modified:
  stable/9/sys/kern/kern_fork.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_fork.c
==============================================================================
--- stable/9/sys/kern/kern_fork.c	Wed Aug  7 08:20:11 2013	(r254052)
+++ stable/9/sys/kern/kern_fork.c	Wed Aug  7 09:18:21 2013	(r254053)
@@ -150,7 +150,11 @@ sys_vfork(struct thread *td, struct vfor
 	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;


More information about the svn-src-all mailing list