virtio: pci: Bounds check notification writes
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:02 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:45 +0000 (15:50 -0400)
commitc690f64f4c958531fb4bb1b1540931adba022830
tree67ac05620f16a82222c8e8bb93588a2bf99f6994
parent94b28b9158b1ea96b2dbfefe9b79e38fc6a35a9c
virtio: pci: Bounds check notification writes

Make sure virtio notifications are written within their allocated
buffer.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/virtio/virtio_pci_modern.c