git: kernel - Fix proc_reparent() race/assertion panic
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Nov 28 10:23:18 PST 2012
commit 55c81f71d1d24b9c7a6fa694b6d63d132cdba3b9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Nov 28 10:21:38 2012 -0800
kernel - Fix proc_reparent() race/assertion panic
* Fix proc_reparent() race/assertion panic. p_pptr changes can race,
and the procedure had an assertion for the case. Recode the procedure
to retry on a mismatch instead of assert.
* Also move the old-parent-wakeup code into the procedure so it is
properly executed in all cases.
Reported-by: Peter Avalos
Summary of changes:
sys/emulation/linux/i386/linux_machdep.c | 8 +++-
sys/emulation/linux/linux_emuldata.c | 4 +-
sys/kern/kern_exit.c | 62 ++++++++++++++++--------------
sys/kern/sys_process.c | 7 +--
4 files changed, 44 insertions(+), 37 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/55c81f71d1d24b9c7a6fa694b6d63d132cdba3b9
--
DragonFly BSD source repository
More information about the Commits
mailing list