linux/arch/um/drivers
Gabriel Krisman Bertazi 1421615c64 um: ubd: Prevent buffer overrun on command completion
[ Upstream commit 6e682d53fc ]

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
..
chan_kern.c um: Fix IRQ controller regression on console read 2020-01-27 14:50:59 +01:00
chan_user.c
chan_user.h
chan.h
cow_sys.h
cow_user.c
cow.h
daemon_kern.c
daemon_user.c
daemon.h
fd.c
harddog_kern.c
harddog_user.c
hostaudio_kern.c
Kconfig um: create a proper drivers Kconfig 2018-08-02 08:03:23 +09:00
line.c um: Make line/tty semantics use true write IRQ 2019-12-01 09:17:04 +01:00
line.h
Makefile kbuild: change ld_flags to contain LDFLAGS_$(@F) 2018-07-19 08:40:27 +09:00
mconsole_kern.c
mconsole_kern.h
mconsole_user.c
mconsole.h
mmapper_kern.c
net_kern.c
net_user.c
null.c
pcap_kern.c
pcap_user.c
pcap_user.h
port_kern.c
port_user.c um: Don't hardcode path as it is architecture dependent 2019-05-16 19:41:28 +02:00
port.h
pty.c
random.c
slip_common.c
slip_common.h
slip_kern.c
slip_user.c
slip.h
slirp_kern.c
slirp_user.c
slirp.h
ssl.c
ssl.h
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd_kern.c um: ubd: Prevent buffer overrun on command completion 2020-04-23 10:30:19 +02:00
ubd_user.c
ubd.h
umcast_kern.c
umcast_user.c
umcast.h
vde_kern.c
vde_user.c
vde.h
vector_kern.c Merge branch 'for-linus-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml 2018-06-16 06:50:51 +09:00
vector_kern.h
vector_transports.c
vector_user.c um: Include sys/uio.h to have writev() 2019-12-05 09:20:52 +01:00
vector_user.h
xterm_kern.c
xterm.c
xterm.h