projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40392e
)
virtio-scsi: don't let virtio core to validate used buffer length
author
Jason Wang
<jasowang@redhat.com>
Wed, 27 Oct 2021 02:21:07 +0000
(10:21 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 1 Nov 2021 09:26:49 +0000
(
05:26
-0400)
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>
Link:
https://lore.kernel.org/r/20211027022107.14357-5-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/scsi/virtio_scsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/virtio_scsi.c
b/drivers/scsi/virtio_scsi.c
index 07d0250f17c3a4a16a28ea5d930ac1df058bc6bf..03b09ecea42d85f493ee670183132d8a3a439ef8 100644
(file)
--- 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,