mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
vfio/pci: Add missing range check in vfio_pci_mmap
commit909290786eupstream. When mmaping an extra device region verify that the region index derived from the mmap offset is valid. Fixes:a15b1883fe("vfio_pci: Allow mapping extra regions") Cc: stable@vger.kernel.org Signed-off-by: Christian A. Ehrhardt <lk@c--e.de> Message-Id: <20210412214124.GA241759@lisa.in-ulm.de> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e6177990e1
commit
f66d695c06
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue