Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14448829rwd; Sat, 24 Jun 2023 20:35:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60s7+c/bCBByvmCGMuwGNOPTn3Y6qZjp33b60Q/2Cppf/X3dQTZaP7t9NUxeo9d5fn8VES X-Received: by 2002:a05:6358:f1e:b0:12b:e45b:3fac with SMTP id b30-20020a0563580f1e00b0012be45b3facmr15437208rwj.32.1687664123687; Sat, 24 Jun 2023 20:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687664123; cv=none; d=google.com; s=arc-20160816; b=hUv0+UHEily55a1CIw7IudwNZrbQ1j4c11K9ylOu8LOCFtSlZxodvngmni6WYvq8Vt uf/39Ky4gRaNQ4e9H4plO1Xx+Kim5p25SDaMAFdLVJaTZItQGF/k95s0XA8rXiy+COv0 cRqGyPQBCMGVqR7MkyAR+LBiynlJQtJc1GnDtCQSMkHZZ7R13slEA5w09tCUSVXLTeQh MLMG/yibD/3wwUS3AL22nGEW6HfkFCg9lVQFCc7KU+GLA2VIU3rv6iecj4R3m5f/zjbF uGfoMp/juevBIkXmK+kpnbDb5RAvXJgY4cmU9jdBU37FwiZYcOu0BpOq8F6GtFRRDxHf 2BMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mh8y9rGkY0XrishvL/YriS+pn1suafnY/Ovufgrc/To=; fh=ZxxhatYkRtB/Z85KoMF5jItg8uROFuYZpT+iquXJ+xE=; b=i5ItGe07grzJHJWauHr8uWHxeNRxSpSS3hd9+Nn9xH65x1FLIlyRGYyGHGTUekDxAu l/PTtoUnFHxCWxWnp4SArx32/wUYKfgyMdiGDjWNz6zeS4BPJoCThndfcvKSnGVUuN42 LgmDxjHbCeiRzAhikH7rD6Pi8539P2sRtkHcvTqxSONy6Z29vGkXcU6u3jMDgtWUekUj 8nDy92dZyQ6grWch+e+9F5R6L0Lm8fi2lm00VwHxOxsyhgMXfcO/sIw+k/L4FBtlxlqI L+P+YJPoXJKh660i12xNE9/T1spoXZiNo1z0f7eJLtV1HYBkeEg6o4JgVs01tCRC13PC CQnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=S1HFlcqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a056a00098f00b0064d28b68d8fsi2471535pfg.94.2023.06.24.20.35.11; Sat, 24 Jun 2023 20:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=S1HFlcqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbjFYDIL (ORCPT + 99 others); Sat, 24 Jun 2023 23:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjFYDIH (ORCPT ); Sat, 24 Jun 2023 23:08:07 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D21FE65 for ; Sat, 24 Jun 2023 20:08:05 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-54fb23ff7d3so1052697a12.0 for ; Sat, 24 Jun 2023 20:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687662484; x=1690254484; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mh8y9rGkY0XrishvL/YriS+pn1suafnY/Ovufgrc/To=; b=S1HFlcqs8l0XO2V+kdO93mLZSNlhR+kNBtOscaXM8ZAuK+nt+kONB5CmffSF6B17Or GMDtkPINo5NY9ahXUTWawPYZ6AjvrjnIHv6sWZKzyTX7/SIFXxvdPvBZ8+hCGEshgwEL DdJ858OzfjMUp62a8UA/N/0q9yXDX29eBz2B5NwEeBu+hMT/gXEtggZGs4Yo71x7qg7O 1NTkGpfambYFBPwK9Y2cbv7b1sW/WLrgHS1w+4p1HA5AovgA+wYnfWBk5mEC2heCbn3M mkSg5Y3l4so4E7Fw5w5+GVVFjTM8pR2/q6caVVYl0Kk4aUyxphIAHBRdf3JLHuTZbZo0 zyhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687662484; x=1690254484; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mh8y9rGkY0XrishvL/YriS+pn1suafnY/Ovufgrc/To=; b=ba1FhG5xmWMHRTDjvLVLgTp4/9dhwYeO4HR03Aml+rV9+qfiW0hCkS0FDNZLn/lrRw K2sGuYzdnB+5LMa4JJ/sFM4iIU/H8/zW2mqvR53tABXP9LOfocR4KgXvCf9z4maCZx+P Kp9qvw9CPeL2zmnqA6SjCMME/32+ySwfSZg688UDmDJsQfnWhpVv+TZ1X5NqBaiUOU5F 79vUM+kqmO6QXzMvABPLG8yc+WWPlgtXesO2zmWJ+EBedrPco137vmw2wpHDFY50ezVP HjIDn2Oe+9z7sxJeR2+StlZ079cVXqi1OkNtbNmyK/PfIfF7h92ec0NYsmJWn17t1+UV fYqA== X-Gm-Message-State: AC+VfDzSQKxZ2Ipy51/bNmh5u61J3tupxM5lNypa/pKNI9vj3ZyfWE+/ ldSxpEKuE3foieSufpJgpc2FvLsDM6Rtq7vTtW2Qlw== X-Received: by 2002:a17:90a:bb81:b0:262:a546:e8a2 with SMTP id v1-20020a17090abb8100b00262a546e8a2mr2764648pjr.33.1687662484519; Sat, 24 Jun 2023 20:08:04 -0700 (PDT) MIME-Version: 1.0 References: <2023062146-stony-lair-b6a3@gregkh> In-Reply-To: <2023062146-stony-lair-b6a3@gregkh> From: Lei Yu Date: Sun, 25 Jun 2023 11:07:53 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] usb: gadget: aspeed: fix buffer overflow To: Greg Kroah-Hartman Cc: Felipe Balbi , Joel Stanley , Andrew Jeffery , Henry Tian , Jakob Koschel , "linux-usb@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Ryan Chen , Neal Liu , Benjamin Herrenschmidt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 12:00=E2=80=AFAM Greg Kroah-Hartman wrote: > > On Wed, Jun 21, 2023 at 08:02:14PM +0800, Lei Yu wrote: > > On Wed, Dec 21, 2022 at 10:26=E2=80=AFAM Lei Yu wrote: > > > > > > On Wed, Dec 21, 2022 at 10:17 AM Neal Liu w= rote: > > > > > > > > > Using rndis is able to set MTU to 2000, and the issue can= be > > > > > reproduced. > > > > > > > > > > USB ecm is also tested and it is possible to set MTU to 2000, and= could > > > > > reproduce the issue. > > > > > So I think this patch is needed anyway. > > > > > > > > > > @Neal Liu Could you kindly help to verify the USB ECM case? > > > > > > > > How to set MTU to 2000 on USB ECM case? I remember last time I cann= ot set by using "ifconfig ..." > > > > Regardless ECM or RNDIS, I agree this patch is still needed. > > > > > > You were able to set MTU to 2000 for RNDIS but not for NCM. > > > @Greg Kroah-Hartman indicated that RNDIS should not be used anymore. > > > So I tested ECM and verified it could set MTU 2000 and the issue coul= d > > > be reproduced. > > > > This patch fixes the kernel oops in the aspeed-vhub driver for both > > USB ECM and RNDIS. > > It now has an Acked-by from benh and Reviewed-by from neal_liu > > > > Should we merge this patch? > > Can you please resend it? I just find that the patch is already merged in v6.2 Thanks.