[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240322082506.6d4cfa69@xps-13>
Date: Fri, 22 Mar 2024 08:25:06 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Mikhail Kobuk <m.kobuk@...ras.ru>
Cc: Vinod Koul <vkoul@...nel.org>, Kishon Vijay Abraham I
<kishon@...nel.org>, Marek Behún <kabel@...nel.org>, Pali
Rohár <pali@...nel.org>, linux-phy@...ts.infradead.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org, Alexey
Khoroshilov <khoroshilov@...ras.ru>
Subject: Re: [PATCH 1/2] phy: marvell: a3700-comphy: Fix out of bounds read
Hi Mikhail,
m.kobuk@...ras.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)'.
>
> 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.
>
> Fixes: 934337080c6c ("phy: marvell: phy-mvebu-a3700-comphy: Add native kernel implementation")
> Signed-off-by: Mikhail Kobuk <m.kobuk@...ras.ru>
Reviewed-by: Miquel Raynal <miquel.raynal@...tlin.com>
Thanks,
Miquèl
Powered by blists - more mailing lists