"UBIFS error (pid 396): dbg_check_space_info: free space changed from" + ecryptfs

Oleksij Rempel ore at pengutronix.de
Wed Aug 23 06:57:03 PDT 2017


On Fri, Aug 18, 2017 at 12:59:02PM +0200, Richard Weinberger wrote:
> On Sun, Aug 6, 2017 at 11:25 AM, Richard Weinberger <richard at nod.at> wrote:
> > Oleksij,
> >
> > Am 02.08.2017 um 16:06 schrieb Oleksij Rempel:
> >> Hallo all,
> >>
> >> Initial issue was detected on kernel 4.0.9 and is still reproducible
> >> with same kernel version + most of back ported ubi/ubifs patches till
> >> the kernel v4.12. UBIfs encryption patches was not backported.
> >>
> >> To reproduce it I needed:
> >> - system with fresh flashed ubi image.
> >> - on first start it should run following script:
> >>> mount -o remount,rw /
> >>> mount -t ecryptfs ... /dst
> >>> ... do some work and mv some files to /dst
> >>> umount /dst
> >>> mount -o remount,ro / <--  UBIFS error (pid 396): dbg_check_space_info:
> >
> > Does this also happen on mainline?
> > Also please try in nandsim to rule out chip specific issues.
> >
> > Can you please share the ecryptfs configuration?
> > i.e. are file names encrypted or not?

File name should be encrypted. The mount option is:
mount -t ecryptfs -o
ecryptfs_sig=${SIG},ecryptfs_fnek_sig=${SIG},ecryptfs_unlink_sigs,ecryptfs_key_bytes=32,ecryptfs_cipher=aes
/$dst /$dst

I'll try to reproduce it tomorrow with mainline kernel.

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-mtd mailing list