UBIFS-AUTH panic after reboot

Richard Weinberger richard.weinberger at gmail.com
Sat Sep 19 16:54:17 EDT 2020


On Sat, Sep 19, 2020 at 10:02 PM Richard Weinberger
<richard.weinberger at gmail.com> wrote:
>
> 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?

One more question, when you mount ubifs successuflly, you see a line like:
UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID
942AA41D-81B8-4F57-9CE6-0548D0D0DCB0, big LPT model

Does it print big LPT or small LPT model?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list