Received: by 2002:ab2:5182:0:b0:1f4:61d5:3ad4 with SMTP id x2csp76801lqi; Fri, 5 Apr 2024 10:10:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuda6eAUx5aGEmJLpECYTnoDwvL8woB6T8uvVjOo9DiNn2ijmALopGDOb191HAmG78Y0YNYkj7FuRJ61QEy34qwzS5t194FKgyCqB1pQ== X-Google-Smtp-Source: AGHT+IEtAsJGB6Gusw1O2mO9QYRf0ZNC3gADxZ8ur5+uz+rK5nV6nNnXSrDpx20j7OIp/YcQf2lV X-Received: by 2002:a19:e04a:0:b0:516:d1af:e4e9 with SMTP id g10-20020a19e04a000000b00516d1afe4e9mr1444250lfj.25.1712337000042; Fri, 05 Apr 2024 10:10:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712337000; cv=pass; d=google.com; s=arc-20160816; b=eeBZoaU1UTdyfq1T4Dxk+WSTV82BwabfiKNpLO1Z+kOop/r73tylLeQxc2K0gJKneS B/NTw4KfltkJa53IOm1niVBdGmCCQ8hPODoqZo13s0C0IHv4BkQiAqC0fUOH1g+KELHj L7aWwYJncX0D1F53RRKMoWpvR/evTNvIsUFW1apthLysmGNdrD14+kL4xVEETgWcwoeG Obzw/BGjOt9ICD54Qgy2E6dEwiPxFopXdMGOS448guTzOfKIpyBkPwJWxiQW3whQdC6w UM1U46NkQqZtqkRl8CidCs91xRlsJ8wIJO2hUWQwL861WC1tHD578mgM/Fb7HnUlgQEq gLuA== 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:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=ISJYVns5gx53lzAyq2JvAN0NEufT3HIY2qOvfYjbDww=; fh=qY3ECB74288z86GSkCEBuLvi5maTmZ/+CEUBPCamClg=; b=rByo7kGaGoRTkcIf+3R8GnrogVY6BMZaEcRKLx77eFi/KdaJcL6S50i8RJBGnuOvJY jCFflKOjizMhLrRac/JXTUXQGB03HEC2dMVe9RjhQt3BmUNILMRUnJufLxZ/ldI6psG8 otMamT6h6XD5JktIZViGmTc4BkDhi+SuHrpkZ2Y7ztf6/9BnXZJr3DvOfte4q7jvnXwY xs9UTHk7oMJcLE6G2v4wlW4tYxfvgRqrWKpXJXWFw1VEmjh5hnndl6uCo6DSjSUay0pu rfOsKxhXJGmAy4mKyTIyCRi8XvYFqjvU2BQkX7fBLEmJ+1+RxSsxl51Ckf8YOE7l017q I27w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ay1MDXUH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p23-20020a17090653d700b00a462c4842bbsi888091ejo.676.2024.04.05.10.09.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 10:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133396-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=@kernel.org header.s=k20201202 header.b=Ay1MDXUH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 75B7D1F227B0 for ; Fri, 5 Apr 2024 17:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98A1C17279A; Fri, 5 Apr 2024 17:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ay1MDXUH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A9ECA172791 for ; Fri, 5 Apr 2024 17:08:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712336934; cv=none; b=q3yKpjnksmxr5oYlBfkQMBHIxU4grJMGfMDLIboWMIRp3x2BCjmmiC5AotvzVIvFtx0OFGxTgeZKEa3KuvIEEgUx56u5xaWwpbEsufv8bNN4in36d5Y+DXTsIxZbfqlQpXaPdtSUH+VGvQJSdXzoF9cCloQcyfAv0eG1DX851Mg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712336934; c=relaxed/simple; bh=bB7oNyHkvKT4PfIsWvGWCvvkKlXK/RSEvYSvcEJjJfg=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=o0PRjJKxKF8H/VNnNUaq3sdJbBXdn4paJ/2wGYwt2pYz/eD++O3IqPX0SqKamxuMnfiwCirwID/QSG5Rt3QTXUcLfcTLs1nUDLG3S17pbdYutoXU6EPxvurukgrW8aFMuMsN4afBij3UBwQI6FUgTRM4knlYuY1eXjxmTrHdQ+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ay1MDXUH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B902C433F1; Fri, 5 Apr 2024 17:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712336934; bh=bB7oNyHkvKT4PfIsWvGWCvvkKlXK/RSEvYSvcEJjJfg=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Ay1MDXUHeyoL2K1xDhZWBsWIUVMBcaAGr2K2jSP9JH6ic1P7ACdeFX+Fte5sKg+zj M0c5jJ6857NywjXp+pn75VCXzC/jJzud3T3OUCP6S3MYjIj6rgvBKLsL92dfj82bIZ jXMRVawTulIc2m7YFJ+f1H/5D5p7uw1H2hbOBuhppMMTgmOgWblR6uNKKOx5YuTdaL zSS0tDBpAFZD3A/LKyaErC1mj437J6C02z2imsAeYjIuLSgtw4jm2MIWJHY+sj3PQw 97vMXwy+Y8jranp+ljzPsGTi5aaPNWk6GCUJglNJzhYBuEaq0jCJVufRNIiFrSatTz cTnyEPXjk+Giw== From: Vinod Koul To: Miquel Raynal , Mikhail Kobuk Cc: Kishon Vijay Abraham I , =?utf-8?q?Marek_Beh=C3=BAn?= , =?utf-8?q?Pali_Roh=C3=A1r?= , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, Alexey Khoroshilov In-Reply-To: <20240321164734.49273-1-m.kobuk@ispras.ru> References: <20240321164734.49273-1-m.kobuk@ispras.ru> Subject: Re: [PATCH 1/2] phy: marvell: a3700-comphy: Fix out of bounds read Message-Id: <171233693092.304466.7167467366245404657.b4-ty@kernel.org> Date: Fri, 05 Apr 2024 22:38:50 +0530 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: 7bit X-Mailer: b4 0.12.3 On Thu, 21 Mar 2024 19:47:30 +0300, Mikhail Kobuk wrote: > 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)'. > > Make sure 'gbe_phy_init[addr]' is used when all elements of > 'gbe_phy_init_fix' array are handled. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > [...] Applied, thanks! [1/2] phy: marvell: a3700-comphy: Fix out of bounds read commit: e4308bc22b9d46cf33165c9dfaeebcf29cd56f04 [2/2] phy: marvell: a3700-comphy: Fix hardcoded array size commit: 627207703b73615653eea5ab7a841d5b478d961e Best regards, -- ~Vinod