Re: [PATCH] USB: misc: iowarrior: fix use-after-free in release
From: Johan Hovold
Date: Thu Jun 25 2026 - 02:41:20 EST
On Tue, Jun 23, 2026 at 08:28:46PM +0800, Sam Sun wrote:
> On Mon, Jun 22, 2026 at 11:49 PM Johan Hovold <johan@xxxxxxxxxx> wrote:
> > I only saw your report last week and missed that you had posted this fix
> > until today when I was about to submit a series fixing this driver and a
> > few others that got this wrong:
> >
> > https://lore.kernel.org/all/20260622152612.116422-1-johan@xxxxxxxxxx/
> >
> > With the commit message fixed and the write references dropped they are
> > mostly equivalent.
> >
>
> Thanks for taking a look and for the detailed explanation!
>
> I agree that the per-write URB references are unnecessary once the
> outstanding write URBs are killed unconditionally on disconnect. Your
> series is a better and smaller fix.
>
> I'll drop my version in favour of your series.
Sounds good, and thanks again for tracking this down.
Johan