git: kernel: Add a final p_lock wait loop before kfree'ing the process

YONETANI Tomokazu y0netan1 at crater.dragonflybsd.org
Sun Jun 5 22:11:07 PDT 2011


commit 49aa3df0ca3e226c0a0d7097863a2426ee6fd534
Author: YONETANI Tomokazu <y0netan1 at dragonflybsd.org>
Date:   Mon Jun 6 14:09:04 2011 +0900

    kernel: Add a final p_lock wait loop before kfree'ing the process
    
    Since p_lock can be acquired during the process removal, there
    needs to be a final wait loop after the proc has been removed
    from all queues, just before the kfree(p).  It will be a very
    rare case but it definitely can still occur if e.g. the SYSCTL_OUT
    code blocks on a VM fault or something like that.
    
    Requested-by: dillon@
    Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1996>

Summary of changes:
 sys/kern/kern_exit.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/49aa3df0ca3e226c0a0d7097863a2426ee6fd534


-- 
DragonFly BSD source repository





More information about the Commits mailing list