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
..
2020-01-27 14:50:59 +01:00
2013-03-11 10:08:04 +01:00
2013-03-11 10:08:04 +01:00
2013-03-11 10:08:04 +01:00
2017-11-02 11:10:55 +01:00
2012-04-10 00:13:45 +02:00
2017-11-02 11:10:55 +01:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2016-12-24 11:46:01 -08:00
2015-06-25 22:42:19 +02:00
2017-11-27 16:19:59 -05:00
2018-08-02 08:03:23 +09:00
2019-12-01 09:17:04 +01:00
2012-10-09 22:28:45 +02:00
2018-07-19 08:40:27 +09:00
2018-02-09 19:28:01 -08:00
2012-10-09 22:28:45 +02:00
2015-05-31 22:05:32 +02:00
2016-12-24 11:46:01 -08:00
2018-02-19 19:38:51 +01:00
2015-12-08 22:26:00 +01:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2019-05-16 19:41:28 +02:00
2012-10-09 22:28:45 +02:00
2018-02-19 19:38:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2012-10-09 22:28:45 +02:00
2015-06-25 22:42:19 +02:00
2017-11-02 11:10:55 +01:00
2012-10-09 22:28:45 +02:00
2015-06-25 22:42:19 +02:00
2017-11-02 11:10:55 +01:00
2013-03-11 10:08:03 +01:00
2017-11-02 11:10:55 +01:00
2017-07-05 23:18:48 +02:00
2012-10-09 22:28:45 +02:00
2020-04-23 10:30:19 +02:00
2016-12-14 22:46:55 +01:00
2016-12-14 22:46:55 +01:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00
2018-06-16 06:50:51 +09:00
2018-03-29 22:18:02 +02:00
2018-06-07 16:15:38 -04:00
2019-12-05 09:20:52 +01:00
2018-03-29 22:18:02 +02:00
2012-10-09 22:28:45 +02:00
2012-10-09 22:28:45 +02:00