Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9267788rwd; Wed, 21 Jun 2023 05:26:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6qNQ+yCFlQHILci8U+YzzK6kyLAtlTtqRk4a1aZ53q2nHO5fCdG9uRf0+WhYEO+Pg8HP+P X-Received: by 2002:a05:6808:2b08:b0:397:f946:1e5 with SMTP id fe8-20020a0568082b0800b00397f94601e5mr12722210oib.15.1687350372512; Wed, 21 Jun 2023 05:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687350372; cv=none; d=google.com; s=arc-20160816; b=tXzU1T0GiQXImR4T3+E+O5JG3VvjW+p7EToPmdrzeBuSh0xdcamJD7u/fnTW2UShRr e8xApKtWlp2VVweqBuzQRilf2O4F3dWK9c3v5LB7Ekp6gLTDIdgLJjBPAh4nyXtxRBOQ nxq8R6ZexN2VLGP7vcrxkFBqvVi+kdp3YtsacHeVnnJllv2aDTSuk2C1ksAS7mELNgSr WABVccOM+d1NhQ7HuAJCDrq+h0KXrmdPh74r/CIVt3vFO7r84hmJk3JPvmVUJlcmWOwY B38aWSslk3wjNC4b+ebZ1zXb9qO1ZhNVFdAdnrjE0c5ZDihEyids2bA9w4UlW7sVIFEI NmYw== 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=MhxmnBwA3kxFM1Khy1EXv4uS5Bs0rCsQz59EI6x6O38=; b=0IOL+FzugHW/BAYMIafjizpBVn0WrVxckmMiANoleDeFeFfARAiWu2Lxou/MXz04lH 2BregIoe6OBXInY9WPy6FV9PCjrxYE+AEFk90ggyCYO+G2QxB7h93DNo/bMdlmcUXABN Meb7ba5uYrlcnzD09qTCXSvhGGghMLnkrF5uEQ6sm5pfVVL4DH2hkGhjujDjsW4Ei1mv vnbnPVo7YzYrn8DQSXS07Kc2qbqPTO6qzVNdC6sksUI6JbKqExz1oD0vY0lFYIsbxscG Nb8BGZL/wPfi6LVe0CbDjXYYw1/z/14b9LSeGIrXT0cj8D73XdQ2SWOwDneY23eDeuLc SYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="F/KGFrLg"; 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 40-20020a17090a09ab00b0025ea83fe637si11745067pjo.27.2023.06.21.05.26.00; Wed, 21 Jun 2023 05:26:12 -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="F/KGFrLg"; 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 S231671AbjFUMCu (ORCPT + 99 others); Wed, 21 Jun 2023 08:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbjFUMCq (ORCPT ); Wed, 21 Jun 2023 08:02:46 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8876170C for ; Wed, 21 Jun 2023 05:02:25 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-260a4020ebaso2285062a91.2 for ; Wed, 21 Jun 2023 05:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687348945; x=1689940945; 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=MhxmnBwA3kxFM1Khy1EXv4uS5Bs0rCsQz59EI6x6O38=; b=F/KGFrLg4zD/PMnwpqt+njNXxH5Rs94zpA07R9mKFtHQJG79P/UwYxEP8E448E4kod ujgEISipQqVYQb/8UsU6WJSKzTgNY7IwsGo74ryReNAfPQdJtk1h3p03MMhuITs7K+r4 BXe7y7d2dah3gGHL8Gmm6qIDGh1FTuKO949HM6XX/LnCXScv8WkiSTqzXQyh0OlDD3wj FyBoXTUCKetNKgrv+dzwTspwpCeaXxHZkIBAwbY4inwnq2Ehx/BIFthlPeXFjyULT2Lb nBosdkgEGXJ/huQqsRElA5XBTBhZ1JsMAgYVDYFmRfk26YAtp7qD0IsFdGm4dhGvO9qB m4lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687348945; x=1689940945; 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=MhxmnBwA3kxFM1Khy1EXv4uS5Bs0rCsQz59EI6x6O38=; b=N3YxTDRkO5Pc7b1tYj8taU5BGuAC8D174zCZJX33liUdmjdAAUHN2uGGxJl14vrNhU hvO8hjeP7mEL2M5yYev6J68VRdM3Koo29vtn61f6QMnXTNCAiMKk1yZ9dpYTmNlKaM8d khoXo0ti7rLo16GyE/gWwuX9G4o6uBwEMrs+HjNiXnhTO9pB96Ey17rReO3PVq9B5BMF qy5oajgcZ0EgBHy1DYieddYjS+9PjrjtSWw5EQl23Eoic7WioRKFj262B9Rw6UU6VSuS bgvMH+/jwuAzdE3iSIRh9xGMck3U5whJe5/14g9L6XV+9TIM/A0srsPIjl0udiSS9NDN DCWw== X-Gm-Message-State: AC+VfDx2lGf4R3NN1hrGlmqHc0LZlMt0E6qjCNyqTD/cOCisygst6H6E 1hoIHo1eYTeh1kOrXVaCd1CpruOT4lsnZlx+1F/UOw== X-Received: by 2002:a17:90a:43e4:b0:25b:dc4b:611d with SMTP id r91-20020a17090a43e400b0025bdc4b611dmr15221652pjg.26.1687348945091; Wed, 21 Jun 2023 05:02:25 -0700 (PDT) MIME-Version: 1.0 References: <20221024094853.2877441-1-yulei.sh@bytedance.com> In-Reply-To: From: Lei Yu Date: Wed, 21 Jun 2023 20:02:14 +0800 Message-ID: Subject: 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,URIBL_BLOCKED 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:26=E2=80=AFAM Lei Yu wr= ote: > > 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 cou= ld > > > 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 s= et 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. 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?