git: kernel - Fix MP refcount race in struct pargs

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 15 23:52:48 PST 2011


commit 19bfc8aba97a2cdc7b0d822266cdb5ae5d2e9a80
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 15 21:53:05 2011 -0800

    kernel - Fix MP refcount race in struct pargs
    
    * Protect p->p_args with p->p_token.
    
    * Protect pargs refcounts with sys/refcount.h.
    
    * This fixes at least one memory corruption bug during heavy fork/exec/exit
      testing with fastbulk.
    
    Testing-by: dillon, tuxillo

Summary of changes:
 sys/kern/kern_exec.c |   33 +++++++++++++++++++++++----------
 sys/kern/kern_fork.c |    3 ++-
 sys/kern/kern_proc.c |   43 ++++++++++++++++++++++---------------------
 3 files changed, 47 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/19bfc8aba97a2cdc7b0d822266cdb5ae5d2e9a80


-- 
DragonFly BSD source repository





More information about the Commits mailing list