[BUG] UBIFS corruption on powerpc 32-bit targets
Zhihao Cheng
chengzhihao1 at huawei.com
Wed Feb 11 17:19:41 PST 2026
在 2026/2/12 0:51, Tomas Alvarez Vanoli 写道:
>> What does 'application' mean?
> I meant just completely changing the kernel and rootfs that is there as a backup
> image and using a more recent kernel.
> Yes, it will prevent the problem too.
>>
>> Apply following patch in 6.12:
>> [...]
>
> Unfortunately on my system this just gets stuck, because the only way
> write_orph_node gets called is through do_commit calling
> ubifs_orphan_end_commit, but that path is never executed (except when mounting).
>
> I tried mounting with and without sync, same results.
>
The 'sync' syscall will call ubifs_orphan_end_commit if the orhpan list
is not empty.
ubifs_sync_fs -> ubifs_run_commit -> do_commit -> ubifs_orphan_end_commit
In ubifs_create, the new inode will be added into orphan list.
ubifs_create -> ubifs_new_inode -> ubifs_add_orphan
You can add some debug messages to check which condition is broken.
> Best Regards,
> Tomas
> .
>
More information about the linux-mtd
mailing list