[PATCH] ubifs: mount fails after power cycle

Heiko Schocher hs at denx.de
Wed Jul 31 05:50:11 CEST 2024


Hello Ravi,

On 30.07.24 11:14, Ravi Minnikanti wrote:
> 
> When kernel uses file system encryption, fscrypt on UBIFS v5,
> after a hard power cycle UBIFS journal replay fails which results in mount failure.
> 
> Failure logs:
> UBIFS: recovery needed
> UBIFS error (pid 0): ubifs_validate_entry: bad directory entry node
> UBIFS error (pid 0): replay_bud: bad node is at LEB 890:24576
> UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'ubi0:rootfs' errno=-22!
> 
> This change is ported from kernel:
> commit id: 304790c038bc4af4f19774705409db27eafb09fc
> 
> Kernel commit description:
>      Kernel commit description:
>      ubifs: Relax checks in ubifs_validate_entry()
> 
>      With encrypted filenames we store raw binary data, doing
>      string tests is no longer possible.
> 
> ~
> 
> Change-Id: I487ae4d172e228e72ac31d158d668f209142bce0
> Signed-off-by: rminnikanti <rminnikanti at marvell.com>
> ---
>   fs/ubifs/replay.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Good catch, thanks!

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list