]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-pci: Fix buffer overfill
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jan 2013 17:45:26 +0000 (10:45 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jan 2013 17:45:26 +0000 (10:45 -0700)
commit93cc7850fce3b72d5920177118bd03da940dc535
tree80cb8ec5f4990a80b61a5b6707fd09d808ca64fd
parent1a083a0a0fa0e19e0dd7b2e7a7d9482505c5579f
vfio-pci: Fix buffer overfill

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>
Cc: stable@vger.kernel.org
drivers/vfio/pci/vfio_pci_rdwr.c