OSDN Git Service

Revert "virtio-scsi: don't let virtio core to validate used buffer length"
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:44:02 +0000 (18:44 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:46:16 +0000 (18:46 -0500)
This reverts commit c57911ebfbfe745cb95da2bcf547c5bae000590f.

Attempts to validate length in the core did not work out.  We'll drop
them for now, so revert the dependent changes in drivers.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/scsi/virtio_scsi.c

index 19f7d7b..28e1d98 100644 (file)
@@ -977,7 +977,6 @@ static unsigned int features[] = {
 static struct virtio_driver virtio_scsi_driver = {
        .feature_table = features,
        .feature_table_size = ARRAY_SIZE(features),
-       .suppress_used_validation = true,
        .driver.name = KBUILD_MODNAME,
        .driver.owner = THIS_MODULE,
        .id_table = id_table,