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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 300C4C433F5 for ; Fri, 29 Apr 2022 18:04:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3924583F05; Fri, 29 Apr 2022 20:04:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Nt+7iq2p"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1204683EEE; Fri, 29 Apr 2022 20:03:42 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D1F9F83DEF for ; Fri, 29 Apr 2022 20:03:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2f.google.com with SMTP id q13so5895443qvk.3 for ; Fri, 29 Apr 2022 11:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AIeQSodpEbYoVY58O3t6gudCmBL/30r98HluTijJ2DA=; b=Nt+7iq2pMrf6Deprv53BNfSx9rbpBuTpkqHrMWcbNANxGIwkjn2uSoB7RIMwirOkOB bqxoDE9o1tDDBPzNa4SYm3rfE72oAnc+KetdgyPHzsJPPrbz4z34TvmGemCXOEQG5K7c sfAIEIOu1PwDY8+IPQcxumNrw6L7J+1nEHg+M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AIeQSodpEbYoVY58O3t6gudCmBL/30r98HluTijJ2DA=; b=poC98Mgblo+9oq36IgAmqmUos2bmO+M59O1qxLhsiPCeeqk0yHLPAFF2yVJ/f5jbB4 4eSH6ztoBocheE5JXPWp+VZIACD62iYTyEWmTdDWaKU6i40CN30Pi3CwVjJpEfOrV0qB zac75XNYOiA+VPRmvRIaaLSmCfZ1brl/YwBdZNJOYLjGMhTBPNLrain8dUclRzF3brxn 1/Hjhc/ilPt42F2H/5pKVbInVFgqSgwUiNmpjOnEss9kDxrkEDUoBabwOFLEI84qundD abGNM4Z07w+wK3wlIw7/NxYx74F+jJujtABujgA0HlpQGddgR/FaVLTxxeXR2ryJQqBG KtLQ== X-Gm-Message-State: AOAM531PEHnQFl1dRAGIabGBrdob5B2sEOxW+59GBSe/uoRXy6JE5apv 5otFaiCHPNoSLm0ouiIdY4f3TA== X-Google-Smtp-Source: ABdhPJyebKbKdFfQ3ZoByBNj/f1AArPVVvhBCtEIIZRCKm2XLclOE3MIQS4/k1KQZdhG6JcxlbwD1A== X-Received: by 2002:a05:6214:1c46:b0:456:3704:3d71 with SMTP id if6-20020a0562141c4600b0045637043d71mr329879qvb.118.1651255417703; Fri, 29 Apr 2022 11:03:37 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-4500-a827-6dbc-a8e1-e6af.res6.spectrum.com. [2603:6081:7b01:4500:a827:6dbc:a8e1:e6af]) by smtp.gmail.com with ESMTPSA id y6-20020a05622a004600b002f33ba280cbsm2167933qtw.8.2022.04.29.11.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 11:03:36 -0700 (PDT) Date: Fri, 29 Apr 2022 14:03:35 -0400 From: Tom Rini To: Andrew Scull Cc: u-boot@lists.denx.de, sjg@chromium.org, seanga2@gmail.com, Marek Vasut Subject: Re: [PATCH 5/8] usb: sandbox: Bounds check read from buffer Message-ID: <20220429180335.GA1182808@bill-the-cat> References: <20220403103915.3338027-1-ascull@google.com> <20220403103915.3338027-6-ascull@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="iRomnA/8S0UoJbe2" Content-Disposition: inline In-Reply-To: <20220403103915.3338027-6-ascull@google.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --iRomnA/8S0UoJbe2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 03, 2022 at 10:39:12AM +0000, Andrew Scull wrote: > The buffer is 512 bytes but read requests can be 800 bytes. Limit the > request to the size of the buffer. >=20 > Signed-off-by: Andrew Scull > Cc: Simon Glass > Cc: Marek Vasut > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --iRomnA/8S0UoJbe2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJsKHYACgkQFHw5/5Y0 tyzO5AwArzPuWvlvaPFI417i+03PMpKS2z95tMq+I67tWzvJi5n7Xxx5fEU+juAg BNzYs2pGjaMYLOKOLSQ7flh95h49qcafLHgCpZDu2+b6vEQlxcztqT0JpTJj2ZY8 ky/G+U5615fgpTgTTVkR4V5wZNzaAgCoYqNvVN3zH5yOv2UHGHbvQIfYmxRfVlVl l6VJ7ao0TjZngcmgz0jo4n2byBHnqzqTAr6ykuS6tasNKXdWdl59o7qLAGuvL1Df xy8N/6wWf5CFCALhWQOsk9QNpNGRcD7d7T/Fv3apm4v3PFmL65g8sJOL4N4byLu6 v4DrjESCmL2c4NIb+BOlH5QO1wcWZ1UXut8/yen7e9ND0O07gSLstm2/WA40zcBe 3hLgdnoXQqFwm+ZIXobfd2b/4RkM+21EG/PWKui+QIbny5amngA/MfIxfCFd9Ikq FQuuAms63BHwmIdc7qZCyDt6GQAi2ek6KyHOUrDqVUbm9/aZlAuj6RHBLdmV1V+/ oftQNr6B =9N9L -----END PGP SIGNATURE----- --iRomnA/8S0UoJbe2--