All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS possible race condition, nfs_unlink vs. d_lookup
@ 2006-03-03 15:57 Steven Timm
  2006-03-03 20:47 ` Trond Myklebust
  2006-03-07 12:36 ` Steve Dickson
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Timm @ 2006-03-03 15:57 UTC (permalink / raw)
  To: nfs


I found the description of an old patch against what
was then the 2.5.72 kernel.

http://kernel.tuke.sk/pub/linux/kernel/people/akpm/patches/2.5/2.5.72/2.5.72-mm3/broken-out/nfs_unlink-d_count-fix.patch

The description was the following, on that web site.

- nfs_unlink() can race with lockless d_lookup() as d_lookup() can
   successfully lookup a dentry for which nfs_unlink() can assume that no 
one
   else is using and can go ahead and do nfs_safe_remove() on it. By using
   per dentry lock, it is solved as we d_lookup() will fail the lookup for
   unhashed dentries.


My question.. is the 2.4.21-37 kernel as distributed by Red Hat also
vulnerable to this race condition? If so, is there any
patch that is available?  The code in dir.c in the 2.4 series
kernel is different enough such that this patch won't apply to it.

Thanks

Steve Timm







-- 
------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525  timm@fnal.gov  http://home.fnal.gov/~timm/
Fermilab Computing Div/Core Support Services Dept./Scientific Computing Section
Assistant Group Leader, Farms and Clustered Systems Group
Lead of Computing Farms Team


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-07 12:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03 15:57 NFS possible race condition, nfs_unlink vs. d_lookup Steven Timm
2006-03-03 20:47 ` Trond Myklebust
2006-03-03 21:15   ` Steven Timm
2006-03-03 21:22     ` Trond Myklebust
2006-03-07 12:36 ` Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.