linux-stable/drivers/virtio
Michael S. Tsirkin a4ba26c880 virtio_balloon: prevent pfn array overflow
[ Upstream commit 6e9826e772 ]

Make sure, at build time, that pfn array is big enough to hold a single
page.  It happens to be true since the PAGE_SHIFT value at the moment is
20, which is 1M - exactly 256 4K balloon pages.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-28 16:36:09 +01:00
..
Kconfig
Makefile
virtio.c
virtio_balloon.c virtio_balloon: prevent pfn array overflow 2020-02-28 16:36:09 +01:00
virtio_input.c
virtio_mmio.c
virtio_pci_common.c virtio_pci: fix a NULL pointer reference in vp_del_vqs 2019-05-10 17:53:11 +02:00
virtio_pci_common.h
virtio_pci_legacy.c virtio: pci-legacy: Validate queue pfn 2018-09-15 09:45:27 +02:00
virtio_pci_modern.c
virtio_ring.c virtio_ring: fix return code on DMA mapping fails 2019-12-01 09:14:28 +01:00