android_kernel_motorola_sm6375/fs/cifs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Al Viro d311d79de3 fix O_SYNC|O_APPEND syncing the wrong range on write()
It actually goes back to 2004 ([PATCH] Concurrent O_SYNC write support)
when sync_page_range() had been introduced; generic_file_write{,v}() correctly
synced
	pos_after_write - written .. pos_after_write - 1
but generic_file_aio_write() synced
	pos_before_write .. pos_before_write + written - 1
instead.  Which is not the same thing with O_APPEND, obviously.
A couple of years later correct variant had been killed off when
everything switched to use of generic_file_aio_write().

All users of generic_file_aio_write() are affected, and the same bug
has been copied into other instances of ->aio_write().

The fix is trivial; the only subtle point is that generic_write_sync()
ought to be inlined to avoid calculations useless for the majority of
calls.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2014-02-09 15:18:09 -05:00
..
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
cifsacl.h
cifsencrypt.c
cifsfs.c
cifsfs.h
cifsglob.h [CIFS] Fix SMB2 mounts so they don't try to set or get xattrs via cifs 2014-01-26 23:53:43 -06:00
cifspdu.h
cifsproto.h CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
cifssmb.c CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
connect.c
dir.c CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
dns_resolve.c
dns_resolve.h
export.c
file.c fix O_SYNC|O_APPEND syncing the wrong range on write() 2014-02-09 15:18:09 -05:00
fscache.c
fscache.h
inode.c CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
ioctl.c [CIFS] Do not use btrfs refcopy ioctl for SMB2 copy offload 2013-11-25 09:50:31 -06:00
Kconfig
link.c cifs: Fix check for regular file in couldbe_mf_symlink() 2014-01-31 09:06:43 -06:00
Makefile
misc.c
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: Rename MF symlink function names 2014-01-20 00:13:54 -06:00
rfc1002pdu.h
sess.c
smb1ops.c CIFS: Cleanup cifs open codepath 2014-01-20 09:52:13 -06:00
smb2file.c
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c
smb2ops.c Check SMB3 dialects against downgrade attacks 2013-11-19 23:52:54 -06:00
smb2pdu.c Check SMB3 dialects against downgrade attacks 2013-11-19 23:52:54 -06:00
smb2pdu.h Check SMB3 dialects against downgrade attacks 2013-11-19 23:52:54 -06:00
smb2proto.h Check SMB3 dialects against downgrade attacks 2013-11-19 23:52:54 -06:00
smb2status.h
smb2transport.c
smbencrypt.c
smberr.h
smbfsctl.h Check SMB3 dialects against downgrade attacks 2013-11-19 23:52:54 -06:00
transport.c
winucase.c
xattr.c [CIFS] Fix SMB2 mounts so they don't try to set or get xattrs via cifs 2014-01-26 23:53:43 -06:00