summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2025-05-08 16:46:11 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-05-29 11:03:24 +0200
commit5c54a557bde18c0ee0e6adb135230b81b7e2c883 (patch)
tree006f6e5963266f30c2012adb6a6f2b6a78af08c9 /include/net/aligned_data.h
parent544ff7fb1972778acbe0a11a0548305c7384f854 (diff)
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 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions