Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp952962lqp; Fri, 22 Mar 2024 00:25:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXym4uZhO3+LhIo1dWQ+B/HgroVdWk++Dx1m84dqmkLKKfMl5Z+V21aVzRz9yg/03AyXWBzW2Pshg9uzCqfr85tM8coWrGInAR9ytciDw== X-Google-Smtp-Source: AGHT+IE7XQvTLCj5T/PkbJBMMAl6Zj8kh2NyCnOmSNl39XGoBkCEWWbEpzCRQrWhQ3NKDjlkAChY X-Received: by 2002:a17:906:6a17:b0:a47:3526:2e0f with SMTP id qw23-20020a1709066a1700b00a4735262e0fmr244349ejc.75.1711092328469; Fri, 22 Mar 2024 00:25:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711092328; cv=pass; d=google.com; s=arc-20160816; b=hxtQL/34h/TAY78EnPX0pFZOeG2G044wBrBvmi/6E10EcdGedfTHoJ5zzyDmlzCi55 8T0v6MR0YXRItN1n45a7+ed61wTZTkQnXdnetuapUXKkRockH/WO+BEo0NUgQD1OA5qi q7HqD83FFbT1EIfro80Qho9dBh7eI7eVxdsxdvqwOB+I1JZY7UoF0HPcvaGiyqJMGcJD 43peBzJH5pfpc2QM6jYDpv2FT261m3Agrz0jQbt2orI/jcyYMisTnDLFs6bziCZcJ0pc 7g4k2Cxt+oD+OPmGtxQqi/ztxJtT2pzjmed4hjgbLrS38Zn74I4Pt12Pdz5uUcT3dV/m vPEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=E1HU3MaaZuurSbEALSn4O+2+Vq9VJFs+Q64NGMlxrrw=; fh=cJZmZljdVBshPtZtpNvYPFQ0cQzxnlYd3tPCV/pptVk=; b=lok7ykIOQHNG7noR5GSYQ/2+7HTSKpfm27sqMyIeJyC7VZKFX22fFHnPjiF+ln0qrY oQ6y28vme6/GCvK3QwxqwOpmItlBU9MD4/djYeYz/2C780DsmSZY4aXJ8G4zrHpI4wVz UIg3Ofo9OyN0Ytxrl53NOR+89Et3wq0Ey5yUaY5vC8Q06U/VleLSk2ing5rBKrfks01h CH3EhRR2/YQNMYefLFKO269e/jrPbBU7Qy8D6aVqKyeg8dSROIgy0v969J7BgFNg5iHo /hV2CdrP8db3mrxTx5s2Yjhzyrq+J0oekNFU7LS8LdCecPGHZY6xTJsNxqLlxWSPc42w JH2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CM9SHIfn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-111057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m20-20020a1709062b9400b00a46df83d035si616007ejg.231.2024.03.22.00.25.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 00:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CM9SHIfn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-111057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0A3691F24DEA for ; Fri, 22 Mar 2024 07:25:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A223125AB; Fri, 22 Mar 2024 07:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="CM9SHIfn" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BF691118C for ; Fri, 22 Mar 2024 07:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711092320; cv=none; b=tygHJkzVgQQFmXIRnnjAk8lWf5OrejqNooR9XD+6N9svCi4ofvNJ42p+mNC0UTlqiSQc9csGtysn856u73GtTt/HYDBENv9a/KaKYzgVkvCyAy3puozXt9bTi3lRBkwUcLsB0auu0OUxLo+81YSeZmA4A+pN2hUWCx0+AWgkscQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711092320; c=relaxed/simple; bh=E1HU3MaaZuurSbEALSn4O+2+Vq9VJFs+Q64NGMlxrrw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MZ9edbKcGktIw7jgs480t4XOOnFrXNjsoLNXkLk1Q/uZsRnXRNpkWfB2f28oPpt0z5whgxlFThvrxmo/F6aakahmPozNJLW9tN9gAeFRN+StGEGvWUrc0XOt1onRSpw024C3bFpQmJ3PueJdm8OydbcOhMwMCd6i3jst3sHGPyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=CM9SHIfn; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D522AC0009; Fri, 22 Mar 2024 07:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711092308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E1HU3MaaZuurSbEALSn4O+2+Vq9VJFs+Q64NGMlxrrw=; b=CM9SHIfnmGUNE1IzwOHvaAK1g9NZ1WvSYOa1vy60o/YQLH+EvEtHHb29PRtIBWb4L3RIDV 0PiXPywzFRxF9wikKti3xzriBzcF/sQezg97XH8ji5eFsS79+JbYiwlA50ozVpBGSUJTL0 87FqpXCjxeKhLVv9ok5FL2/DmyVXAtAKT0FD68aCxXgWObOW9eyubS1Jw9+qZZPOVzL1dO zu6WBd4zyihBgkUJVLxs0aOqzjad7LJgs2MdKNDE8XF9w6OO1c9In1GQ/E6jAzCsKOVrTJ OcJXrroAquMWl68MFgsx2UvUfun+9D+qHZV7M54eaPeQ5ZoTCdc0TW8GShIdzg== Date: Fri, 22 Mar 2024 08:25:06 +0100 From: Miquel Raynal To: Mikhail Kobuk Cc: Vinod Koul , Kishon Vijay Abraham I , Marek =?UTF-8?B?QmVow7pu?= , Pali =?UTF-8?B?Um9ow6Fy?= , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, Alexey Khoroshilov Subject: Re: [PATCH 1/2] phy: marvell: a3700-comphy: Fix out of bounds read Message-ID: <20240322082506.6d4cfa69@xps-13> In-Reply-To: <20240321164734.49273-1-m.kobuk@ispras.ru> References: <20240321164734.49273-1-m.kobuk@ispras.ru> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Mikhail, m.kobuk@ispras.ru wrote on Thu, 21 Mar 2024 19:47:30 +0300: > There is an out of bounds read access of 'gbe_phy_init_fix[fix_idx].addr' > every iteration after 'fix_idx' reaches 'ARRAY_SIZE(gbe_phy_init_fix)'. >=20 > Make sure 'gbe_phy_init[addr]' is used when all elements of > 'gbe_phy_init_fix' array are handled. >=20 > Found by Linux Verification Center (linuxtesting.org) with SVACE. >=20 > Fixes: 934337080c6c ("phy: marvell: phy-mvebu-a3700-comphy: Add native ke= rnel implementation") > Signed-off-by: Mikhail Kobuk Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l