Commit 2d74ec9
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: b5e5f9d ("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>1 parent 728f14c commit 2d74ec9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7755 | 7755 | | |
7756 | 7756 | | |
7757 | 7757 | | |
7758 | | - | |
| 7758 | + | |
7759 | 7759 | | |
7760 | 7760 | | |
7761 | 7761 | | |
| |||
0 commit comments