]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c42ab9bc63375eddc7daf28f7354da13d2c4953
treecc0a023f2be14b3a30c748cef70318f0531c4dc0
parenta4cca38c569ebb8587fdeabfb200d429e5ce690d
Revert "virtio_ring: validate used buffer length"

This reverts commit e4506783420ae833cff145e5cd7eb5489d9d020b.

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