The patch titled fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path fix has been added to the -mm tree. Its filename is fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path-fix.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path fix From: Sergey Vlasov <vsu@xxxxxxxxxxx> Fix do_path_lookup() failure path after locking changes Signed-off-by: Sergey Vlasov <vsu@xxxxxxxxxxx> Acked-by: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/namei.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff -puN fs/namei.c~fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path-fix fs/namei.c --- devel/fs/namei.c~fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path-fix 2006-06-03 16:32:50.000000000 -0700 +++ devel-akpm/fs/namei.c 2006-06-03 16:32:50.000000000 -0700 @@ -1104,17 +1104,17 @@ static int fastcall do_path_lookup(int d file = fget_light(dfd, &fput_needed); retval = -EBADF; if (!file) - goto unlock_fail; + goto out_fail; dentry = file->f_dentry; retval = -ENOTDIR; if (!S_ISDIR(dentry->d_inode->i_mode)) - goto fput_unlock_fail; + goto fput_fail; retval = file_permission(file, MAY_EXEC); if (retval) - goto fput_unlock_fail; + goto fput_fail; nd->mnt = mntget(file->f_vfsmnt); nd->dentry = dget(dentry); @@ -1129,13 +1129,12 @@ out: nd->dentry->d_inode)) audit_inode(name, nd->dentry->d_inode, flags); } +out_fail: return retval; -fput_unlock_fail: +fput_fail: fput_light(file, fput_needed); -unlock_fail: - read_unlock(¤t->fs->lock); - return retval; + goto out_fail; } int fastcall path_lookup(const char *name, unsigned int flags, _ Patches currently in -mm which might be from vsu@xxxxxxxxxxx are fs-nameic-call-to-file_permission-under-a-spinlock-in-do_lookup_path-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html