Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbdG0T3D (ORCPT ); Thu, 27 Jul 2017 15:29:03 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:34669 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbdG0T3B (ORCPT ); Thu, 27 Jul 2017 15:29:01 -0400 MIME-Version: 1.0 X-Originating-IP: [176.63.54.97] In-Reply-To: References: From: Miklos Szeredi Date: Thu, 27 Jul 2017 21:28:59 +0200 Message-ID: Subject: Re: 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, lkml , "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: 1488 Lines: 40 On Thu, Jul 27, 2017 at 8:20 PM, Tahsin Erdogan wrote: > Hi Miklos, > I made a first attempt to reproduce the failure but did not get lucky. > >> Inode 3093, i_blocks is 16, should be 8. Fix? yes > Does this inode correspond to foo, bar or a preexisting file? > > Do you mind sharing the output of the following command? > debugfs -R "stat <3093>" /dev/${ext4_dev} Inode: 17093 Type: regular Mode: 0644 Flags: 0x80000 Generation: 2184376062 Version: 0x00000000:00000001 User: 0 Group: 0 Project: 0 Size: 8 File ACL: 65561 Directory ACL: 0 Links: 2 Blockcount: 16 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x597a3e23:7d3fc138 -- Thu Jul 27 19:25:23 2017 atime: 0x597a3dfc:a80bc138 -- Thu Jul 27 19:24:44 2017 mtime: 0x597a3e23:7d3fc138 -- Thu Jul 27 19:25:23 2017 crtime: 0x597a3e23:787b0938 -- Thu Jul 27 19:25:23 2017 Size of extra inode fields: 32 EXTENTS: (0):142340 Resulting fsck output: Pass 1: Checking inodes, blocks, and sizes Extended attribute in inode 17093 has a hash (2257320705) which is invalid Clear? yes Inode 17093, i_blocks is 16, should be 8. Fix? yes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: -65561 Fix? yes Free blocks count wrong for group #2 (13797, counted=13798). Fix? yes Free blocks count wrong (86361, counted=86362). Fix? yes