kernel-fxtec-pro1x/arch/um
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
..
configs
drivers um: ubd: Prevent buffer overrun on command completion 2020-04-23 10:30:19 +02:00
include um: Fix off by one error in IRQ enumeration 2020-01-27 14:51:13 +01:00
kernel um: Fix IRQ controller regression on console read 2020-01-27 14:50:59 +01:00
os-Linux
scripts
.gitignore
Kconfig
Kconfig.debug um: Make GCOV depend on !KCOV 2019-12-05 09:20:52 +01:00
Makefile
Makefile-os-Linux
Makefile-skas