From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796120093; b=kQ0biclvOgx7iDptrCR/Dnh31hcgaeZP4lcf1vDtcYhIW9MDHduuypeOvbozxmodPB5m J06dGI2+v7Ls8wIFqz6wj5NkveIIpuEuaisN7VRwM+k1JbdYaMNrAsXH4U0jqQy3Egy8E EMjhyK2KAig+Cz83V72cL0vFMZ7EwR2/R1tz9vxbNJ7+RKgnjdkoDAMcuV5gdyp7R1AHB o91slc7qDVGhnoqXKMPKPCngrKtGYVZMF7OBYdQ/nKLEIKkFz2qI0JdKs1Ud3myCqfhE/ 9iSoKEEliOWoG/G1UAUmT2h+mpeMlxDgtIkMmalF30BjnOOchm9bRCNptQmsqjCI7Vw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796120093; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=KPZWB2y1dLNih8QBqxS/8jucPK2HI3sokVi1pNb9Vos=; b=Hv76hSGELpJtelvvn1+ijLucX+8zGCC5miLN+eIRuFWIJNoOBFqFFRWYVvGFEu+twn7v +1fb30Hr76FVqrZwdByCgNwbwXF6+8CWtEB0L4vWcKGQibPw2QafilihlaUyPD1/+ziuz e15mMpHh8YrtztsCb862NlK4R+D7jRkAcfTOuvS/2RsjGOLAdVhWRP5TxEbehs895oUNi 5i7hXYDhzAQUoTHInSFMfnokweQn0dCVa8rMsyrp8JfpchWpYDLH1G/ja6pl4z88fWXdi eRQSqXA8T8JbOO7H+dU2z35n2dqFa5kVFJ2xbQhNcDHM4hAPNTvXuW/I73o2vJqZjnQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=jytpKehD; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F190606A31A; Tue, 1 Dec 2026 10:14:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5F190606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=jytpKehD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796120092; x=1827656092; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KPZWB2y1dLNih8QBqxS/8jucPK2HI3sokVi1pNb9Vos=; b=jytpKehDGjNGoN3shcwhhQIWu00OyeQMESctpzjdnTXXs7uQ5ThmCll4 53uidOi2Vcdvjsy7sG8D5fXLFOgmxb4ZcqaQWFpSt7Tmgbz1c9/X6o22C 74AS0FnIr5umx5MtVHWtptwsQcs49BMeZqfPabKnDUQy0XYQal4x5q6TC oo14nufGe7ohuCLbyCYvJHRWQaIzFh3bqMd+lNZq5nXsYAbewJSGnVD+J 3QyFHKaLQ96ROQe3H9PJVSDZvGaaNgBhZvz+HVFnRT9kZvvBxo5MZHden WIXhmZUDVTD3XOd79hFTNM9GOHWHVJ1AC3f2gNT9PLaCpalZhWdpBdsLC w==; X-CSE-ConnectionGUID: 9j/B+qu3SzqSWRV9ngNXXg== X-CSE-MsgGUID: lu5PPJKPSa20MO3oZ81KoQ== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4926939" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4926939" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 02:14:52 -0800 X-CSE-ConnectionGUID: FaWrmgJ2Q9G48NIA/D/jCw== X-CSE-MsgGUID: k/VfyE/2TzmZfUAPjDLaBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13510794" Received: from conormcd-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.17]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 02:14:49 -0800 Date: Tue, 1 Dec 2026 12:14:46 +0200 From: Andy Shevchenko To: Greg Kroah-Hartman Cc: Liu Chao , Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , khtsai@google.com, fangxy@xiaopeng.com, Randy Dunlap , 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 Message-ID: References: <20261201024415.3340593-1-liuc63@xiaopeng.com> <2026120113-divinity-operate-e1b0@gregkh> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2026120113-divinity-operate-e1b0@gregkh> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Tue, Dec 01, 2026 at 07:06:52AM +0100, Greg Kroah-Hartman wrote: > 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? lib patch may easily go via USB tree. There is a made-up issue. -- With Best Regards, Andy Shevchenko