summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2021-10-27 05:21:06 +0300
committerMichael S. Tsirkin <mst@redhat.com>2021-11-01 12:26:48 +0300
commita40392edf1b2c7822bc0ce68413106661a9d4232 (patch)
treeba59d7eb0a700b312664868de5fe499a40172d71 /drivers/block
parent816625c13652cef5b2c49082d652875da6f2ad7a (diff)
downloadlinux-a40392edf1b2c7822bc0ce68413106661a9d4232.tar.xz
virtio-blk: don't let virtio core to validate used length
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-4-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index ec6ed24d1061..e1f4f63ed246 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -1041,6 +1041,7 @@ static struct virtio_driver virtio_blk = {
.feature_table_size = ARRAY_SIZE(features),
.feature_table_legacy = features_legacy,
.feature_table_size_legacy = ARRAY_SIZE(features_legacy),
+ .suppress_used_validation = true,
.driver.name = KBUILD_MODNAME,
.driver.owner = THIS_MODULE,
.id_table = id_table,