| ★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0758.html | Nouvelle recherche | Portail wanayoo |
|
Bill Hawes (whawes@star.net) Sun Aug 10 23:03:00 1997 |
[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links] |
|
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.