Re: [PATCH 2/3] usb: core: strengthen size check in usb_parse_interface()

From: Alan Stern

Date: Tue Jul 14 2026 - 12:43:38 EST


On Tue, Jul 14, 2026 at 07:53:14AM +0200, Greg Kroah-Hartman wrote:
> As for patch 3/3, I'm pretty sure that can't hurt as well. I'm starting
> to get a lot of "something could happen in an IRQ while a device is
> being removed" bug reports from these tools. Looks like they all just
> discovered that very rare code path at the same time, something that
> syzbot can't really fuzz for.

The 3/3 patch looked okay to me too, but I wasn't entirely sure because
it does a bunch of stuff while holding the device_state_lock. It seemed
better to let the xHCI people comment on it, because it's in a code path
that applies only to USB-3 devices.

Alan Stern