diff options
author | 2023-03-05 21:04:00 +0900 | |
---|---|---|
committer | 2023-03-22 16:38:33 -0500 | |
commit | 2d74ec97131b1179a373b6d521f195c84e894eb6 (patch) | |
tree | 4d4ba6776a7fdbb08265051fc48206be30fee7c6 /scripts/generate_rust_analyzer.py | |
parent | ksmbd: set FILE_NAMED_STREAMS attribute in FS_ATTRIBUTE_INFORMATION (diff) | |
download | linux-rng-2d74ec97131b1179a373b6d521f195c84e894eb6.tar.xz linux-rng-2d74ec97131b1179a373b6d521f195c84e894eb6.zip |
ksmbd: add low bound validation to FSCTL_SET_ZERO_DATA
Smatch static checker warning:
fs/ksmbd/smb2pdu.c:7759 smb2_ioctl()
warn: no lower bound on 'off'
Fix unexpected result that could caused from negative off and bfz.
Fixes: b5e5f9dfc915 ("ksmbd: check invalid FileOffset and BeyondFinalZero in FSCTL_ZERO_DATA")
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions