]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: disable notification hardening by default
authorJason Wang <jasowang@redhat.com>
Wed, 22 Jun 2022 01:29:40 +0000 (09:29 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Jun 2022 06:49:48 +0000 (02:49 -0400)
commitcd3e5ea0b14e9ccbf38b9ac927becb356dba58cf
tree4e3a09595a5ec554cf002679c587049c627fba49
parentbd453acbd69d3a6767c198c60fa64b870d982031
virtio: disable notification hardening by default

We try to harden virtio device notifications in 1f7e58d9bbc5 ("virtio:
harden vring IRQ"). It works with the assumption that the driver or
core can properly call virtio_device_ready() at the right
place. Unfortunately, this seems to be not true and uncover various
bugs of the existing drivers, mainly the issue of using
virtio_device_ready() incorrectly.

So let's add a Kconfig option and disable it by default. It gives
us time to fix the drivers and then we can consider re-enabling it.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220622012940.21441-1-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/virtio/virtio_ccw.c
drivers/virtio/Kconfig
drivers/virtio/virtio.c
drivers/virtio/virtio_ring.c
include/linux/virtio_config.h