Gabriel Krisman Bertazi 1421615c64 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>
2020-04-23 10:30:19 +02:00
..
2013-03-11 10:08:04 +01:00
2018-08-02 08:03:23 +09:00
2015-05-31 22:05:32 +02:00
2015-12-08 22:26:00 +01:00
2018-02-19 19:38:51 +01:00
2013-03-11 10:08:03 +01:00
2016-12-14 22:46:55 +01:00
2016-12-14 22:46:55 +01:00