linux/fs/cifs
Al Viro 378ff1a53b fix deadlock in cifs_ioctl_clone()
It really needs to check that src is non-directory *and* use
{un,}lock_two_nodirectories().  As it is, it's trivial to cause
double-lock (ioctl(fd, CIFS_IOC_COPYCHUNK_FILE, fd)) and if the
last argument is an fd of directory, we are asking for trouble
by violating the locking order - all directories go before all
non-directories.  If the last argument is an fd of parent
directory, it has 50% odds of locking child before parent,
which will cause AB-BA deadlock if we race with unlink().

Cc: stable@vger.kernel.org @ 3.13+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2015-01-18 23:49:26 -05:00
..
Kconfig
Makefile
asn1.c
cache.c
cifs_debug.c cifs: convert printk(LEVEL...) to pr_<level> 2014-12-07 22:48:07 -06:00
cifs_debug.h cifs: convert printk(LEVEL...) to pr_<level> 2014-12-07 22:48:07 -06:00
cifs_dfs_ref.c
cifs_fs_sb.h Allow conversion of characters in Mac remap range. Part 1 2014-10-16 15:20:20 -05:00
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c Remap reserved posix characters by default (part 3/3) 2014-10-16 15:20:20 -05:00
cifs_unicode.h Remap reserved posix characters by default (part 3/3) 2014-10-16 15:20:20 -05:00
cifs_uniupr.h
cifsacl.c fs/cifs: remove obsolete __constant 2014-12-10 17:41:02 -08:00
cifsacl.h
cifsencrypt.c Allow conversion of characters in Mac remap range. Part 1 2014-10-16 15:20:20 -05:00
cifsfs.c cifs: get rid of ->f_path.dentry->d_sb uses, add a new helper 2014-11-19 13:01:22 -05:00
cifsfs.h Update modinfo cifs version for cifs.ko 2014-12-07 22:17:19 -06:00
cifsglob.h Convert MessageID in smb2_hdr to LE 2014-12-14 14:55:45 -06:00
cifspdu.h
cifsproto.h
cifssmb.c fs/cifs: remove obsolete __constant 2014-12-10 17:41:02 -08:00
connect.c cifs: convert printk(LEVEL...) to pr_<level> 2014-12-07 22:48:07 -06:00
dir.c Allow mknod and mkfifo on SMB2/SMB3 mounts 2014-10-16 15:20:19 -05:00
dns_resolve.c
dns_resolve.h
export.c
file.c Merge branch 'akpm' (patchbomb from Andrew) 2014-12-10 18:34:42 -08:00
fscache.c
fscache.h
inode.c move d_rcu from overlapping d_child to overlapping d_alias 2014-11-03 15:20:29 -05:00
ioctl.c fix deadlock in cifs_ioctl_clone() 2015-01-18 23:49:26 -05:00
link.c [CIFS] Remove obsolete comment 2014-10-17 17:17:12 -05:00
misc.c cifs: convert to print_hex_dump() instead of custom implementation 2014-12-07 22:48:01 -06:00
netmisc.c Fix signed/unsigned pointer warning 2014-12-14 14:55:57 -06:00
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: make new inode cache when file type is different 2014-12-22 14:16:21 -06:00
rfc1002pdu.h
sess.c Merge branch 'akpm' (patchbomb from Andrew) 2014-12-10 18:34:42 -08:00
smb1ops.c Remap reserved posix characters by default (part 3/3) 2014-10-16 15:20:20 -05:00
smb2file.c fs/cifs/smb2file.c: replace count*size kzalloc by kcalloc 2014-12-10 17:41:02 -08:00
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c Convert MessageID in smb2_hdr to LE 2014-12-14 14:55:45 -06:00
smb2ops.c Convert MessageID in smb2_hdr to LE 2014-12-14 14:55:45 -06:00
smb2pdu.c Merge branch 'akpm' (patchbomb from Andrew) 2014-12-10 18:34:42 -08:00
smb2pdu.h Convert MessageID in smb2_hdr to LE 2014-12-14 14:55:45 -06:00
smb2proto.h mfsymlinks support for SMB2.1/SMB3. Part 2 query symlink 2014-10-16 15:20:20 -05:00
smb2status.h
smb2transport.c Convert MessageID in smb2_hdr to LE 2014-12-14 14:55:45 -06:00
smbencrypt.c Remap reserved posix characters by default (part 3/3) 2014-10-16 15:20:20 -05:00
smberr.h
smbfsctl.h
transport.c cifs: convert printk(LEVEL...) to pr_<level> 2014-12-07 22:48:07 -06:00
winucase.c
xattr.c Remap reserved posix characters by default (part 3/3) 2014-10-16 15:20:20 -05:00