diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-03-07 15:56:07 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-23 00:38:33 +0300 |
commit | 342edb60dcda7a409430359b0cac2864bb9dfe44 (patch) | |
tree | 310947d85d407dea229cbf59d85edc4247cd867e /tools/perf/scripts/python/check-perf-trace.py | |
parent | 2d74ec97131b1179a373b6d521f195c84e894eb6 (diff) | |
download | linux-342edb60dcda7a409430359b0cac2864bb9dfe44.tar.xz |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions