From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E17E2C433B4 for ; Fri, 16 Apr 2021 10:19:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B39ED61166 for ; Fri, 16 Apr 2021 10:19:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240946AbhDPKTm (ORCPT ); Fri, 16 Apr 2021 06:19:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:52146 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238871AbhDPKTl (ORCPT ); Fri, 16 Apr 2021 06:19:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A77B2AFE8; Fri, 16 Apr 2021 10:19:15 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 163CDDA790; Fri, 16 Apr 2021 12:16:58 +0200 (CEST) Date: Fri, 16 Apr 2021 12:16:57 +0200 From: David Sterba To: Chris Murphy Cc: =?iso-8859-1?Q?Niccol=F2?= Belli , Btrfs BTRFS , Qu Wenruo , Josef Bacik Subject: Re: Dead fs on 2 Fedora systems: block=57084067840 write time tree block corruption detected Message-ID: <20210416101657.GX7604@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Chris Murphy , =?iso-8859-1?Q?Niccol=F2?= Belli , Btrfs BTRFS , Qu Wenruo , Josef Bacik References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Apr 15, 2021 at 11:06:32AM -0600, Chris Murphy wrote: > First computer/file system: > > (from the photo): > > [ 136.259984] BTRFS critical (device nvme0n1p8): corrupt leaf: root=257 > block=31259951104 slot=9 ino=3244515, name hash mismatch with key, have > 0x00000000F22F547D expect 0x0000000092294C62 > > This is not obviously a bit flip. I'm not sure what's going on here. Not a bitflip in the hash itself, but it's produced by hashing a file name, and if that had a bitflip then the hashes would differ. We've seen a that already, there could be traces of the bogus filename in logs. > Second computer/file system: > > [30177.298027] BTRFS critical (device nvme0n1p8): corrupt leaf: root=791 > block=57084067840 slot=64 ino=1537855, name hash mismatch with key, have > 0x00000000a461adfd expect 0x00000000a461adf5 Yes that's a bitflip in the hash, bin(0x00000000a461adfd^0x00000000a461adf5) = 0b1000