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 B0165C001DC for ; Thu, 27 Jul 2023 20:46:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 55E3986886; Thu, 27 Jul 2023 22:46:50 +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="n32PwSkZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EE76E86885; Thu, 27 Jul 2023 22:46:38 +0200 (CEST) Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) (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 3026486884 for ; Thu, 27 Jul 2023 22:46:33 +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-ua1-x92d.google.com with SMTP id a1e0cc1a2514c-794779e1044so559548241.2 for ; Thu, 27 Jul 2023 13:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690490792; x=1691095592; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ewUUtpzaylSi2KibesEz0oATC9WMv7Wsm3wqD0gTrQk=; b=n32PwSkZvte7aXybcGkYZ9V8UKKCvoPwatd/dKm7rVkSTIw2dWU9wumOK1HRmoZNNa eOXPg+eXF2p4jyK9/xzJ+5iZuGSCEBFt6Gnt536CTtdJVf10/ImEuBQu7B62J/SmRK+0 PEYuP7FtZkU0IHhDfRs9eDXID90VI3jnc1NnU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690490792; x=1691095592; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ewUUtpzaylSi2KibesEz0oATC9WMv7Wsm3wqD0gTrQk=; b=kTqLzBB1XZEuIpAbxrCOyXlNT5+rcorQnr6C7dDE07vUEL3/teiaEVwhDMr8Lb0jOD ZJMJh7wbELOS0/hRRMn/YrI50RQDuxIMpMusXb99yC0SmrLSubKidL8/Kifw/RmuXEfg jS1khqS192lpikL99MLFwmjK8t7WyOkKmMSei9TiugcFZV34rLkygyKQsUn1E/vnw7Uy WDmnXIWJYgSXrSYoRqMalOLEazSIVLtSo/WuCXehfYunJ1zgnZ90+jwsFMZ++FgbmEPJ 5Fp7g1zdSMpXp+v1KeDF8OP/vqPsV47DjUBEGbfEUkf90vnZ2ab0HYXaapxkRzMCN2DD Al5A== X-Gm-Message-State: ABy/qLZXVsi/Ob1k0QslsA5X4OJM5IBgoWxCz2L9Ay3Te+CtRKdEtxaR gnjuqlnzL/Jej7y5tBvjuS6LkRFx4zQMzR3f485BRg== X-Google-Smtp-Source: APBJJlGFIy0ildj1x8aIOItcyR3jKEtXh9OXspRi+I9+XvKHvSiqSI9A3z4F0mYn9RBCrNovfg+fbA== X-Received: by 2002:a05:6102:3bc7:b0:440:981b:3840 with SMTP id a7-20020a0561023bc700b00440981b3840mr582860vsv.31.1690490791827; Thu, 27 Jul 2023 13:46:31 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-96a7-b348-5b90-69b9.res6.spectrum.com. [2603:6081:7b00:6400:96a7:b348:5b90:69b9]) by smtp.gmail.com with ESMTPSA id h29-20020a67c19d000000b00426768819d4sm330377vsj.3.2023.07.27.13.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 13:46:31 -0700 (PDT) Date: Thu, 27 Jul 2023 16:46:29 -0400 From: Tom Rini To: emohandesi@linux.microsoft.com Cc: u-boot@lists.denx.de, joe.hershberger@ni.com, rfried.dev@gmail.com, v.v.mitrofanov@yadro.com, sjg@chromium.org, saproj@gmail.com Subject: Re: [PATCH 1/2] net: ipv6: router advertisement message length should be within limits Message-ID: <20230727204629.GQ3630934@bill-the-cat> References: <1684434279-1065-1-git-send-email-emohandesi@linux.microsoft.com> <1684434279-1065-2-git-send-email-emohandesi@linux.microsoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sKEVyD30Xu8vWU+B" Content-Disposition: inline In-Reply-To: <1684434279-1065-2-git-send-email-emohandesi@linux.microsoft.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.8 at phobos.denx.de X-Virus-Status: Clean --sKEVyD30Xu8vWU+B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 18, 2023 at 11:24:38AM -0700, emohandesi@linux.microsoft.com wr= ote: > From: Ehsan Mohandesi >=20 > The argument len passed to function process_ra is the length of the IPv6 > router advertisement message and needs to be between 0 and MTU because > it is assigned to remaining_option_len and used as a loop variable. >=20 > Addresses-Coverity-ID: 450971 ("TAINTED_SCALAR") > Signed-off-by: Ehsan Mohandesi > Reviewed-by: Viacheslav Mitrofanov > Reviewed-by: Ramon Fried Applied to u-boot/master, thanks! --=20 Tom --sKEVyD30Xu8vWU+B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTC16UACgkQFHw5/5Y0 tyzk/Av9GyDQZRwmUSgAmHCz0eOTNTchFvw+iSqr64Z+HwsvmVRu1OfW25YGPQbj oF+tnyv4+HPkhKo64fTfrGEDBeSgfdZ5pRBeweq+3qD3W+P62PIbUpI2nS/3YQTe Iu3f7ATH35jDZklygg6idcxp+1k7YS4yiOgRrXjWGPfzd8gbjmKpwQbmI0u9S4Wz PJp9mh4xzU5wdZZwmjBerWGIAHpwL6F2+mxxI0Bxcdep7ni5XviubkI5jjK6jhlM F+xSqLy4T8eMsaQh6gY8N4QUkyhqP+snRZM40+ccxtrsHm4WDHjOg/xgGmtBXWHo BjE0AWUy7eBwCZNSlY7mwo+OwAbFwCu8ajEyMIDRRV3HWkuPm6hFe3rsU4O5yAgI x+UaGMkNloD8RAou8fk5UETfBr2Nj/UHYWwdiWl0ghi8lqIrlj2i7Qe5f32oN/5c 8A8SqYACwoZd7Fa2jXn20ol9bAXqbeY/9AV6OeKt3XL8UJyIZooQBzGhAzwd4DFZ ffGWTHjb =kbo8 -----END PGP SIGNATURE----- --sKEVyD30Xu8vWU+B--