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 um: defconfig: Cleanup from old Kconfig options 2017-09-13 22:32:51 +02:00
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 um: Give start_idle_thread() a return code 2018-11-27 16:12:59 +01:00
scripts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
.gitignore
Kconfig kconfig: include kernel/Kconfig.preempt from init/Kconfig 2018-08-02 08:06:54 +09:00
Kconfig.debug um: Make GCOV depend on !KCOV 2019-12-05 09:20:52 +01:00
Makefile kbuild: rename LDFLAGS to KBUILD_LDFLAGS 2018-08-24 08:22:08 +09:00
Makefile-os-Linux
Makefile-skas