]> 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)
commitf2a68e4e93d312b79a8e461a63d32a93942a127c
treecc0a023f2be14b3a30c748cef70318f0531c4dc0
parent0fac63174376d78044d97966976aab8c214e93cf
Revert "virtio_ring: validate used buffer length"

This reverts commit f575a3e0ac9510b4ff84382a04c6bf15ccd12501.

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