[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YJXeTy0lNWvSMnZH@mail-itl>
Date: Sat, 8 May 2021 02:41:50 +0200
From: Marek Marczykowski-Górecki
<marmarek@...isiblethingslab.com>
To: Luca Fancellu <luca.fancellu@....com>
Cc: Juergen Gross <jgross@...e.com>, xen-devel@...ts.xenproject.org,
linux-kernel@...r.kernel.org,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Stefano Stabellini <sstabellini@...nel.org>,
stable@...r.kernel.org
Subject: Re: [PATCH] xen/gntdev: fix gntdev_mmap() error exit path
On Fri, Apr 23, 2021 at 08:04:57AM +0100, Luca Fancellu wrote:
> > On 23 Apr 2021, at 08:00, Juergen Gross <jgross@...e.com> wrote:
> > On 23.04.21 08:55, Luca Fancellu wrote:
> >>> On 23 Apr 2021, at 06:40, Juergen Gross <jgross@...e.com> wrote:
> >>>
> >>> Commit d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert")
> >>> introduced an error in gntdev_mmap(): in case the call of
> >>> mmu_interval_notifier_insert_locked() fails the exit path should not
> >>> call mmu_interval_notifier_remove(), as this might result in NULL
> >>> dereferences.
> >>>
> >>> One reason for failure is e.g. a signal pending for the running
> >>> process.
> >>>
> >>> Fixes: d3eeb1d77c5d0af ("xen/gntdev: use mmu_interval_notifier_insert")
> >>> Cc: stable@...r.kernel.org
> >>> Reported-by: Marek Marczykowski-Górecki <marmarek@...isiblethingslab.com>
> >>> Tested-by: Marek Marczykowski-Górecki <marmarek@...isiblethingslab.com>
> >>> Signed-off-by: Juergen Gross <jgross@...e.com>
(...)
> Right, thanks, seems good to me.
>
> Reviewed-by: Luca Fancellu <luca.fancellu@....com>
Can somebody ack this fix please?
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists