ubifs_decompress: cannot decompress 2293 bytes, compressor lzo, error -22
Scott Zhang
macromarship at gmail.com
Tue Apr 19 02:03:15 PDT 2022
Thanks.
I will do more tests.
I created ubifs by using buildroot with default options.
My nand drivers only pass biterrors test at the moment.
I am using default buildroot ubifs.img so I didn't test with others yet.
I will let you know after I finish the test.
On Tue, Apr 19, 2022 at 3:44 PM Richard Weinberger <richard at nod.at> wrote:
>
> ----- Ursprüngliche Mail -----
> > Did you run the various nand tests besides nandbiterrs? If they all
> > pass then maybe Richard will be more helpful than I am...
>
> [...]
>
> >>
> >> But I noticed the lzo decompress error is still there.
> >> I did following actions to test.
> >> /dev/mtd3 is mounted on /opt using ubifs.
> >> tar zcvf /root/opt.tar.gz /opt (done without error)
> >> format /opt.
> >> tar zxvf /root/opt.tar.gz -C /
>
> How did you create ubifs?
>
> Does your nand driver pass ubi tests?
>
> >> Then when I run php program which is in opt. I saw dmesg
> >> [ 118.850000] UBIFS error (ubi0:0 pid 1526): ubifs_decompress: cannot
> >> decompress 2293 bytes, compressor lzo, error -22
> >> [ 118.860000] UBIFS error (ubi0:0 pid 1526): do_readpage: bad data
> >> node (block 15, inode 396)
> >> [ 118.870000] UBIFS error (ubi0:0 pid 1526): do_readpage: cannot read
> >> page 15 of inode 396, error -22
> >> [ 118.880000] UBIFS error (ubi0:0 pid 1526): ubifs_decompress: cannot
> >> decompress 2293 bytes, compressor lzo, error -22
> >> [ 118.900000] UBIFS error (ubi0:0 pid 1526): do_readpage: bad data
> >> node (block 15, inode 396)
> >> [ 118.900000] UBIFS error (ubi0:0 pid 1526): do_readpage: cannot read
> >> page 15 of inode 396, error -22
> >> [ 118.920000] UBIFS error (ubi0:0 pid 1526): ubifs_decompress: cannot
> >> decompress 2293 bytes, compressor lzo, error -22
> >> [ 118.930000] UBIFS error (ubi0:0 pid 1526): do_readpage: bad data
> >> node (block 15, inode 396)
> >> [ 118.940000] UBIFS error (ubi0:0 pid 1526): do_readpage: cannot read
> >> page 15 of inode 396, error -22
> >>
> >> I removed the ubifs_dump_node call to avoid many dump text. The
> >> problem is when I run php program, lots of above logs dumped.
> >> But I don't see any effect of the above logs. the program seems running.
> >> Is there a possibility the underlying nand driver data is ok, but the
> >> lzo compress/decompress code has bugs ? I am running linux-5.4.y
> >> cloned from kernel.org.
>
> Does the problem only happen with lzo?
>
> Please re-test with no compressor enabled (compr=none) and also mount with
> the chk_data_crc mount option.
>
> Thanks,
> //richard
More information about the linux-mtd
mailing list