linux-brain/drivers/vhost
Greg Edwards d2926beb35 vhost/scsi: truncate T10 PI iov_iter to prot_bytes
commit 4542d623c7 upstream.

Commands with protection information included were not truncating the
protection iov_iter to the number of protection bytes in the command.
This resulted in vhost_scsi mis-calculating the size of the protection
SGL in vhost_scsi_calc_sgls(), and including both the protection and
data SG entries in the protection SGL.

Fixes: 09b13fa8c1 ("vhost/scsi: Add ANY_LAYOUT support in vhost_scsi_handle_vq")
Signed-off-by: Greg Edwards <gedwards@ddn.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: 09b13fa8c1
Cc: stable@vger.kernel.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-21 09:27:42 +01: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 vhost/scsi: truncate T10 PI iov_iter to prot_bytes 2018-11-21 09:27:42 +01: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