projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
816625c
)
virtio-blk: don't let virtio core to validate used length
author
Jason Wang
<jasowang@redhat.com>
Wed, 27 Oct 2021 02:21:06 +0000
(10:21 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 1 Nov 2021 09:26:48 +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-4-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/block/virtio_blk.c
patch
|
blob
|
history
diff --git
a/drivers/block/virtio_blk.c
b/drivers/block/virtio_blk.c
index ec6ed24d1061a74efbfec6df38e3328ca2fc2379..e1f4f63ed246fcf19ad35662843914b8f21914cc 100644
(file)
--- 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,