Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9609447rwd; Wed, 21 Jun 2023 09:27:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+5K3Xv62tPzsAWPlo/+IQJ9ORkCIxgUaLX7VhtInEDu3bN83lKh4mi3hhZQAycxq2zKbQ X-Received: by 2002:a17:90a:1a07:b0:25c:2199:2e29 with SMTP id 7-20020a17090a1a0700b0025c21992e29mr15425834pjk.26.1687364820319; Wed, 21 Jun 2023 09:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687364820; cv=none; d=google.com; s=arc-20160816; b=Y/wR6Cek6++ScrjepXfZoNZL1EyOGkhAfrxPuWjVfQ9JOkD/B8bWnGKSQBlFVdpMNs Vevi9x5EiTEFsb/WGCedvO1+GKtdEek7eSid3ScuP89ZghB3AUwWRADJwiUic+jtPEY2 cf/OBXoQaJIgOwpKHQS9eq0gdFpcBAkr28RxVGmYUqACwPLf2z53z4vLj8P7GxGQEG3X x75xyK1wx2wNgePF65+hzcMnJJ64h5BadlnqAFyEiWjgtv+zTy1HIx4PNbL6lWjSxShh LydJxRHPYZUCbO5OkmeSO1i2Lm+Dz4BMjsmJ4OwEwxORDNXr6odeuywh+r1JZZ3W56Cu Y3Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Zdc9COFagXBncDw5p3xNiJiPLivGKiNtlRag/lDaOLM=; b=h9kQ4/Y/GxSLUVbNMlmCdEQuSkoPzrX0JpBKOQHVtS7Mxf2cQNMbInvgL8mm7DDmJG tui9ltyomMw59BTOlNcltxdJCs7hENKNdr681OaYKvfXQhdnNiIfBrzwKEG3DJHlBImL u0IfLDugQM438v/KzifS1JB/C3MdpVoLYquECBDmqrrIvHYvX7UrUHMoVtppJkKyl/QW QjEEvLzqUdqpLfseic+1X9BjfaJtdp5TJj1HMOFccvunAW0Rv5rRXlPfYwe7fYslrFl0 JuZI0Jp9/G44j54it+sndBQG6pI9gdce50diEDQZZA5Ebe00Dn+95FIVzpYvmXQDBtEE 6ITQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ef8MjNep; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12-20020a17090acb0c00b0025be818abb0si722133pjt.171.2023.06.21.09.26.48; Wed, 21 Jun 2023 09:27:00 -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=@linuxfoundation.org header.s=korg header.b=Ef8MjNep; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233842AbjFUQBB (ORCPT + 99 others); Wed, 21 Jun 2023 12:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231777AbjFUQAy (ORCPT ); Wed, 21 Jun 2023 12:00:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E70119BE; Wed, 21 Jun 2023 09:00:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 963BC615BA; Wed, 21 Jun 2023 15:59:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 776A8C433C0; Wed, 21 Jun 2023 15:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687363198; bh=mHRta9tIJV2JDA/5J295h4GbkMjyOk5qKzU56OUj/sk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ef8MjNepoOxKJfpbzY04NICf1OgzrJvYyTtjCFUEJSUHj/8qey/p4CbAUNyZveqZT bm0jdMdQZE5OhNXnmpkUqw2ePKIN0f94/wJs/74eGqz+r8aY1S6ybaRKn99jshcW92 W1RJzagbkPcofo+4RCi0w14pEGsgJ2JKLubbpXd0= Date: Wed, 21 Jun 2023 17:59:55 +0200 From: Greg Kroah-Hartman To: Lei Yu 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 Subject: Re: [PATCH] usb: gadget: aspeed: fix buffer overflow Message-ID: <2023062146-stony-lair-b6a3@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, Jun 21, 2023 at 08:02:14PM +0800, Lei Yu wrote: > On Wed, Dec 21, 2022 at 10:26 AM Lei Yu wrote: > > > > 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. > > 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? thanks, greg k-h