diff options
author | 2023-03-07 21:56:07 +0900 | |
---|---|---|
committer | 2023-03-22 16:38:33 -0500 | |
commit | 342edb60dcda7a409430359b0cac2864bb9dfe44 (patch) | |
tree | 310947d85d407dea229cbf59d85edc4247cd867e /scripts/generate_rust_analyzer.py | |
parent | ksmbd: add low bound validation to FSCTL_SET_ZERO_DATA (diff) | |
download | linux-rng-342edb60dcda7a409430359b0cac2864bb9dfe44.tar.xz linux-rng-342edb60dcda7a409430359b0cac2864bb9dfe44.zip |
ksmbd: add low bound validation to FSCTL_QUERY_ALLOCATED_RANGES
Smatch static checker warning:
fs/ksmbd/vfs.c:1040 ksmbd_vfs_fqar_lseek() warn: no lower bound on 'length'
fs/ksmbd/vfs.c:1041 ksmbd_vfs_fqar_lseek() warn: no lower bound on 'start'
Fix unexpected result that could caused from negative start and length.
Fixes: f44158485826 ("cifsd: add file operations")
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