cvs commit: src/sys/kern vfs_syscalls.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Aug 14 11:41:18 PDT 2005


dillon      2005/08/14 11:41:13 PDT

DragonFly src repository

  Modified files:
    sys/kern             vfs_syscalls.c 
  Log:
  Fix a race in rename when relocking the source namecache entry.  Since we
  may have blocked previously it is possible for the namecache entry to become
  invalid (not destroyed since we hold a ref, but invalid).  For example, if
  the source was removed.  This case only occurs when rename() is racing
  against a remove() or another rename that is overwriting the target that
  represents our 'from' name.
  
  The race resulted in a NULL pointer dereference.
  
  Reported-by: =?ISO-8859-2?Q?Toma=BE_Bor=B9tnar?= <tomaz.borstnar at xxxxxxxx>
  
  Revision  Changes    Path
  1.68      +11 -2     src/sys/kern/vfs_syscalls.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_syscalls.c.diff?r1=1.67&r2=1.68&f=u





More information about the Commits mailing list