[PATCH] ubi: Reject device with erasesize 0

Richard Weinberger richard at nod.at
Fri Sep 1 02:38:38 PDT 2023


----- Ursprüngliche Mail -----
> Von: "Tudor Ambarus" <tudor.ambarus at linaro.org>
> An: "Jan Kara" <jack at suse.cz>, "richard" <richard at nod.at>, "Miquel Raynal" <miquel.raynal at bootlin.com>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>, "chengzhihao1" <chengzhihao1 at huawei.com>, "Yu Hao" <yhao016 at ucr.edu>
> Gesendet: Freitag, 1. September 2023 11:25:11
> Betreff: Re: [PATCH] ubi: Reject device with erasesize 0

> Hi, Richard,
> 
> On 8/31/23 12:11, Jan Kara wrote:
>> In principle MTD device with erasesize 0 can exist and it is possible to create
>> them e.g. via KVM. If that happens UBI layer currently crashes
> 
> mtd devices are organized in erase blocks, having a mtd with erase
> size zero looks suspicious to me. Do you know if there are any mtd
> devices with erasesize of zero?

Yes. There are. So, the fix is fine.

Thanks,
//richard



More information about the linux-mtd mailing list