mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Jiale Yao <yaojiale02@163.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mian Yousaf Kaukab <yousaf.kaukab@intel.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH 1/4] usb: dwc2: initialize debugfs command buffer
Date: Wed, 4 Nov 2026 01:57:42 +0000	[thread overview]
Message-ID: <auqPUx03ISuM-FUK@vbox> (raw)
In-Reply-To: <20261021104720.4106961-2-yaojiale02@163.com>

(Removed some bounced emails)

On Wed, Oct 21, 2026, Jiale Yao wrote:
> testmode_write() copies user input into an uninitialized stack buffer
> and compares fixed command lengths. A short write matching a command
> prefix can make strncmp() inspect bytes that were not initialized.
> 
> Zero-initialize the buffer so the copied input is always terminated.
> 
> Fixes: f91eea447ac3 ("usb: dwc2: move debugfs code to a separate file")

This should be:

Fixes: 9e14d0a566f4 ("usb: dwc2: gadget: add TEST_MODE feature support")

How was this found? Please mention the tool in the commit message?

BR,
Thinh

  reply	other threads:[~2026-11-04  1:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-21 10:47 [PATCH 0/4] usb: initialize debugfs command buffers Jiale Yao
2026-10-21 10:47 ` [PATCH 1/4] usb: dwc2: initialize debugfs command buffer Jiale Yao
2026-11-04  1:57   ` Thinh Nguyen [this message]
2026-10-21 10:47 ` [PATCH 2/4] usb: gadget: renesas_usb3: " Jiale Yao
2026-10-21 10:47 ` [PATCH 3/4] xhci: debugfs: initialize " Jiale Yao
2026-10-21 12:41   ` Mathias Nyman
2026-10-21 10:47 ` [PATCH 4/4] usb: mtu3: initialize debugfs " Jiale Yao

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=auqPUx03ISuM-FUK@vbox \
    --to=thinh.nguyen@synopsys.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=yaojiale02@163.com \
    --cc=yousaf.kaukab@intel.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

all inboxes | Powered by JetHome®