]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfio-pci: Fix buffer overfill
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jan 2013 17:45:26 +0000 (10:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Jan 2013 04:49:00 +0000 (20:49 -0800)
commit87c7746150f3c90b23837817af9be414baf7e25b
tree603ca94ba5ad3329b3974f32e2ff1e0d7c73d768
parent9b19e974ebb8ae156e03a6ad7361b8c7134e68a0
vfio-pci: Fix buffer overfill

commit ec1287e511320a2c9a02640b7ac02d5d79f56f08 upstream.

A read from a range hidden from the user (ex. MSI-X vector table)
attempts to fill the user buffer up to the end of the excluded range
instead of up to the requested count.  Fix it.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vfio/pci/vfio_pci_rdwr.c