diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-05-08 16:46:11 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-05-19 20:35:08 -0500 |
commit | 1f4bbedd4e5a69b01cde2cc21d01151ab2d0884f (patch) | |
tree | e406f678526e736fa173504be8136c15ec854418 /include/linux/overflow.h | |
parent | a5806cd506af5a7c19bcd596e4708b5c464bfd21 (diff) |
ksmbd: fix stream write failure
If there is no stream data in file, v_len is zero.
So, If position(*pos) is zero, stream write will fail
due to stream write position validation check.
This patch reorganize stream write position validation.
Fixes: 0ca6df4f40cf ("ksmbd: prevent out-of-bounds stream writes by validating *pos")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions