[BUG] UBIFS corruption on powerpc 32-bit targets
Tomas Alvarez Vanoli
tomas.alvarez-vanoli at hitachienergy.com
Thu Feb 5 07:47:24 PST 2026
Hi,
>It would be appreciate that if you could modify according to the
>suggestions and resend them.
I'll take look at the patch and submit the changes soon.
>Looks like that there is only one problem, the inode cannot be found but
>the dentry(ne_config.xml.gz) still exists on flash. I guess the lost
>inode is 3917759 in previous log.
>Maybe the inode is
>
>UBIFS error (ubi1:0 pid 134): ubifs_iget: failed to read inode 3917759,
>error -2
>UBIFS error (ubi1:0 pid 134): ubifs_lookup: dead directory entry
>'ne_config.xml.gz', error -2
>UBIFS warning (ubi1:0 pid 134): ubifs_ro_mode: switched to read-only
>mode, error -2
>find: /cfg/board/cfg/mob/backup/ne/ne_config.xml.gz: No such fiCPU: 1
>UID: 0 PID: 134 Comm: find Not tainted 6.12.57-00435-gf9e139970f1f #0
>
>Apply following patch to kernel and mount bad ubifs image, let's try to
>find more information after a full volume scanning:
I flashed again the corrupted image, the same error happens with "find /cfg",
but also I get a couple ecc errors afterwards for some reason.
Here's some excerpts related to ino 3917759 from the full volume scan
```
---------- Start scan LEB 911 (main_first 11) ----------
data 3917705 found 0 0-3792
padding bytes 3792:4096
data 3917705 found 0 4096-4408
padding bytes 4408:6144
data 3917707 found 0 6144-6608
padding bytes 6608:8192
data 3917708 found 0 8192-8360
padding bytes 8360:10240
data 3917709 found 0 10240-10824
padding bytes 10824:12288
data 3917710 found 0 12288-12752
padding bytes 12752:14336
data 3917711 found 0 14336-14816
padding bytes 14816:16384
data 3917712 found 0 16384-17192
padding bytes 17192:18432
data 3917714 found 0 18432-19496
padding bytes 19496:20480
data 3917715 found 0 20480-20648
padding bytes 20648:22528
data 3917716 found 0 22528-23000
padding bytes 23000:24576
data 3917717 found 0 24576-25056
padding bytes 25056:26624
data 3917718 found 0 26624-27112
padding bytes 27112:28672
data 3917719 found 0 28672-30768
padding bytes 30768:32768
data 3917721 found 0 32768-32936
padding bytes 32936:34816
data 3917722 found 0 34816-35288
padding bytes 35288:36864
data 3917723 found 0 36864-37344
padding bytes 37344:38912
data 3917724 found 0 38912-39400
padding bytes 39400:40960
data 3917725 found 0 40960-42024
padding bytes 42024:43008
data 3917726 found 0 43008-45144
padding bytes 45144:47104
data 3917728 found 0 47104-48200
padding bytes 48200:49152
data 3917729 found 0 49152-49632
padding bytes 49632:51200
data 3917731 found 0 51200-51368
padding bytes 51368:53248
data 3917732 found 0 53248-54336
padding bytes 54336:55296
data 3917733 found 0 55296-55784
padding bytes 55784:57344
data 3917734 found 0 57344-57840
padding bytes 57840:59392
data 3917735 found 0 59392-59552
padding bytes 59552:61440
data 3917736 found 0 61440-61920
padding bytes 61920:63488
data 3917738 found 0 63488-63968
padding bytes 63968:65536
data 3917739 found 0 65536-66680
padding bytes 66680:67584
data 3917740 found 0 67584-67752
padding bytes 67752:69632
data 3917741 found 0 69632-70112
padding bytes 70112:71680
data 3917742 found 0 71680-72176
padding bytes 72176:73728
data 3917743 found 0 73728-74136
padding bytes 74136:75776
data 3917745 found 0 75776-75944
padding bytes 75944:77824
data 3917746 found 0 77824-78888
padding bytes 78888:79872
data 3917747 found 0 79872-80328
padding bytes 80328:81920
data 3917748 found 0 81920-82384
padding bytes 82384:83968
data 3917749 found 0 83968-84440
padding bytes 84440:86016
data 3917750 found 0 86016-86728
padding bytes 86728:88064
data 3917698 found 0 88064-88264
padding bytes 88264:90112
data 3917753 found 1 90112-90592
padding bytes 90592:92160
data 3917755 found 1 92160-92640
padding bytes 92640:94208
data 3917756 found 1 94208-94688
padding bytes 94688:96256
data 3917757 found 1 96256-96744
padding bytes 96744:98304
data 3917758 found 1 98304-98792
padding bytes 98792:100352
data 3917759 found 0 100352-101792
padding bytes 101792:102400
data 3917760 found 1 102400-103464
padding bytes 103464:104448
data 3917762 found 1 104448-104824
padding bytes 104824:106496
data 3917763 found 1 106496-106664
padding bytes 106664:108544
data 3917761 found 1 108544-112688
padding bytes 112688:114688
data 3917761 found 1 114688-117768
padding bytes 117768:118784
data 3917767 found 1 118784-120224
padding bytes 120224:120832
data 3917768 found 1 120832-121320
padding bytes 121320:122880
data 3917769 found 1 122880-123360
padding bytes 123360:124928
ino 69 found 0 124928-125088
padding bytes 125088:126976
---------- Start scan LEB 912 (main_first 11) ----------
```
[...]
```
---------- Start scan LEB 914 (main_first 11) ----------
ino 3917758 found 0 0-160
padding bytes 160:2048
dent 13819078852795695104(ne_config.xml.gz) found 1 2048-2128
ino 3917759 found 0 2128-2288
ino 3917754 found 0 2288-2448
padding bytes 2448:4096
ino 3917758 found 1 4096-4256
padding bytes 4256:6144
ino 3917759 found 0 6144-6304
padding bytes 6304:8192
```
There's also a second dent found in the tree for ne_config.xml.gz (there's
another file named the same elsewhere), probably irrelevant:
```
padding bytes 29056:30720
dent 14323482011061190656(ne) found 1 30720-30784
ino 3917766 found 0 30784-30944
ino 3917765 found 0 30944-31104
padding bytes 31104:32768
dent 14395539605099118592(ne_config.xml.gz) found 1 32768-32848
ino 3917767 found 0 32848-33008
ino 3917766 found 0 33008-33168
padding bytes 33168:34816
ino 3917767 found 0 34816-34976
padding bytes 34976:36864
```
The full logs are roughly 120 thousand lines, let me know if you need me to
search for something or would like them filtered differently.
Best Regards,
Tomas
More information about the linux-mtd
mailing list