From: Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Kees Cook <kees@kernel.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+28cf08dec5895bd562e6@syzkaller.appspotmail.com,
Chaithanya Lagisetty <nagachaithanya9911@gmail.com>
Subject: Re: [PATCH RESEND] usb: gadget: f_loopback: fix descriptor leak on unbind
Date: Fri, 11 Sep 2026 09:01:36 +0000 [thread overview]
Message-ID: <20260911090136.64549-1-nagachaithanya9911@gmail.com> (raw)
In-Reply-To: <2026091028-launder-jockstrap-be0c@gregkh>
On Thu, Sep 10, 2026 at 06:32:50PM +0200, Greg KH wrote:
> How was this tested? I don't see syzbot doing the test, did you?
I ran the syzbot reproducer from the reported bug against both an
unpatched and a patched kernel.
Both kernels were built from the same source tree and .config, with the
same compiler and QEMU environment; the patch was the only difference.
On the unpatched kernel, the reproducer triggered 3 "BUG: memory leak"
reports in 5 iterations. All reported allocations originated from
loopback_bind() through usb_assign_descriptors() / usb_copy_descriptors():
BUG: memory leak
unreferenced object 0xffff888016dad4c0 (size 64):
comm "repro", pid 5597, jiffies 4294942168
backtrace (crc c8d54481):
__kmalloc_noprof+0x391/0x540
usb_copy_descriptors+0x6c/0x170
usb_assign_descriptors+0x6c/0x180
loopback_bind+0xf4/0x130
usb_add_function+0xca/0x270
configfs_composite_bind+0x6dc/0xa90
gadget_bind_driver+0xf7/0x3e0
...
gadget_dev_desc_UDC_store+0x153/0x1e0
On the patched kernel, I ran 25 reproducer iterations and observed no
"BUG: memory leak" reports. I also performed three explicit kmemleak
scans, all of which were clean.
> And did you forget an Assisted-by: tag?
Yes, I did. I will add:
Assisted-by: Cursor:opus-5
in the next revision.
Regards,
Chaithanya
prev parent reply other threads:[~2026-09-11 9:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-08 18:15 [PATCH] usb: gadget: f_loopback: fix descriptor leak on unbind Chaithanya Lagisetty
[not found] ` <CALFZYQUzfbVnAhSqR6JmfDB-zvuiGSWx+9tCBc03xfBxJS9h0Q@mail.gmail.com>
2026-08-23 16:56 ` Greg Kroah-Hartman
2026-09-02 10:51 ` [PATCH RESEND] " Chaithanya Lagisetty
2026-09-10 16:32 ` Greg KH
2026-09-11 9:01 ` Chaithanya Lagisetty [this message]
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=20260911090136.64549-1-nagachaithanya9911@gmail.com \
--to=nagachaithanya9911@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=gregkh@linuxfoundation.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=syzbot+28cf08dec5895bd562e6@syzkaller.appspotmail.com \
/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