DragonFly commits List (threaded) for 2005-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern vfs_syscalls.c
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@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]