DragonFly-2.3.1.566.g0a4a9c master sys/kern kern_descrip.c kern_exec.c kern_exit.c kern_fork.c vfs_aio.c sys/sys filedesc.h

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jul 2 12:05:12 PDT 2009


commit 0a4a9c77c8050921de07a2085cd6de5fe83db343
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jul 2 12:02:17 2009 -0700

    file descriptor enumeration - Fix races
    
    Add a soft refrence count, fd_softrefs, to struct filedesc.  This is
    used to prevent the filedesc from being ripped out from under a file
    descriptor scan via the allproc scan, which is used to enumerate
    file descriptors and also used by the revoke code.
    
    Reported-by: hasso

Summary of changes:
 sys/kern/kern_descrip.c |   63 +++++++++++++++++++++++++++++++++++++++++-----
 sys/kern/kern_exec.c    |    3 +-
 sys/kern/kern_exit.c    |    3 +-
 sys/kern/kern_fork.c    |    6 +---
 sys/kern/vfs_aio.c      |    3 +-
 sys/sys/filedesc.h      |    3 +-
 6 files changed, 63 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a4a9c77c8050921de07a2085cd6de5fe83db343


-- 
DragonFly BSD source repository





More information about the Commits mailing list