linux/fs/9p
Sachin Prabhu f78233dd44 9p: Skip check for mandatory locks when unlocking
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>
2010-03-13 09:05:37 -06: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
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 9P2010.L handshake: Add VFS flags 2010-03-05 15:04:41 -06:00
fid.h 9p: Documentation updates 2008-05-14 19:23:25 -05:00
v9fs.c 9P2010.L handshake: Remove "dotu" variable 2010-03-05 15:04:42 -06:00
v9fs.h 9p: Change the name of new protocol from 9p2010.L to 9p2000.L 2010-03-13 08:57:29 -06:00
v9fs_vfs.h 9p: Include fsync support for 9p client 2010-02-08 15:36:48 -06: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 fs/9p: re-init the wstat in readdir loop 2010-03-13 08:57:29 -06:00
vfs_file.c 9p: Skip check for mandatory locks when unlocking 2010-03-13 09:05:37 -06:00
vfs_inode.c fs/9p: Add hardlink support to .u extension 2010-03-05 15:04:42 -06:00
vfs_super.c fix oops in fs/9p late mount failure 2010-01-26 22:22:27 -05:00