[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211026072000.8699-1-jasowang@redhat.com>
Date: Tue, 26 Oct 2021 15:19:56 +0800
From: Jason Wang <jasowang@...hat.com>
To: mst@...hat.com, virtualization@...ts.linux-foundation.org
Cc: linux-kernel@...r.kernel.org, f.hetzelt@...berlin.de,
david.kaplan@....com, konrad.wilk@...cle.com,
Jason Wang <jasowang@...hat.com>
Subject: [PATCH V4 0/4] Validate used buffer length
Hi All:
This patch tries to validate the used buffer length in the virtio
core. This help to eliminate the unexpected result caused by buggy or
mailicous devices. For the drivers that can do the validation itself,
they can ask the virtio core to suppress the check.
Changes since V3:
- Initialize the buflen to zero when the validation is done by the driver.
Jason Wang (4):
virtio_ring: validate used buffer length
virtio-net: don't let virtio core to validate used length
virtio-blk: don't let virtio core to validate used length
virtio-scsi: don't let virtio core to validate used buffer length
drivers/block/virtio_blk.c | 1 +
drivers/net/virtio_net.c | 1 +
drivers/scsi/virtio_scsi.c | 1 +
drivers/virtio/virtio_ring.c | 60 ++++++++++++++++++++++++++++++++++++
include/linux/virtio.h | 2 ++
5 files changed, 65 insertions(+)
--
2.25.1
Powered by blists - more mailing lists