Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5034271rwj; Tue, 20 Dec 2022 19:25:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xDqElOi6ijsqxWTTzldSIGwFH5gOQdmtd+OIPG2/zW+2ariqmlDrtqS+RbZM0GHXBdeAy X-Received: by 2002:a17:907:1182:b0:7c0:cfb2:40d2 with SMTP id uz2-20020a170907118200b007c0cfb240d2mr40479379ejb.64.1671593103134; Tue, 20 Dec 2022 19:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671593103; cv=none; d=google.com; s=arc-20160816; b=uFk6NeqQwpBC4MLd1PSTHGT51EOiP7zLFugyE5LoTBIDk0i6sdo9uWLBOWtFyiSX9J Hnvp8vh/s2frEtU517RHC1bSDgt716oybJeNSim68j22InNDBIqVeq0x9pqOHgn8Lzw0 hjQQwAjWplQePp2pKTvA+K6b6/3SDcnCLvgLzVbxLSs/T+mJmbizUS0o4HXt4d8v8+y1 vMNXhbAqP7e/n4ihZO2jKnr/Z0qCeMzZYlYaRJUr5kLYQtZj4lUyzRrvciBKW3WEFoKN HqJelv3kOPeLzyBS0HIahV4LyJ1L9NH615rtpp5QghUbPTcxf3lpacs5T1Kjydr+2p/I f8mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=z13W3xH1nsTvhWnmTXNul5f6es8IjrbA1O/Wf7PIKNI=; b=acBwo7TYImj/wePw4u4MQ7W4DTa8IbZUTVl0E+7fAMJzRzry6MNFZ6uj7xzhX+ofNM IGnuIkb6vPh5rG8Pciw7M5FjO35VAwKjNqoIp0vTAiVR8dBY4mSVpDI0DSRBvDkpRJVu 617U86dDjxb4Hrz0Q4XnAGNb0MzfCNpST2ai9B+xoftlhHO9kPo3lOQsM3GIGg4h1rFW vMnoJ1xjXSRJjZuNjblDzSs8o8xgC9Xt9gUKOzB95AZO462OCY7IxqGza4Dqv980Ec2m 1jfiUEivm/FwKfynF+exuQZbo6IsG82NyW7QY/sGbFhtBgKjoZlv6VgFyQ+B/kGk0btJ DL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=K9QYLOLd; 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=fail (p=NONE sp=NONE 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 hv13-20020a17090760cd00b007ae86742c37si3507667ejc.60.2022.12.20.19.24.47; Tue, 20 Dec 2022 19:25:03 -0800 (PST) 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.20210112.gappssmtp.com header.s=20210112 header.b=K9QYLOLd; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234144AbiLUC1N (ORCPT + 68 others); Tue, 20 Dec 2022 21:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiLUC1J (ORCPT ); Tue, 20 Dec 2022 21:27:09 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16E8920348 for ; Tue, 20 Dec 2022 18:26:36 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id t18so9735616pfq.13 for ; Tue, 20 Dec 2022 18:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=z13W3xH1nsTvhWnmTXNul5f6es8IjrbA1O/Wf7PIKNI=; b=K9QYLOLdztcSsTqUl7QGaammCGHwhV6GDinc1PhhBdLobE/lTqf4Fbdiwti5iLSzDU MvGjre3X845BtKnSxgc5U7Bm/GsqqtDeunyDlPhk7+e3YSLu9dJU8GSaHmwaYDRl3PRB Q5dwbjfO/M3FGw0Mb21FzIzbufJZnsSb8ztlcBEjBLTwHY6NebUCmTE00bMVGfnQBu92 6vI2SJD2SPJPzdBDY6Pbo+vDulW6IVbqRVh+HCXvOi0z8DzwouI9DLFchH/1PRapBNRM BLevifdSiRso2c17qIyHaLjzlwIULRIhEka7O9uub0NAXMh9PRZSmZTUaJ20YWZ9PvwD GD6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=z13W3xH1nsTvhWnmTXNul5f6es8IjrbA1O/Wf7PIKNI=; b=queEUlTXqr0ndGd7h7D1K043bM/yt1H7lRRjk2Hs8Fdyfw8LGllzQRAHSNIDWzhv2c LDGyALme8Rhu3Cr4ZxLJQZyTj0bHunHLxF5czRUdF4y328TS/mUqXnTD3VqVYOH9hOse d9Gr8rMgLm2hAhjGKszqRmEWd2v/D7SBSjbQWvNmIO1BphWaZ2LgBvI2xL/SQx7RYSia /7Fs1Da2FlkHMD3tGnvrWc58NraFJjsT70C60zmuuyUh9NUGEkN0qL5BVLBv7EGNK/8S +YNxpNO9PQxpS47JRpvANG8r025gOd7PwxQMnQxXMSXdGXWxMy7zbPKBT/V7RkaKpQvT C2yg== X-Gm-Message-State: ANoB5plnksg1Gin1bi2LZOv+IoQ5n9bMxOfipRHQvNw9WVn7+5zLFAg7 RnPZGBaTXUS8fTcjJVgLhK4MExOjgAlU8lybYD8wsg== X-Received: by 2002:a63:3641:0:b0:478:e542:7d77 with SMTP id d62-20020a633641000000b00478e5427d77mr11878033pga.101.1671589596254; Tue, 20 Dec 2022 18:26:36 -0800 (PST) MIME-Version: 1.0 References: <20221024094853.2877441-1-yulei.sh@bytedance.com> In-Reply-To: From: Lei Yu Date: Wed, 21 Dec 2022 10:26:25 +0800 Message-ID: Subject: RE: [PATCH] usb: gadget: aspeed: fix buffer overflow To: Neal Liu Cc: Greg Kroah-Hartman , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Wed, Dec 21, 2022 at 10:17 AM Neal Liu wrote: > > > > > > 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 cannot 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 could be reproduced.