aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/vfs.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2021-10-08 07:31:03 +0900
committerSteve French <stfrench@microsoft.com>2021-10-13 23:37:18 -0500
commitf7db8fd03a4bc5baf70ccf8978fe17cb54368b97 (patch)
tree1805a1880f934285f216d2b58fe7135dba51574c /fs/ksmbd/vfs.h
parentLinux 5.15-rc5 (diff)
downloadlinux-dev-f7db8fd03a4bc5baf70ccf8978fe17cb54368b97.tar.xz
linux-dev-f7db8fd03a4bc5baf70ccf8978fe17cb54368b97.zip
ksmbd: add validation in smb2_ioctl
Add validation for request/response buffer size check in smb2_ioctl and fsctl_copychunk() take copychunk_ioctl_req pointer and the other arguments instead of smb2_ioctl_req structure and remove an unused smb2_ioctl_req argument of fsctl_validate_negotiate_info. Cc: Tom Talpey <tom@talpey.com> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Ralph Böhme <slow@samba.org> Cc: Steve French <smfrench@gmail.com> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Acked-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/vfs.h')
-rw-r--r--fs/ksmbd/vfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/vfs.h b/fs/ksmbd/vfs.h
index 7b1dcaa3fbdc..b0d5b8feb4a3 100644
--- a/fs/ksmbd/vfs.h
+++ b/fs/ksmbd/vfs.h
@@ -166,7 +166,7 @@ int ksmbd_vfs_zero_data(struct ksmbd_work *work, struct ksmbd_file *fp,
struct file_allocated_range_buffer;
int ksmbd_vfs_fqar_lseek(struct ksmbd_file *fp, loff_t start, loff_t length,
struct file_allocated_range_buffer *ranges,
- int in_count, int *out_count);
+ unsigned int in_count, unsigned int *out_count);
int ksmbd_vfs_unlink(struct user_namespace *user_ns,
struct dentry *dir, struct dentry *dentry);
void *ksmbd_vfs_init_kstat(char **p, struct ksmbd_kstat *ksmbd_kstat);