diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-05-08 10:46:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-29 12:14:07 +0300 |
commit | ff7fdc2e282534aac04650b8cca5dcdf7682c67f (patch) | |
tree | 6b04a1e57d043e17ad447c2aa51a75903516b8aa /scripts/gdb/linux/xarray.py | |
parent | 7f45afddb07420de58b2c676fd968c0bead632b9 (diff) | |
download | linux-ff7fdc2e282534aac04650b8cca5dcdf7682c67f.tar.xz |
ksmbd: fix stream write failure
[ Upstream commit 1f4bbedd4e5a69b01cde2cc21d01151ab2d0884f ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions