All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Liu Chao <liuc63@xiaopeng.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Andy Shevchenko <andriy.shevchenko@intel.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	khtsai@google.com, fangxy@xiaopeng.com,
	Randy Dunlap <rdunlap@infradead.org>,
	dbrownell@users.sourceforge.net, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH v7 0/2] usb: gadget: u_ether: fix out-of-bounds read in get_ether_addr
Date: Tue, 1 Dec 2026 07:06:52 +0100	[thread overview]
Message-ID: <2026120113-divinity-operate-e1b0@gregkh> (raw)
In-Reply-To: <20261201024415.3340593-1-liuc63@xiaopeng.com>

On Tue, Dec 01, 2026 at 10:44:13AM +0800, Liu Chao wrote:
> Rework of
> 
>   [PATCH v6] usb: gadget: u_ether: fix out-of-bounds read in get_ether_addr
>   https://lore.kernel.org/all/20261128080722.1469508-1-liuc63@xiaopeng.com/
> 
> following Andy's reply on the v6 2/2 thread: 1/2 prepares a parse_mac_pton()
> helper in lib/net_utils.c, 2/2 uses it in get_ether_addr().
> 
> The two patches belong to different trees: 1/2 touches lib/ and should go via
> netdev or -mm, 2/2 is for the USB tree.  2/2 depends on 1/2, so it can only be
> applied once 1/2 has reached Linus' tree.

That's not going to work well, are you sure this is the only way to
resolve this?

This feels like a crazy complex patch for an issue that is
self-inflicted.  Why not just resolve it in the gadget driver alone if
it wants to handle such crazy inputs?

greg k-h

  parent reply	other threads:[~2026-12-01  6:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:44 [PATCH v7 0/2] usb: gadget: u_ether: fix out-of-bounds read in get_ether_addr Liu Chao
2026-12-01  2:44 ` [PATCH v7 1/2] lib/net_utils: allow mac_pton() to take a custom delimiter Liu Chao
2026-12-01  2:44 ` [PATCH v7 2/2] usb: gadget: u_ether: fix out-of-bounds read in get_ether_addr Liu Chao
2026-12-01  6:10   ` Greg Kroah-Hartman
2026-12-01  2:51 ` [PATCH v7 0/2] " sashiko-bot
2026-12-01  6:06 ` Greg Kroah-Hartman [this message]
2026-12-01 10:14   ` Andy Shevchenko

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=2026120113-divinity-operate-e1b0@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@intel.com \
    --cc=davem@davemloft.net \
    --cc=dbrownell@users.sourceforge.net \
    --cc=edumazet@kernel.org \
    --cc=fangxy@xiaopeng.com \
    --cc=horms@kernel.org \
    --cc=khtsai@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=liuc63@xiaopeng.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rdunlap@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.