Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbdG0Mhl (ORCPT ); Thu, 27 Jul 2017 08:37:41 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:36139 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751616AbdG0Mhh (ORCPT ); Thu, 27 Jul 2017 08:37:37 -0400 MIME-Version: 1.0 X-Originating-IP: [176.63.54.97] From: Miklos Szeredi Date: Thu, 27 Jul 2017 14:37:35 +0200 Message-ID: Subject: xattr hash error in 4.13-rc with overlayfs over ext4 To: Tahsin Erdogan Cc: "Theodore Ts'o" , "linux-ext4@vger.kernel.org" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-unionfs@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 28 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? yes Inode 3093, i_blocks is 16, should be 8. Fix? 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