diff options
author | Greg Edwards <gedwards@ddn.com> | 2018-08-22 22:21:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-21 11:24:08 +0300 |
commit | 56bce0e5d5cca4377879fd983d454418f6a87263 (patch) | |
tree | 4d618afa5d0d95d04e62bd5f6ac33653fe6db883 /sound/oss | |
parent | b3d3180689f1c433354ed01aa405ffee810df5f9 (diff) | |
download | linux-56bce0e5d5cca4377879fd983d454418f6a87263.tar.xz |
vhost/scsi: truncate T10 PI iov_iter to prot_bytes
commit 4542d623c7134bc1738f8a68ccb6dd546f1c264f 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: 09b13fa8c1a1 ("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: 09b13fa8c1a1093e9458549ac8bb203a7c65c62a
Cc: stable@vger.kernel.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/oss')
0 files changed, 0 insertions, 0 deletions