[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210215120607.66b2630f.cohuck@redhat.com>
Date:   Mon, 15 Feb 2021 12:06:07 +0100
From:   Cornelia Huck <cohuck@...hat.com>
To:     Alex Williamson <alex.williamson@...hat.com>
Cc:     kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
        pbonzini@...hat.com, jgg@...dia.com, peterx@...hat.com
Subject: Re: [PATCH] vfio/type1: Use follow_pte()
On Fri, 12 Feb 2021 12:01:50 -0700
Alex Williamson <alex.williamson@...hat.com> wrote:
> follow_pfn() doesn't make sure that we're using the correct page
> protections, get the pte with follow_pte() so that we can test
> protections and get the pfn from the pte.
> 
> Fixes: 5cbf3264bc71 ("vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()")
> Signed-off-by: Alex Williamson <alex.williamson@...hat.com>
> ---
>  drivers/vfio/vfio_iommu_type1.c |   14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
> 
With the function signature adapted:
Reviewed-by: Cornelia Huck <cohuck@...hat.com>
Powered by blists - more mailing lists