summaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
authorGabriel Krisman Bertazi <krisman@collabora.com>2020-03-16 20:45:06 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 10:30:19 +0200
commit1421615c646a43b905055a41a7ca62215f4662f9 (patch)
treec5ee081a3279cf28f743980c3499fc8c22f04bb2 /fs/cifs/transport.c
parent6e2fa8b3b8d6cea619a850940b1b96fd208d44ae (diff)
downloadlinux-stable-1421615c646a43b905055a41a7ca62215f4662f9.tar.gz
linux-stable-1421615c646a43b905055a41a7ca62215f4662f9.tar.bz2
linux-stable-1421615c646a43b905055a41a7ca62215f4662f9.zip
um: ubd: Prevent buffer overrun on command completion
[ Upstream commit 6e682d53fc1ef73a169e2a5300326cb23abb32ee ] On the hypervisor side, when completing commands and the pipe is full, we retry writing only the entries that failed, by offsetting io_req_buffer, but we don't reduce the number of bytes written, which can cause a buffer overrun of io_req_buffer, and write garbage to the pipe. Cc: Martyn Welch <martyn.welch@collabora.com> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/cifs/transport.c')
0 files changed, 0 insertions, 0 deletions