rwatson     2007-12-27 22:44:02 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_proc.c 
  Log:
  Return ESRCH when a kernel stack is queried on a process in execve() --
  p_candebug() will return EAGAIN which, if the other process never
  leaves execve(), will result in the sysctl spinning and never returning
  to userspace.  Processes should always eventually leave execve(), but
  spinning in kernel while we wait is bad for countless reasons, and
  particularly harmful if execve() itself is deadlocked.
  
  Possibly we should return another error, or return a marker indicating
  the thread is in execve() so it can be reported that way in userspace.
  
  Reported by:    kris
  
  Revision  Changes    Path
  1.259     +2 -1      src/sys/kern/kern_proc.c
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to