Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp206582pxt; Wed, 11 Aug 2021 18:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIO9b2e9Z8dZRQqGQ6m3wwbo7qFW7/8mViLUsLab3DTTRWasXTVM8CqVVl6j6RAkmLBY1H X-Received: by 2002:a17:907:1048:: with SMTP id oy8mr1341004ejb.382.1628732942522; Wed, 11 Aug 2021 18:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628732942; cv=none; d=google.com; s=arc-20160816; b=yNdJgHT6OQcgGweFQGlHo84iDFfIz0Wsu4f493/UIH0EO7sgBJGwCAJ9ochBKm1ZA6 G5KJc7cnWu8d5qwOBk6XZsJWFneQpRbEbOuB1Wan0xMqq8KwYcFQaHUUOm2qKiT6TWat tr9LAJmyZzwz0WU2SVFdVdVUJcXLtSQs+q2ihc0Ju2z3BZCB7+Ugen+wdEmrcHxFBI3o 1J/rJrcGEoh0wf0rAsWwJhGBN76e/YUOyW0jyUNaMQUkoIj4gAmcP8L/rK2hj7AJt1nx wwY/+ZNEjMWXIPz5rbChnLrGNJAFXKEfPNu+i+2/wmlLLMrKjmO0sEgngYR8lZvWh/O0 ooMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=I9drUWprpizqc04oZLDcbbvr04UcpePzTV8+AFv5W1Y=; b=VonvPtS01dTYacGCQYmKhjy43wzCIOgzwjRQ+Ca4fADV9WfhFK4XSVN3b01AM3VEP6 TOXQs6hpj6ZNZtn4YKgDmgkr2INg/un2s67KkKTYoCLGEW5pZ4JgCj/WDiVC7ETOW8sM 6MD67Vm20c+AHD1qYdNXFP1Bl9B+1K7OB3TUYISz3auTE9Rwjldd15L6OM6gk0CzL/Cv EFrwRJuSy1B2h8tAku4qCXv6pVgZd3yECWtf7FnS0PBuCkNfh0TD6XH/UuIAuwr6s7iz jNRmumpGMy+xOY1aGswZY4p1rrd6G00kMUpd9fIMY/1uwxg0zXxdjsBQ4CeKgv15N1zA dANg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JwXdUi29; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si867476ejt.594.2021.08.11.18.48.31; Wed, 11 Aug 2021 18:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JwXdUi29; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbhHLBsJ (ORCPT + 99 others); Wed, 11 Aug 2021 21:48:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57615 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233440AbhHLBsJ (ORCPT ); Wed, 11 Aug 2021 21:48:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628732864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I9drUWprpizqc04oZLDcbbvr04UcpePzTV8+AFv5W1Y=; b=JwXdUi29DkidKH1UlGvt+ayKutMKy6FlPU/5DZyDTLdeEgFJ0YLXuWFWLZCv/WTIdJO6Cn 9GNQH4ikFSAnIbe8zlREiw+OlXHSagSTfF4PwxP1hCV8sm461BsQFNv3FWIRGC0jXezdGE U//XJzfXBHRit6T9zWG3dqvklzq67zI= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-549-XgwC8DZcO_ui_odn7hMWDg-1; Wed, 11 Aug 2021 21:47:43 -0400 X-MC-Unique: XgwC8DZcO_ui_odn7hMWDg-1 Received: by mail-pj1-f69.google.com with SMTP id r13-20020a17090a4dcdb0290176dc35536aso2978249pjl.8 for ; Wed, 11 Aug 2021 18:47:43 -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:cc; bh=I9drUWprpizqc04oZLDcbbvr04UcpePzTV8+AFv5W1Y=; b=Q40Ftc0JNGmPmuNQK7u6h8N5uDT8Ryn5judrwLpWEt4S9q1/0C2TqnxZ7as4vhhE69 z7BAzzGw4Ef9+zWl7UCAx1W5TUu6WIAxY/ADIlPpLRLbIfYkaDxD4fbSXHk9t3kIV2lj nTHrggWamAs0j3wkm5y34SDc/CKHpFCJKyZXfOVJcj32+WzwSmq8A/Fo52jQgMV2yeYg BL4Kw+QLgp9QWZdPK9m/KHba80ewnrv0z+yODKf3pCodvFDr/8e0l89sjVp7fWVrsWzV s+19XiSruykWTbOQ6VIsaMFqRcNrV9MnDLNQFEmWCNhRUBgf/lMPM/o5o81Wo7d8pN8z dYpg== X-Gm-Message-State: AOAM533f/Q6FbLn5ui0rmM7UbQRYPXO3YJvqmZ064WK1oFQfr2BpC8T4 9qyRK5bt5Ix4q3cRUZuAsUGUl7oVufh16g+KY/LYJqP195p2V3VYJgv5qhG39B7w1cEjQFLWcCI WrFbr1KsxOMtW24ygzvN3M1gLNVhhhpOKbjxCFA== X-Received: by 2002:a17:902:bd43:b029:12c:def4:588e with SMTP id b3-20020a170902bd43b029012cdef4588emr1440046plx.25.1628732862169; Wed, 11 Aug 2021 18:47:42 -0700 (PDT) X-Received: by 2002:a17:902:bd43:b029:12c:def4:588e with SMTP id b3-20020a170902bd43b029012cdef4588emr1440039plx.25.1628732861943; Wed, 11 Aug 2021 18:47:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Boyang Xue Date: Thu, 12 Aug 2021 09:47:30 +0800 Message-ID: Subject: Re: [kernel-5.11 regression] tune2fs fails after shutdown To: linux-ext4@vger.kernel.org, Jan Kara Cc: tytso@mit.edu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org (Adding the author of the commits) Hi Jan, The commit 81414b4dd48 ext4: remove redundant sb checksum recomputation breaks the original reproducer of 4274f516d4bc ext4: recalucate superblock checksum after updating free blocks/inodes I'm wondering is it expected please? Thanks, Boyang On Thu, Aug 5, 2021 at 10:35 AM Boyang Xue wrote: > > Hi, > > kernel commit > > 4274f516d4bc ext4: recalucate superblock checksum after updating free > blocks/inodes > > had been reverted by > > 81414b4dd48 ext4: remove redundant sb checksum recomputation > > since kernel-5.11-rc1. As a result, the original reproducer fails again. > > Reproducer: > ``` > mkdir mntpt > fallocate -l 256M mntpt.img > mkfs.ext4 -Fq -t ext4 mntpt.img 128M > LPDEV=$(losetup -f --show mntpt.img) > mount "$LPDEV" mntpt > cp /proc/version mntpt/ > ./godown mntpt # godown program attached. > umount mntpt > mount "$LPDEV" mntpt > tune2fs -l "$LPDEV" > ``` > > tune2fs fails with > ``` > tune2fs 1.46.2 (28-Feb-2021) > tune2fs: Superblock checksum does not match superblock while trying to > open /dev/loop0 > Couldn't find valid filesystem superblock. > ``` > > Tested on e2fsprogs-1.46.2 + kernel-5.14.0-0.rc3.29. I think it's a > regression. If this is the case, can we fix it again please? > > Thanks, > Boyang