Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2077521ybi; Mon, 1 Jul 2019 05:51:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyasuV2wcG3/MvQ5+J+Oa8s2dRQIVLyymF6mm952DNspojdiByXHo4H1WBfrxq0NC4Aho5i X-Received: by 2002:a17:902:968d:: with SMTP id n13mr29230472plp.257.1561985475463; Mon, 01 Jul 2019 05:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561985475; cv=none; d=google.com; s=arc-20160816; b=s4k06SOcbnlogaurv//xkfbEkR6EDfzTLCwsNQvbUfOKqU+iU9WMkzT7QnyNHrGW2U xEn9iS0imxfANkxHSE6ecYyWyAiM9C+I214qaVS03piv0LRv8UnhoGdWOZ5LntejuvjY +viw6SCWucX2CjfQpqF+jorD/T1ezBgbkY5Rn67arz20mTUbROCzRrVtpOI/bzCnlV4K G+rbE/1p2jkSWsj+aisBcBg0NFbLi/H+xx2MVEtBoIVo3lu1eiALD8CabdoPyy4v88cs yWHxBQcKHuLmQRWoFI7U7K+FXtvGIL1KtK+4gqzYLz69JiQAaWktRQWxt4Z4YB1r7PXx uOVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=0ZbxY3O8o2NP9TexAMOwwfSs+xrQAQGyizd11XhK8Uk=; b=ePhVkdeghUTa6BbR9Q8/lB13XioIu5gUBA0KkhgwtiYj94kahH0TvaA6Xjw6+yVjv1 l1HyE44izeXpey0msL0y25YdZbJowNFfnss6JB5w0GCAMIOYkl/jaoCd3NBf+0Twawoc lV5Bqm6ObZ8mLReixj3s/HTG6lg3WDjSWv+W6mSfbHxsA5qdssATMhhc5KdREJKvLeMR cawSX5/eQS35ikZYwOvwHS+51t6jUD+jrCDn9iF5cKE34l66mwYo+ypozaKxgkU+pGFk THbGHxpvcWsgWlrXdkNzT1HE56kPZ0oNDna8QHEpMnJC/5Fm2g+6E8uYGbqLcmIMO377 4HkA== 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 r8si9934065pls.372.2019.07.01.05.50.55; Mon, 01 Jul 2019 05:51:15 -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 S1727049AbfGAMn0 (ORCPT + 99 others); Mon, 1 Jul 2019 08:43:26 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:33403 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbfGAMn0 (ORCPT ); Mon, 1 Jul 2019 08:43:26 -0400 Received: by mail-oi1-f195.google.com with SMTP id u15so9697678oiv.0; Mon, 01 Jul 2019 05:43:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0ZbxY3O8o2NP9TexAMOwwfSs+xrQAQGyizd11XhK8Uk=; b=TIgRyR0LA86uJoZTcDD5dBk/CNS5MM8HUecDdf9mvRhh+N3CUyuJnM6lXDyGzupcbI 29DXSpm6yE9T7vd1gO8F27XB7FcBJO7NGu8IljyJo2+nPMJupYTkJDpjoplL1xpn1dkE WiIxzQBUHGgOB4VjzzNlVxvpbEa07dWEozIZVBRx/dhP6NKpsR+2mSYYE3EvttTtX7Da 68AucV46Lm4FkNK7u1+gxf63CzA6HEsfzVHwk45gUV5buXuNJiR/uCklzvZcyZtewzwm 0yqitgYS7FIDBebnOyncR7wMESum1Ox5s484yb6M2vgTS4H0UkqNTuGdKSUWitOylLT/ DqVQ== X-Gm-Message-State: APjAAAXGFha8aLUadTfGmb2nHg3CpYOtO5U0ZvbneQmjXvI12Jpo8gOK QwndgKV5/zSY6So3cP1nqHbYPQwmsuEK+/5GgJ4= X-Received: by 2002:aca:bd43:: with SMTP id n64mr6147488oif.148.1561985005437; Mon, 01 Jul 2019 05:43:25 -0700 (PDT) MIME-Version: 1.0 References: <48BA4A6E-5E2A-478E-A96E-A31FA959964C@internode.on.net> <20190511220659.GB8507@mit.edu> <09D87554-6795-4AEA-B8D0-FEBCB45673A9@internode.on.net> <850EDDE2-5B82-4354-AF1C-A2D0B8571093@internode.on.net> <17C30FA3-1AB3-4DAD-9B86-9FA9088F11C9@internode.on.net> <20190515045717.GB5394@mit.edu> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 1 Jul 2019 14:43:14 +0200 Message-ID: Subject: Re: ext3/ext4 filesystem corruption under post 5.1.0 kernels To: "Theodore Ts'o" , Arthur Marsh , Richard Weinberger , LKML , Ext4 Developers List Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Ted, On Fri, May 17, 2019 at 6:44 PM Geert Uytterhoeven wrote: > On Wed, May 15, 2019 at 6:57 AM Theodore Ts'o wrote: > > Ah, I think I see the problem. Sorry, this one was my fault. Does > > this fix things for you? > > Thanks! > Sorry for missing this patch in the thread before. > > > From 0c72924ef346d54e8627440e6d71257aa5b56105 Mon Sep 17 00:00:00 2001 > > From: Theodore Ts'o > > Date: Wed, 15 May 2019 00:51:19 -0400 > > Subject: [PATCH] ext4: fix block validity checks for journal inodes using indirect blocks > > > > Commit 345c0dbf3a30 ("ext4: protect journal inode's blocks using > > block_validity") failed to add an exception for the journal inode in > > ext4_check_blockref(), which is the function used by ext4_get_branch() > > for indirect blocks. This caused attempts to read from the ext3-style > > journals to fail with: > > > > [ 848.968550] EXT4-fs error (device sdb7): ext4_get_branch:171: inode #8: block 30343695: comm jbd2/sdb7-8: invalid block > > > > Fix this by adding the missing exception check. > > > > Fixes: 345c0dbf3a30 ("ext4: protect journal inode's blocks using block_validity") > > Reported-by: Arthur Marsh > > Signed-off-by: Theodore Ts'o > > Intermittent issue no more seen in 10 test boots, so > Tested-by: Geert Uytterhoeven Despite this fix having been applied upstream, the kernel prints from time to time: EXT4-fs (sda1): error count since last fsck: 5 EXT4-fs (sda1): initial error at time 1557931133: ext4_get_branch:171: inode 1980: block 27550 EXT4-fs (sda1): last error at time 1558114349: ext4_get_branch:171: inode 1980: block 27550 This happens even after a manual run of "e2fsck -f" (while it's mounted RO), which reports a clean file system. The inode and block numbers match the numbers printed due to the previous bug. Do you have an idea what's wrong? Note that I run a very old version of e2fsck (from a decade ago). Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds