From: Tom Rini Date: Thu, 25 Feb 2021 08:31:24 -0500 Subject: [PATCH 1/1] net: cortina_ni: buffer overrun In-Reply-To: <20210220094404.7946-1-xypron.glpk@gmx.de> References: <20210220094404.7946-1-xypron.glpk@gmx.de> Message-ID: <20210225133124.GN10169@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Feb 20, 2021 at 10:44:04AM +0100, Heinrich Schuchardt wrote: > When copying to a u32 field we should use sizeof(u32) and not > sizeof(*u32) in memcpy. > > On 64bit systems like cortina_presidio-asic-emmc_defconfig using > sizeof(*u32) leads to a buffer overrun. > > Fixes: febe13b438b3 ("net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs") > Signed-off-by: Heinrich Schuchardt > Reviewed-By: Ramon Fried Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: