From: Greg KH <greg@kroah.com>
To: CO <co@bugs.sh>
Cc: linux-usb@vger.kernel.org
Subject: Re: [BUG] drivers/usb: out-of-bounds in xhci_queue_bulk_tx()
Date: Sat, 29 Aug 2026 09:54:02 +0200 [thread overview]
Message-ID: <2026082900-mortified-freehand-7c59@gregkh> (raw)
In-Reply-To: <010001a04c70ee2b-c45aa397-c6df-429a-a4ca-bc08bedd6c7f-000000@email.amazonses.com>
On Sat, Aug 29, 2026 at 07:34:24AM +0000, CO wrote:
> On Sat, Aug 29, 2026 at 12:01 AM Greg KH <greg@kroah.com> wrote:
> >
> > On Fri, Aug 28, 2026 at 11:42:07PM -0700, Cedalion wrote:
> > > On Fri, Aug 28, 2026 at 11:20 PM Greg KH <greg@kroah.com> wrote:
> > > >
> > > > On Sat, Aug 29, 2026 at 06:07:39AM +0000, CO wrote:
> > > > > On Thu, Aug 27, 2026 at 10:36 PM Greg KH <greg@kroah.com> wrote:
> > > > > >
> > > > > > On Fri, Aug 28, 2026 at 02:00:17AM +0000, CO wrote:
> > > > > > > On Thu, Aug 27, 2026 at 10:31 AM Xiang Mei <xmei5@asu.edu> wrote:
> > > > > > > >
> > > > > > > > Th
> > > > > > > >
> > > > > > > > On Thu, Aug 27, 2026 at 5:50 AM Greg Kroah-Hartman
> > > > > > > > <gregkh@linuxfoundation.org> wrote:
> > > > > > > > >
> > > > > > > > > On Thu, Aug 27, 2026 at 12:43:58PM +0000, co wrote:
> > > > > > > > > > We found a bug reachable in:
> > > > > > > > > >
> > > > > > > > > > path drivers/usb/host
> > > > > > > > > > crash out-of-bounds in xhci_queue_bulk_tx()
> > > > > > > > > > commit bd5f485f3f02 ("Merge tag 'soc-arm-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc")
> > > > > > > > > >
> > > > > > > > > > Config, environment, the sanitizer report and a C reproducer follow.
> > > > > > > > > >
> > > > > > > > > > == Notes ===============================================================
> > > > > > > > > > If you patch the bug based on our artifacts, a tag would be
> > > > > > > > > > appreciated:
> > > > > > > > > >
> > > > > > > > > > Reported-by: co+fd80bc5967eb22c3@bugs.sh
> > > > > > > > > >
> > > > > > > > > > Everything in this mail is validated by the reproducer below.
> > > > > > > > > >
> > > > > > > > > > We also hold an LLM-generated root-cause analysis and a candidate
> > > > > > > > > > patch. The patch passes an A/B test: the same reproducer panics the
> > > > > > > > > > unpatched kernel and runs clean on the patched one. Neither has had
> > > > > > > > > > human review, so both still require validation before you send or
> > > > > > > > > > apply them. Available on:
> > > > > > > > > >
> > > > > > > > > > patch.diff https://bugs.sh/b/fd80bc5967eb22c3/patch.diff
> > > > > > > > > > report.md https://bugs.sh/b/fd80bc5967eb22c3/report.md
> > > > > > > > >
> > > > > > > > > Please validate and ensure that this is correct before sending this to
> > > > > > > > > us. No need for us to dig through random web links, right?
> > > > > > > Hi Greg,
> > > > > > >
> > > > > > > Thanks for the feedback, and sorry for the noise. Sending these before
> > > > > > > we had settled the format and talked to maintainers was our mistake.
> > > > > > >
> > > > > > > Let me make sure we understood your suggestions.
> > > > > > >
> > > > > > > # What we understood
> > > > > > >
> > > > > > > You want patches that a human has verified, and you do not want to
> > > > > > > have to follow links to find out what a report says. We should not
> > > > > > > have sent what we sent.
> > > > > >
> > > > > > That is correct, would you want anything different if we were to send
> > > > > > stuff to you?
> > > > > >
> > > > >
> > > > > Nothing in particular, thanks. A Reported-by: tag and having the
> > > > > report closed would be appreciated!
> > > >
> > > > If you submit a patch, you are the author and no reported-by is then
> > > > needed.
> > > >
> > >
> > > Thanks, that makes sense when we send patches. We want to focus on bug
> > > reporting for now like syzbot and we'll also put our time in patching
> > > when the pipeline can run stablly.
> >
> > We almost always ignore "bug reports" that don't come with patches,
>
> Understood. A bug with a human-validated patch is worth far more than
> a report alone.
>
> > especially as your tool (i.e. your LLM) can automatically generate a
> > patch based on your reproducer, so why not submit it?
> >
>
> The bottleneck isn't generating a patch, it's validating one. Bug
> reporting scales because a reproducer is self-validating: either the
> kernel crashes or it doesn't. A patch isn't. We can confirm a patch
> stops the crash via A/B testing, but confirming it addresses the
> actual root cause rather than papering over a symptom is beyond what
> LLMs can do automatically today. In our experience current LLMs don't
> come close to an experienced maintainer, and sending patches we didn't
> validate would just move our validation cost onto reviewers.
Agreed, so don't do that, but rather:
> If untriaged patches are still useful, we're happy to
> include them. We would send a proper patch with a commit message
> rather than a bare diff, clearly marked as LLM-generated and
> A/B-tested only, so it's obvious what has and hasn't been verified and
> others can take it further if they want.
No, please do:
> If instead you'd prefer we only send patches we've reviewed by hand,
> we'll keep doing that, just at a much lower rate, since it's two of
> us.
Yes, review them by hand, verify they are correct, and then send them to
us based on your review. For you to expect us to do your work for you
is a bit odd, don't you think?
We want fixes that people think are correct, based on their review and
testing. Based on the work I've been doing this year, LLM-generated
stuff is 50% the time totally wrong. Don't make me have to reject your
LLM-generated patches 50% the time, as we will just get frustrated and
ignore 100% of your submitted patches :)
thanks,
greg k-h
next prev parent reply other threads:[~2026-08-29 7:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 12:43 [BUG] drivers/usb: out-of-bounds in xhci_queue_bulk_tx() co
2026-08-27 12:50 ` Greg Kroah-Hartman
2026-08-27 17:31 ` Xiang Mei
2026-08-28 2:00 ` CO
2026-08-28 5:36 ` Greg KH
2026-08-29 6:07 ` CO
2026-08-29 6:18 ` Greg KH
2026-08-29 6:42 ` Cedalion
2026-08-29 6:59 ` Greg KH
2026-08-29 7:34 ` CO
2026-08-29 7:54 ` Greg KH [this message]
2026-09-01 12:23 ` CO
2026-09-01 13:39 ` Greg KH
2026-08-27 22:47 ` Michal Pecio
2026-09-02 11:24 ` [PATCH] usb: xhci: Fix bounce buffer overflow Michal Pecio
2026-09-02 13:39 ` Mathias Nyman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026082900-mortified-freehand-7c59@gregkh \
--to=greg@kroah.com \
--cc=co@bugs.sh \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox