git: kernel - Fix rare race in namecache

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 18 09:52:38 PST 2013


commit 8214af3d1fa31993e6cd9ea091716b93f78dc50a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Feb 18 09:50:22 2013 -0800

    kernel - Fix rare race in namecache
    
    * Fix a rare race in _cache_cleanneg() where the ncp being cleaned up is
      resolved during the moment between where _cache_cleanneg() accesses it
      prior to locking and removing it.
    
    * _cache_cleanneg() needed to re-check that the ncp was still on the
      negative cache list.
    
    Reported-by: marino

Summary of changes:
 sys/kern/vfs_cache.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8214af3d1fa31993e6cd9ea091716b93f78dc50a


-- 
DragonFly BSD source repository


More information about the Commits mailing list