Revert "virtio_ring: validate used buffer length"
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:44:17 +0000 (18:44 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Nov 2021 23:47:27 +0000 (18:47 -0500)
commitf124034faa911ed534bf8c4881ad98dbbde2a966
treecc0a023f2be14b3a30c748cef70318f0531c4dc0
parentfcfb65f8a922c7dd25a2e9913601dae979ce6560
Revert "virtio_ring: validate used buffer length"

This reverts commit 939779f5152d161b34f612af29e7dc1ac4472fcf.

Attempts to validate length in the core did not work out: there turn out
to exist multiple broken devices, and in particular legacy devices are
known to be broken in this respect.

We have ideas for handling this better in the next version but for now
let's revert to a known good state to make sure drivers work for people.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c
include/linux/virtio.h