[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240204094446.GA5400@unreal>
Date: Sun, 4 Feb 2024 11:44:46 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Bart Van Assche <bvanassche@....org>
Cc: William Kucharski <william.kucharski@...cle.com>,
Jason Gunthorpe <jgg@...pe.ca>, linux-rdma@...r.kernel.org,
target-devel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] RDMA/srpt: Do not register event handler until srpt
device is fully setup
On Thu, Feb 01, 2024 at 06:48:34AM -0800, Bart Van Assche wrote:
> On 1/30/24 22:24, William Kucharski wrote:
> > Upon rare occasions, KASAN reports a use-after-free Write
> > in srpt_refresh_port().
> >
> > This seems to be because an event handler is registered before the
> > srpt device is fully setup and a race condition upon error may leave a
> > partially setup event handler in place.
> >
> > Instead, only register the event handler after srpt device initialization
> > is complete.
>
> A Fixes: tag is missing. Otherwise this patch looks good to me. Hence:
I added this line:
Fixes: a42d985bd5b2 ("ib_srpt: Initial SRP Target merge for v3.3-rc1")
>
> Reviewed-by: Bart Van Assche <bvanassche@....org>
Thanks
Powered by blists - more mailing lists