diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-05-08 10:46:11 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-05-20 04:35:08 +0300 |
commit | 1f4bbedd4e5a69b01cde2cc21d01151ab2d0884f (patch) | |
tree | e406f678526e736fa173504be8136c15ec854418 /scripts/lib/kdoc/kdoc_output.py | |
parent | a5806cd506af5a7c19bcd596e4708b5c464bfd21 (diff) | |
download | linux-1f4bbedd4e5a69b01cde2cc21d01151ab2d0884f.tar.xz |
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 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions