Re: [PATCH v2] ubi: gluebi: Fix NULL pointer dereference caused by ftl notifier

From: Richard Weinberger
Date: Mon Oct 23 2023 - 02:46:15 EST


----- Ursprüngliche Mail -----
> Von: "ZhaoLong Wang" <wangzhaolong1@xxxxxxxxxx>
> An: "richard" <richard@xxxxxx>, "chengzhihao1" <chengzhihao1@xxxxxxxxxx>
> CC: "Miquel Raynal" <miquel.raynal@xxxxxxxxxxx>, "Vignesh Raghavendra" <vigneshr@xxxxxx>, "dpervushin"
> <dpervushin@xxxxxxxxxxxxxxxxx>, "Artem Bityutskiy" <Artem.Bityutskiy@xxxxxxxxx>, "linux-mtd"
> <linux-mtd@xxxxxxxxxxxxxxxxxxx>, "linux-kernel" <linux-kernel@xxxxxxxxxxxxxxx>, "yi zhang" <yi.zhang@xxxxxxxxxx>,
> "yangerkun" <yangerkun@xxxxxxxxxx>
> Gesendet: Montag, 23. Oktober 2023 08:41:12
> Betreff: Re: [PATCH v2] ubi: gluebi: Fix NULL pointer dereference caused by ftl notifier

>>
>> IOW, no mtdblock (hence, also no FTLs) on top of gluebi.
>>
>> What do you guys think?
>>
>> Thanks,
>> //richard
>>
>
>
> JFFS2 needs to work on the block device, so the mtdblock needs to work
> on the top of gluebi.
>
> This is directly reflected in the jffs2 mount command, such as
>
> # mount -t jffs2 /dev/mtdblockX /mnt/jffs2

The limitation is long gone. It comes from the dark and old times
where Linux was only able to mount block devices.

You can do: mount -t jffs2 mtdX /mnt/jffs2

Thanks,
//richard