[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <160390597173.12290.18229990126806445717.b4-ty@ti.com>
Date: Thu, 29 Oct 2020 10:15:08 +0530
From: Vignesh Raghavendra <vigneshr@...com>
To: Tudor Ambarus <tudor.ambarus@...rochip.com>,
Alexander A Sverdlin <alexander.sverdlin@...ia.com>,
<linux-mtd@...ts.infradead.org>
CC: Vignesh Raghavendra <vigneshr@...com>,
Richard Weinberger <richard@....at>,
Matija Glavinic Pecotic <matija.glavinic-pecotic.ext@...ia.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mtd: spi-nor: Don't copy self-pointing struct around
On Mon, 5 Oct 2020 10:48:03 +0200, Alexander A Sverdlin wrote:
> spi_nor_parse_sfdp() modifies the passed structure so that it points to
> itself (params.erase_map.regions to params.erase_map.uniform_region). This
> makes it impossible to copy the local struct anywhere else.
>
> Therefore only use memcpy() in backup-restore scenario. The bug may show up
> like below:
>
> [...]
Updated Fixes tag as suggested by Tudor.
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks!
[1/1] mtd: spi-nor: Don't copy self-pointing struct around
https://git.kernel.org/mtd/c/69a8eed58c
--
Regards
Vignesh
Powered by blists - more mailing lists