[PATCH] ubifs: address bit flips in unused free space

Richard Weinberger richard.weinberger at gmail.com
Mon Aug 18 02:01:32 PDT 2025


On Mon, Aug 18, 2025 at 10:46 AM <shao.mingyin at zte.com.cn> wrote:
>
> From: Shao Mingyin <shao.mingyin at zte.com.cn>
>
> When the recovery detects a free space bit flip, the UBIFS mount fails,
> rendering the UBIFS unusable. This issue can be addressed by reclaiming
> the affected erase block, which involves relocating its valid data. So
> attempting to fix free space bit flip during recovery reduces scenarios
> where users cannot access UBIFS normally.

UBIFS should never see bit flips in empty space.
Fixing this situation happens in the NAND layer.
Please see  nand_check_erased_ecc_chunk() and it's users.

Maybe your NAND driver does not call it?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list