Re: [PATCH] ubifs: address bit flips in unused free space
From: Richard Weinberger
Date: Mon Aug 18 2025 - 05:03:43 EST
On Mon, Aug 18, 2025 at 10:46 AM <shao.mingyin@xxxxxxxxxx> wrote:
>
> From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>
>
> 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