diff options
author | 2022-06-19 22:37:17 +0900 | |
---|---|---|
committer | 2022-06-23 23:30:46 -0500 | |
commit | b5e5f9dfc915ff05b41dff56181e1dae101712bd (patch) | |
tree | 7a1b19100bd56cf0b2d562747d8ea2f4a290b79d /net/unix/sysctl_net_unix.c | |
parent | ksmbd: set the range of bytes to zero without extending file size in FSCTL_ZERO_DATA (diff) | |
download | wireguard-linux-b5e5f9dfc915ff05b41dff56181e1dae101712bd.tar.xz wireguard-linux-b5e5f9dfc915ff05b41dff56181e1dae101712bd.zip |
ksmbd: check invalid FileOffset and BeyondFinalZero in FSCTL_ZERO_DATA
FileOffset should not be greater than BeyondFinalZero in FSCTL_ZERO_DATA.
And don't call ksmbd_vfs_zero_data() if length is zero.
Cc: stable@vger.kernel.org
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions