WSL2-Linux-Kernel/drivers/char
Xie Yongji d00d8da586 virtio_console: Assure used length from device is limited
The buf->len might come from an untrusted device. This
ensures the value would not exceed the size of the buffer
to avoid data corruption or loss.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210525125622.1203-1-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-07-03 04:50:53 -04:00
..
agp parisc: parisc-agp requires SBA IOMMU driver 2021-04-06 11:46:39 +02:00
hw_random hwrng: ks-sa - Use pm_runtime_resume_and_get() to replace open coding 2021-06-03 20:24:04 +08:00
ipmi ipmi: kcs_bmc_aspeed: Fix less than zero comparison of a unsigned int 2021-06-21 19:50:36 -05:00
mwave char/mwave: turn tp3780I_Cleanup() into void function 2021-03-24 08:26:30 +01:00
pcmcia pcmcia: synclink_cs: drop redundant tty-port initialisation 2021-04-07 17:22:07 +02:00
tpm tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status() 2021-06-23 16:51:04 +03:00
xilinx_hwicap
xillybus
Kconfig drivers/char: remove /dev/kmem for good 2021-05-07 00:26:34 -07:00
Makefile
adi.c
apm-emulation.c
applicom.c Merge 5.12-rc6 into char-misc-next 2021-04-05 08:43:50 +02:00
applicom.h
bsr.c
ds1620.c
dsp56k.c
dtlk.c
hangcheck-timer.c
hpet.c char: hpet: add checks after calling ioremap 2021-05-13 17:33:36 +02:00
lp.c char: lp: remove redundant space around (inside) parenthesized expressions 2021-03-24 08:26:32 +01:00
mem.c drivers/char: remove /dev/kmem for good 2021-05-07 00:26:34 -07:00
misc.c
mspec.c
nsc_gpio.c
nvram.c
nwbutton.c
nwbutton.h
nwflash.c
pc8736x_gpio.c
powernv-op-panel.c
ppdev.c
ps3flash.c
random.c random: remove dead code left over from blocking pool 2021-04-02 18:28:12 +11:00
raw.c
scx200_gpio.c
sonypi.c
tb0219.c
tlclk.c
toshiba.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
ttyprintk.c ttyprintk: Add TTY hangup callback. 2021-04-22 12:01:26 +02:00
uv_mmtimer.c
virtio_console.c virtio_console: Assure used length from device is limited 2021-07-03 04:50:53 -04:00