[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 6 Jun 2023 10:18:16 +0200
From: Simon Horman <simon.horman@...igine.com>
To: Ben Hutchings <ben@...adent.org.uk>
Cc: netdev@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org, Eli Cohen <elic@...dia.com>
Subject: Re: [PATCH net] lib: cpu_rmap: Fix potential use-after-free in
irq_cpu_rmap_release()
On Fri, Jun 02, 2023 at 08:28:15PM +0200, Ben Hutchings wrote:
> irq_cpu_rmap_release() calls cpu_rmap_put(), which may free the rmap.
> So we need to clear the pointer to our glue structure in rmap before
> doing that, not after.
>
> Fixes: 4e0473f1060a ("lib: cpu_rmap: Avoid use after free on rmap->obj ...")
> Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists