mjg 2dadc8e0dd Revert "fork: fix use-after-free with vfork"
This unreliably breaks libc handling of vfork where forking succeded,
but execve did not.

vfork code in libc performs waitpid with WNOHANG in case of failed exec.
With the fix exit codepath was waking up the parent before the child
fully transitioned to a zombie. Woken up parent would waitpid, which
could find a not-yet-zombie child and fail to reap it due to the WNOHANG
flag.

While removing the flag fixes the problem, it is not an option due to older
releases which would still suffer from the kernel change.

Revert the fix until a solution can be worked out.

Note that while use-after-free which gets back due to the revert is a real
bug, it's side-effects are limited due to the fact that struct proc memory
is never released by UMA.
2018-11-23 04:38:50 +00:00
..
2018-04-13 20:30:49 +00:00
2018-11-06 18:03:04 +00:00
2018-08-04 20:45:43 +00:00
2018-10-30 21:35:56 +00:00
2018-10-22 02:35:12 +00:00
2018-06-13 16:48:07 +00:00
2018-10-12 00:32:45 +00:00
2018-08-18 19:45:56 +00:00
2018-04-08 16:34:10 +00:00
2018-06-01 13:26:45 +00:00
2018-11-20 14:58:41 +00:00
2018-10-25 15:40:59 +00:00
2018-11-20 14:59:27 +00:00
2018-11-09 21:01:16 +00:00
2018-06-01 13:26:45 +00:00
2018-11-11 00:21:28 +00:00
2018-11-19 00:54:31 +00:00
2018-06-01 13:26:45 +00:00
2018-10-23 21:43:41 +00:00
2018-08-17 16:07:06 +00:00