From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42E18C2BD09 for ; Mon, 24 Jun 2024 23:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:Cc:To:From :Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LM1Doa73WH2U5GZd0XjIfitH1ryNkqLvgCDsiw2vTHE=; b=UIwj/pbn2U7981g5obaI0KnBlO ZQVDnfIBvoZaMjxm4HFoBk9Pw+SCuBVooVWlJsUE7rEeTtxF1JUf0WNs2fcYCAV6xIeSMsygtxDrv JEyeY4+bVuFfvokavyTXMwW5f1Ty4q6rpoHr7vDh6IkSYnt3NZeNI2xkTnBWgg1SqpaKXQNOQktlN QN1ulmAYu5LaqPwk5CpkOACSXb1fTaSnE4L+RObOyOpmAgOM31bPmsQwBNZWi5xh9rDD7oqgy74XE zAHgH6ESjCd+zuw0uto1XM9tDrkTs9z5rXsNwRy3XHMiHs4y2QrVyASdMVg2wfBvRkjnrxD+ReYFb swPrI/1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLtXF-000000012Uu-15N9; Mon, 24 Jun 2024 23:55:45 +0000 Received: from pi.codeconstruct.com.au ([203.29.241.158] helo=codeconstruct.com.au) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLtX9-000000012Rk-17rF for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2024 23:55:40 +0000 Received: from [192.168.68.112] (ppp118-210-79-194.adl-adc-lon-bras32.tpg.internode.on.net [118.210.79.194]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 5774020009; Tue, 25 Jun 2024 07:55:26 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1719273328; bh=LM1Doa73WH2U5GZd0XjIfitH1ryNkqLvgCDsiw2vTHE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Hzzi/f/mEXrNfUseAUuK3uJNbCFk1jPN4G5K+/b1ByhbFtLgWrdIqX56+oPlOK04c eLFLQWAHYNOAT7nXQ/sovVxWV9T6eqp1pC6kVGPnKCIqAaRfz41SIrD0J/eA2dF+KO 1BswyJu2QIA2ZqYmIUoG8bSN/tCf5vmBapc3BaqhUCkqscXf5/TIqt5BoPizgnlnSd De2Aug2lRZHaIPAEhZ5P7q6GLebTDND68ieLv0pDNLxtHCUgkYDKtaNPF/VGDS0PqB 48qviuDObLOP+4FSUAx1crCDpF9zHcyDKavCif+xquHeoT6u+FrdRvCCXRXRUK8hW7 l8H0HfmVbA4pA== Message-ID: Subject: Re: [PATCH v2] usb: gadget: aspeed_udc: validate endpoint index for ast udc From: Andrew Jeffery To: Ma Ke , neal_liu@aspeedtech.com, gregkh@linuxfoundation.org, joel@jms.id.au Cc: linux-aspeed@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Tue, 25 Jun 2024 09:25:24 +0930 In-Reply-To: <20240624015314.2249128-1-make24@iscas.ac.cn> References: <20240624015314.2249128-1-make24@iscas.ac.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240624_165539_529897_10C54AF1 X-CRM114-Status: UNSURE ( 6.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 2024-06-24 at 09:53 +0800, Ma Ke wrote: > We should verify the bound of the array to assure that host > may not manipulate the index to point past endpoint array. >=20 > Found by static analysis. >=20 > Signed-off-by: Ma Ke Probably best to do a v3 with a changelog as Greg's email suggests (and for the v3 changelog entry, mention that you added the changelog). Acked-by: Andrew Jeffery