lkml.org 
[lkml]   [2021]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V3 10/10] virtio-scsi: don't let virtio core to validate used buffer length
    Date
    We never tries to use used length, so the patch prevents the virtio
    core from validating used length.

    Signed-off-by: Jason Wang <jasowang@redhat.com>
    ---
    drivers/scsi/virtio_scsi.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
    index c25ce8f0e0af..be7870a092cf 100644
    --- a/drivers/scsi/virtio_scsi.c
    +++ b/drivers/scsi/virtio_scsi.c
    @@ -977,6 +977,7 @@ 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,
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-10-19 09:05    [W:3.476 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site