WSL2-Linux-Kernel/fs/ceph
Dan Carpenter 6ad7f52d8c ceph: fix type promotion bug on 32bit systems
commit 07bb00ef00 upstream.

In this code "ret" is type long and "src_objlen" is unsigned int.  The
problem is that on 32bit systems, when we do the comparison signed longs
are type promoted to unsigned int.  So negative error codes from
do_splice_direct() are treated as success instead of failure.

Cc: stable@vger.kernel.org
Fixes: 1b0c3b9f91 ("ceph: re-org copy_file_range and fix some error paths")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-19 23:05:36 +02:00
..
Kconfig
Makefile
acl.c
addr.c
cache.c
cache.h
caps.c ceph: don't let check_caps skip sending responses for revoke msgs 2023-07-23 13:47:53 +02:00
ceph_frag.c
debugfs.c
dir.c
export.c
file.c ceph: fix type promotion bug on 32bit systems 2023-10-19 23:05:36 +02:00
inode.c ceph: fix incorrect revoked caps assert in ceph_fill_file_size() 2023-10-19 23:05:36 +02:00
io.c
io.h
ioctl.c
ioctl.h
locks.c ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 11:59:14 +01:00
mds_client.c ceph: defer stopping mdsc delayed_work 2023-08-11 15:13:56 +02:00
mds_client.h ceph: defer stopping mdsc delayed_work 2023-08-11 15:13:56 +02:00
mdsmap.c
metric.c ceph: never send metrics if disable_send_metrics is set 2023-08-03 10:22:46 +02:00
metric.h
quota.c
snap.c ceph: fix use-after-free bug for inodes when flushing capsnaps 2023-06-14 11:13:06 +02:00
strings.c
super.c ceph: defer stopping mdsc delayed_work 2023-08-11 15:13:56 +02:00
super.h ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 11:59:14 +01:00
util.c
xattr.c