Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp388836yba; Thu, 16 May 2019 02:31:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM5xJsWNONFWQVb8wH546GF6mIxfl25dQ1q7DsRjEPurVFlMjqN9x1xAwbivC8DMoYgUQA X-Received: by 2002:aa7:9577:: with SMTP id x23mr52634141pfq.164.1557999063549; Thu, 16 May 2019 02:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557999063; cv=none; d=google.com; s=arc-20160816; b=abvZs68NpCCTqMd3t5+3FK+CFf2OuGvR7Vmv6/rJC4+zmJWSFNBaz8bRYZ1sQvrtIy XNcMurxtALdG/h5NnR1nBghGU314uSfD+zIh+CoYZxAVGDVBA9l7KCLIZmFoUDw8cCH5 PtZOWtfCrwL963CFLyGrNL/Cbc0/zVChVt32CP92ca9kRcrhQd8palCZPRL/eqoVU0pA g2OIq+vKaxb+RZm/Zyzys6Y4MYitWsOd2jBdv+g4vJcZdJlPSCd+2PZX1k1WLnJLVCQK 3MjM7dQ/iTncDejhObKJNcuNIhTeqoRCyrTpr9Uebw+SR1T1vG+O2748OpFxh/lJshTD dBRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fPReBJ6sMju8nVhQahY68GRk20eI2J3QshchoqnVUGQ=; b=P9yjPppSOLk+tFoALLVt/vnqQWCfzW0j9YvqQRfw8SsIaLiUHgQmEKXhLhJTWUmiG6 E+JU9Uf6+QnmMnxunI1AGsamf+hleHu6Cg6aG9moiCEbMFaa3Kmi2bCcQa5fldzbnE6g 05aNSJoujfNqvypJAyBgfMh/GaytznCI2DvQak/bb6jGvFZyyhne52Nar8IlEWRx1j8P hzrJfVBTTqRfR4yDLomj4BkQ0ETCMbTsbI5GSmZEAZU7tzz6sVMLXkYbc3tKxOo/eTZ3 uXZc8Nu7P4kyQO2ls5GsvAycYav13WCJrhs6yhflXQfe1+VWz34i+51sMOBoKrBkAO8g kzUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si4279666plp.306.2019.05.16.02.30.40; Thu, 16 May 2019 02:31:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726537AbfEPJaY (ORCPT + 99 others); Thu, 16 May 2019 05:30:24 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:51817 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726374AbfEPJaY (ORCPT ); Thu, 16 May 2019 05:30:24 -0400 Received: from callcc.thunk.org (168-215-239-3.static.ctl.one [168.215.239.3] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x4G9U8Rv029692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2019 05:30:12 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 3F4BD420024; Thu, 16 May 2019 05:28:48 -0400 (EDT) Date: Thu, 16 May 2019 05:28:48 -0400 From: "Theodore Ts'o" To: fdmanana@kernel.org Cc: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, jack@suse.cz, Filipe Manana Subject: Re: [PATCH] fstests: generic, fsync fuzz tester with fsstress Message-ID: <20190516092848.GA6975@mit.edu> References: <20190515150221.16647-1-fdmanana@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190515150221.16647-1-fdmanana@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, May 15, 2019 at 04:02:21PM +0100, fdmanana@kernel.org wrote: > From: Filipe Manana > > Run fsstress, fsync every file and directory, simulate a power failure and > then verify the all files and directories exist, with the same data and > metadata they had before the power failure. > > This tes has found already 2 bugs in btrfs, that caused mtime and ctime of > directories not being preserved after replaying the log/journal and loss > of a directory's attributes (such a UID and GID) after replaying the log. > The patches that fix the btrfs issues are titled: > > "Btrfs: fix wrong ctime and mtime of a directory after log replay" > "Btrfs: fix fsync not persisting changed attributes of a directory" > > Running this test 1000 times: > > - on ext4 it has resulted in about a dozen journal checksum errors (on a > 5.0 kernel) that resulted in failure to mount the filesystem after the > simulated power failure with dmflakey, which produces the following > error in dmesg/syslog: > > [Mon May 13 12:51:37 2019] JBD2: journal checksum error > [Mon May 13 12:51:37 2019] EXT4-fs (dm-0): error loading journal I'm curious what configuration you used when you ran the test. I tried to reproduce it, and had no luck: TESTRUNID: tytso-20190516042341 KERNEL: kernel 5.1.0-rc3-xfstests-00034-g0c72924ef346 #999 SMP Wed May 15 00:56:08 EDT 2019 x86_64 CMDLINE: -c 4k -C 1000 generic/547 CPUS: 2 MEM: 7680 ext4/4k: 1000 tests, 1855 seconds Totals: 1000 tests, 0 skipped, 0 failures, 0 errors, 1855s FSTESTPRJ: gce-xfstests FSTESTVER: blktests baccddc (Wed, 13 Mar 2019 00:06:50 -0700) FSTESTVER: fio fio-3.2 (Fri, 3 Nov 2017 15:23:49 -0600) FSTESTVER: fsverity bdebc45 (Wed, 5 Sep 2018 21:32:22 -0700) FSTESTVER: ima-evm-utils 0267fa1 (Mon, 3 Dec 2018 06:11:35 -0500) FSTESTVER: nvme-cli v1.7-35-g669d759 (Tue, 12 Mar 2019 11:22:16 -0600) FSTESTVER: quota 62661bd (Tue, 2 Apr 2019 17:04:37 +0200) FSTESTVER: stress-ng 7d0353cf (Sun, 20 Jan 2019 03:30:03 +0000) FSTESTVER: syzkaller bab43553 (Fri, 15 Mar 2019 09:08:49 +0100) FSTESTVER: xfsprogs v5.0.0 (Fri, 3 May 2019 12:14:36 -0500) FSTESTVER: xfstests-bld 9582562 (Sun, 12 May 2019 00:38:51 -0400) FSTESTVER: xfstests linux-v3.8-2390-g64233614 (Thu, 16 May 2019 00:12:52 -0400) FSTESTCFG: 4k FSTESTSET: generic/547 FSTESTOPT: count 1000 aex GCE ID: 8592267165157073108