Re: [PATCH] vfio/pci: Add missing range check in vfio_pci_mmap
From: Cornelia Huck
Date: Tue Apr 13 2021 - 02:48:58 EST
On Mon, 12 Apr 2021 23:41:24 +0200
"Christian A. Ehrhardt" <lk@xxxxxxx> wrote:
> 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@xxxxxxxxxxxxxxx
> Signed-off-by: Christian A. Ehrhardt <lk@xxxxxxx>
> ---
> drivers/vfio/pci/vfio_pci.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>