UBIFS-AUTH panic after reboot

Richard Weinberger richard.weinberger at gmail.com
Sat Sep 19 16:02:01 EDT 2020


On Thu, Sep 17, 2020 at 4:48 PM Kristof Havasi <havasiefr at gmail.com> wrote:
> Without "chk_lprops" the panic is only visible after the restart, but if it was
> enabled the following assertion was triggering an immediate panic:
> (Should I "reformat" long log lines in the future or leave them verbatim?)
>
> UBIFS error (ubi0:4 pid 649): ubifs_assert_failed: UBIFS assert
> failed: (val >> nrbits) == 0 || nrbits == 32, in fs/ubifs/lpt.c:231
> UBIFS warning (ubi0:4 pid 649): ubifs_ro_mode.part.1: switched to

Hm, the number of bits we ask to pack is smaller than val.
Maybe we have some subtle bug where a node length is not correctly
calculated.

>From your other mail:
> >         0: free 0 dirty 255408 flags 1 lnum 0

Dirty is larger than LEB size (253952). Must not happen.

> >         1: free 0 dirty 190192 flags 1 lnum 0
> >         2: free 0 dirty 255360 flags 1 lnum 0

Same.

> >         3: free 0 dirty 248896 flags 1 lnum 0

Does the problem also trigger with encryption disabled? So just with
authentication?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list