android_kernel_oneplus_msm8998/drivers/vhost
Benjamin Coddington 9cb2e06aa5 vhost/scsi: fix reuse of &vq->iov[out] in response
commit a77ec83a57890240c546df00ca5df1cdeedb1cc3 upstream.

The address of the iovec &vq->iov[out] is not guaranteed to contain the scsi
command's response iovec throughout the lifetime of the command.  Rather, it
is more likely to contain an iovec from an immediately following command
after looping back around to vhost_get_vq_desc().  Pass along the iovec
entirely instead.

Fixes: 79c14141a4 ("vhost/scsi: Convert completion path to use copy_to_iter")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-15 08:27:53 +02: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: move features to core 2015-09-16 12:48:07 +03:00
scsi.c vhost/scsi: fix reuse of &vq->iov[out] in response 2016-09-15 08:27:53 +02: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: replace % with & on data path 2015-12-07 17:28:10 +02: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