linux/drivers/vhost
Jason Wang 628a149b00 vhost: Fix Spectre V1 vulnerability
[ Upstream commit ff002269a4 ]

The idx in vhost_vring_ioctl() was controlled by userspace, hence a
potential exploitation of the Spectre variant 1 vulnerability.

Fixing this by sanitizing idx before using it to index d->vqs.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-10 07:41:42 -08:00
..
Kconfig vhost: cross-endian support for legacy devices 2015-06-01 15:48:55 +02:00
Makefile vhost: Make vhost a separate module 2013-07-07 17:33:44 +03:00
net.c vhost_net: validate sock before trying to put its fd 2018-07-22 14:25:53 +02:00
scsi.c fix a page leak in vhost_scsi_iov_to_sgl() error recovery 2017-11-30 08:37:22 +00:00
test.c vhost: move features to core 2015-09-16 12:48:07 +03:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c vhost: Fix Spectre V1 vulnerability 2018-11-10 07:41:42 -08:00
vhost.h vhost: fix performance on LE hosts 2015-10-27 20:17:03 -07:00
vringh.c vringh: update for virtio 1.0 APIs 2014-12-15 23:49:28 +02:00