summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2025-05-08 10:46:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-29 12:14:07 +0300
commitff7fdc2e282534aac04650b8cca5dcdf7682c67f (patch)
tree6b04a1e57d043e17ad447c2aa51a75903516b8aa /scripts/gdb/linux/xarray.py
parent7f45afddb07420de58b2c676fd968c0bead632b9 (diff)
downloadlinux-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