qemu-e2k/hw
Felipe Franciosi d68cdae30e virtio: skip guest index check on device load
QEMU must be careful when loading device state off migration streams to
prevent a malicious source from exploiting the emulator. Overdoing these
checks has the side effect of allowing a guest to "pin itself" in cloud
environments by messing with state which is entirely in its control.

Similarly to what f3081539 achieved in usb_device_post_load(), this
commit removes such a check from virtio_load(). Worth noting, the result
of a load without this check is the same as if a guest enables a VQ with
invalid indexes to begin with. That is, the virtual device is set in a
broken state (by the datapath handler) and must be reset.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Message-Id: <20201028134643.110698-1-felipe@nutanix.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-10-30 06:48:53 -04:00
..
9pfs
acpi
adc
alpha
arm target-arm queue: 2020-10-29 11:40:04 +00:00
audio
avr
block vhost-blk: set features before setting inflight feature 2020-10-30 06:48:53 -04:00
char hw/char/pl011: add a clock input 2020-10-27 11:10:44 +00:00
core hw/core/ptimer: Support ptimer being disabled by timer callback 2020-10-27 11:15:31 +00:00
cpu
cris
display
dma
gpio hw/gpio: Add GPIO model for Nuvoton NPCM7xx 2020-10-27 11:10:32 +00:00
hppa
hyperv
i2c
i386 pc: Implement -no-hpet as sugar for -machine hpet=on 2020-10-30 04:29:13 -04:00
ide
input
intc
ipack
ipmi
isa
lm32
m68k
mem
microblaze
mips
misc target-arm queue: 2020-10-29 11:40:04 +00:00
moxie
net
nios2
nubus
nvram
openrisc
pci pci: Disallow improper BAR registration for type 1 2020-10-30 06:48:53 -04:00
pci-bridge
pci-host
pcmcia
ppc
rdma
riscv
rtc
rx
s390x
scsi
sd
semihosting
sh4
smbios
sparc
sparc64
ssi
timer target-arm queue: 2020-10-29 11:40:04 +00:00
tpm
tricore
unicore32
usb hw/arm/npcm7xx: Add EHCI and OHCI controllers 2020-10-27 11:10:21 +00:00
vfio
virtio virtio: skip guest index check on device load 2020-10-30 06:48:53 -04:00
watchdog hw/watchdog: Implement SBSA watchdog device 2020-10-27 11:10:44 +00:00
xen
xenpv
xtensa
Kconfig
meson.build