linux-uconsole/fs/9p
Sachin Prabhu 56d7041071 9p: Skip check for mandatory locks when unlocking
commit f78233dd44 upstream.

While investigating a bug, I came across a possible bug in v9fs. The
problem is similar to the one reported for NFS by ASANO Masahiro in
http://lkml.org/lkml/2005/12/21/334.

v9fs_file_lock() will skip locks on file which has mode set to 02666.
This is a problem in cases where the mode of the file is changed after
a process has obtained a lock on the file. Such a lock will be skipped
during unlock and the machine will end up with a BUG in
locks_remove_flock().

v9fs_file_lock() should skip the check for mandatory locks when
unlocking a file.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-04-26 07:41:29 -07:00
..
cache.c 9p: fix build breakage introduced by FS-Cache 2009-12-01 07:35:11 -08:00
cache.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
fid.c Merge branch 'next' into for-linus 2008-12-25 11:40:09 +11:00
fid.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
Kconfig 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
Makefile 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
v9fs.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
v9fs.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
v9fs_vfs.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_addr.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_dentry.c constify dentry_operations: 9p 2009-03-27 14:44:00 -04:00
vfs_dir.c 9p: fix readdir corner cases 2009-11-02 08:43:45 -06:00
vfs_file.c 9p: Skip check for mandatory locks when unlocking 2010-04-26 07:41:29 -07:00
vfs_inode.c 9p: fix readlink 2009-11-02 08:43:45 -06:00
vfs_super.c fix oops in fs/9p late mount failure 2010-02-09 04:50:46 -08:00