diff options
author | Christian A. Ehrhardt <lk@c--e.de> | 2021-04-12 23:41:24 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-04-13 16:29:16 +0200 |
commit | 909290786ea335366e21d7f1ed5812b90f2f0a92 (patch) | |
tree | 79f0dd7ee483a36b32023bcae2e6ed9be462683a /kernel/groups.c | |
parent | Linux 5.12-rc7 (diff) | |
download | linux-909290786ea335366e21d7f1ed5812b90f2f0a92.tar.xz linux-909290786ea335366e21d7f1ed5812b90f2f0a92.zip |
vfio/pci: Add missing range check in vfio_pci_mmap
When mmaping an extra device region verify that the region index
derived from the mmap offset is valid.
Fixes: a15b1883fee1 ("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>
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions