★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0758.htmlNouvelle recherche | Portail wanayoo

patch for 2.1.48 autofs race

Bill Hawes (whawes@star.net)
Sun Aug 10 23:03:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

autofs48-patch
I've found a race condition in autofs that could explain some of the recent oops reports. In autofs/root.c, after doing a d_add(dentry,NULL) there's a nice long pause for revalidation. But since the dentry hasn't had its use count incremented, it may be possible for it to be released, and after the lookup returns the trashed dentry might get used.

The attached patch bumps d_count around the revalidation to protect the dentry.




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.