]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: don't let virtio core to validate used length
authorJason Wang <jasowang@redhat.com>
Wed, 27 Oct 2021 02:21:05 +0000 (10:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:48 +0000 (05:26 -0400)
commitf049060f46a02adcd7545f6b53bab8acb00320e5
tree3da598330426e44ebbb56b81de400050f148303a
parentf575a3e0ac9510b4ff84382a04c6bf15ccd12501
virtio-net: don't let virtio core to validate used length

For RX virtuqueue, the used length is validated in all the three paths
(big, small and mergeable). For control vq, we never tries to use used
length. So this patch forbids the core to validate the used length.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20211027022107.14357-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c