kernel_optimize_test/fs/afs
David Howells 146a119278 afs: Fix the maths in afs_fs_store_data()
afs_fs_store_data() works out of the size of the write it's going to make,
but it uses 32-bit unsigned subtraction in one place that gets
automatically cast to loff_t.

However, if to < offset, then the number goes negative, but as the result
isn't signed, this doesn't get sign-extended to 64-bits when placed in a
loff_t.

Fix by casting the operands to loff_t.

Signed-off-by: David Howells <dhowells@redhat.com>
2017-03-16 16:27:47 +00:00
..
afs_cm.h
afs_fs.h
afs_vl.h
afs.h
cache.c
callback.c afs: Migrate vlocation fields to 64-bit 2017-03-16 16:27:46 +00:00
cell.c
cmservice.c afs: Deal with an empty callback array 2017-03-16 16:27:44 +00:00
dir.c lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
file.c afs: Flush outstanding writes when an fd is closed 2017-03-16 16:27:45 +00:00
flock.c fs/afs/flock: Remove deprecated create_singlethread_workqueue 2016-09-04 21:41:39 +01:00
fsclient.c afs: Fix the maths in afs_fs_store_data() 2017-03-16 16:27:47 +00:00
inode.c afs: Prevent callback expiry timer overflow 2017-03-16 16:27:46 +00:00
internal.h afs: Make struct afs_read::remain 64-bit 2017-03-16 16:27:46 +00:00
Kconfig
main.c afs: Use core kernel UUID generation 2017-02-10 16:34:17 +00:00
Makefile
misc.c
mntpt.c afs: Distinguish mountpoints from symlinks by file mode alone 2017-03-16 16:27:45 +00:00
netdevices.c afs: Use core kernel UUID generation 2017-02-10 16:34:17 +00:00
proc.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
rxrpc.c afs: Use a bvec rather than a kvec in afs_send_pages() 2017-03-16 16:27:46 +00:00
security.c afs: security: Replace rcu_assign_pointer() with RCU_INIT_POINTER() 2017-03-16 16:27:45 +00:00
server.c afs: Migrate vlocation fields to 64-bit 2017-03-16 16:27:46 +00:00
super.c
vlclient.c afs: Kill afs_wait_mode 2017-01-09 11:10:02 +00:00
vlocation.c afs: Migrate vlocation fields to 64-bit 2017-03-16 16:27:46 +00:00
vnode.c afs: Kill afs_wait_mode 2017-01-09 11:10:02 +00:00
volume.c afs: Make afs_readpages() fetch data in bulk 2017-01-06 16:54:41 +00:00
write.c afs: Flush outstanding writes when an fd is closed 2017-03-16 16:27:45 +00:00