]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix pcchunk length type in smb2_copychunk_range
authorPawel Witek <pawel.ireneusz.witek@gmail.com>
Fri, 5 May 2023 15:14:59 +0000 (17:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:36:00 +0000 (11:36 +0200)
commit9c3535a55b059b525b81d9bcca3afaaf2a1d50d6
tree248caabf4423ba6325db1e204226d4c7343aed91
parent211b7c014a652f98e40a8b4510ef669933566744
cifs: fix pcchunk length type in smb2_copychunk_range

commit d66cde50c3c868af7abddafce701bb86e4a93039 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: 79abd0e36f08 ("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>
fs/cifs/smb2ops.c