Re: [PATCH] usb: core: fix descriptor parsing OOB, port/bos locking, and devio/ledtrig races
From: Greg KH
Date: Sun Sep 20 2026 - 01:15:05 EST
On Sat, Sep 19, 2026 at 10:21:33PM -0400, Alan Stern wrote:
> On Sat, Sep 19, 2026 at 10:35:18PM +0000, Hui Peng wrote:
> > Fix multiple memory safety and locking bugs in drivers/usb/core/:
> >
> > 1. In usb_parse_ssp_isoc_endpoint_companion() and
> > usb_parse_ss_endpoint_companion() (config.c), check remaining
> > descriptor size before dereferencing desc->bDescriptorType or
> > subtracting desc->bLength.
>
> I have lost count of the number of LLM-generated patches we have
> received trying to "fix" this "problem". Try asking your LLM whether
> this change is really needed. (Hint: It isn't.)
Yeah, I've started using it as a "test" of new llm models/frameworks, so
far they all fail on it :)
Hui, please slow down, learn the codebase of what you are submitting
patches for, and the development process better before flooding lists
with tons of patches. That way will only get you ignored.
thanks,
greg k-h