linux-stable/fs/cifs
Pawel Witek 8c2cdb7326 cifs: fix pcchunk length type in smb2_copychunk_range
commit d66cde50c3 upstream.

Change type of pcchunk->Length from u32 to u64 to match
smb2_copychunk_range arguments type. Fixes the problem where performing
server-side copy with CIFS_IOC_COPYCHUNK_FILE ioctl resulted in incomplete
copy of large files while returning -EINVAL.

Fixes: 9bf0c9cd43 ("CIFS: Fix SMB2/SMB3 Copy offload support (refcopy) for large files")
Cc: <stable@vger.kernel.org>
Signed-off-by: Pawel Witek <pawel.ireneusz.witek@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-17 11:48:14 +02:00
..
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c cifs: prevent NULL deref in cifs_compose_mount_options() 2021-07-25 14:36:17 +02:00
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c CIFS: Fix a potencially linear read overflow 2021-09-15 09:50:43 +02:00
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c cifs: fix missing display of three mount options 2023-01-14 10:16:34 +01:00
cifsfs.h cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL 2023-04-05 11:23:49 +02:00
cifsglob.h cifs: fix oops during encryption 2023-01-14 10:16:25 +01:00
cifspdu.h cifs: Adjust key sizes and key generation routines for AES256 encryption 2021-03-30 14:32:07 +02:00
cifsproto.h cifs: fix oops during encryption 2023-01-14 10:16:25 +01:00
cifsroot.c
cifssmb.c cifs: prevent infinite recursion in CIFSGetDFSRefer() 2023-04-05 11:23:49 +02:00
connect.c cifs: fix confusing debug message 2023-01-14 10:16:34 +01:00
dfs_cache.c
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Fix use-after-free in rdata->read_into_pages() 2023-02-15 17:22:26 +01:00
fs_context.c
fs_context.h
fscache.c
fscache.h
inode.c new helper: inode_wrong_type() 2021-09-08 08:49:01 +02:00
ioctl.c cifs: Fix wrong return value checking when GETFLAGS 2022-11-25 17:45:48 +01:00
Kconfig
link.c cifs: Fix uninitialized memory read for smb311 posix symlink create 2023-01-18 11:44:54 +01:00
Makefile
misc.c cifs: fix oops during encryption 2023-01-14 10:16:25 +01:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c cifs: Fix xid leak in cifs_ses_add_channel() 2022-10-30 09:41:17 +01:00
smb1ops.c
smb2file.c cifs: remove useless parameter 'is_fsctl' from SMB2_ioctl() 2022-09-15 11:32:04 +02:00
smb2glob.h cifs: Adjust key sizes and key generation routines for AES256 encryption 2021-03-30 14:32:07 +02:00
smb2inode.c cifs: Fix smb2_set_path_size() 2023-03-22 13:30:03 +01:00
smb2maperror.c
smb2misc.c cifs: Silently ignore unknown oplock break handle 2021-04-10 13:36:10 +02:00
smb2ops.c cifs: fix pcchunk length type in smb2_copychunk_range 2023-05-17 11:48:14 +02:00
smb2pdu.c cifs: do not include page data when checking signature 2023-01-24 07:19:59 +01:00
smb2pdu.h
smb2proto.h cifs: remove useless parameter 'is_fsctl' from SMB2_ioctl() 2022-09-15 11:32:04 +02:00
smb2status.h
smb2transport.c cifs: Adjust key sizes and key generation routines for AES256 encryption 2021-03-30 14:32:07 +02:00
smbdirect.c cifs: Fix warning and UAF when destroy the MR list 2023-03-11 16:39:39 +01:00
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c cifs: Move the in_send statistic to __smb_send_rqst() 2023-03-22 13:29:55 +01:00
winucase.c
xattr.c