linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xattr hash error in 4.13-rc with overlayfs over ext4
@ 2017-07-27 12:37 Miklos Szeredi
  2017-07-27 18:20 ` Tahsin Erdogan
  0 siblings, 1 reply; 10+ messages in thread
From: Miklos Szeredi @ 2017-07-27 12:37 UTC (permalink / raw)
  To: Tahsin Erdogan
  Cc: Theodore Ts'o, linux-ext4@vger.kernel.org, linux-fsdevel,
	linux-kernel, linux-unionfs@vger.kernel.org

I get the following error on fsck:

Pass 1: Checking inodes, blocks, and sizes
Extended attribute in inode 3093 has a hash (2257320705) which is invalid
Clear<y>? yes
Inode 3093, i_blocks is 16, should be 8.  Fix<y>? yes

To reproduce:

[mount ext4 image]
mkdir xattrhashtest
cd xattrhashtest/
mkdir upper lower work mnt
cd lower/
echo foo > bar
ln bar baz
mount -t overlay overlay -olowerdir=lower,upperdir=upper,workdir=work mnt
cd mnt/
echo xxx >> bar
[umount and fsck]

Reverting commit daf8328172df ("ext4: eliminate xattr entry e_hash
recalculation for removes") fixes it.

Might be an ext4 or overlayfs bug.  Let me know what you think.

Thanks,
Miklos

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-08-06 20:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 12:37 xattr hash error in 4.13-rc with overlayfs over ext4 Miklos Szeredi
2017-07-27 18:20 ` Tahsin Erdogan
2017-07-27 19:28   ` Miklos Szeredi
2017-07-27 19:36     ` Miklos Szeredi
2017-07-27 20:54       ` Tahsin Erdogan
2017-07-31 16:08         ` Miklos Szeredi
2017-08-01 10:34           ` Amir Goldstein
2017-08-03 11:10             ` Miklos Szeredi
2017-08-06 12:47               ` zhangyi (F)
2017-08-06 20:05                 ` Tahsin Erdogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).