Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp111426lqq; Wed, 12 Jun 2024 19:09:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvFYRwbDUwv8FXVl4Y+QtrFI5QHTYAlXnLOE9jyatsVsXTk1zVXgm2Chgh9aKoHp3oDdKBaEb5oI3LryWzmu3WYGSUi1j5z8kRGHttaw== X-Google-Smtp-Source: AGHT+IH0b+5+R9l+TlJRgRJ7xG719uItGac2R5QjoVKTNSSimByr+qwT+GMqp7ZIzW/gKU5MIO58 X-Received: by 2002:a50:c05c:0:b0:57c:60fe:96dc with SMTP id 4fb4d7f45d1cf-57caaacb2aamr3080031a12.19.1718244596160; Wed, 12 Jun 2024 19:09:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718244596; cv=pass; d=google.com; s=arc-20160816; b=wUuErcCsH5qB+Zu12BFGmq0oMcHfhaEDMNZuMpOVjIcu8h0nliAK0UWJAebfJiBQjj 4XU41GvEJs4rePlDSZW+T3HTvJxHie3M0pHBhjGcxDB9ZQfw55Zyhb4UsTcKxCqoMzu4 jGqHVTv1gddbx7zzser3Okqb078KMagoGqthF+kvBhkbiFKVUVeSeHrAUVP/UqibLKvh yU8ppYQM3Z4z/FXUmg4bF18vXTeadDvqZ3xkx5ZAwD62odWBGoPmAYhQDxMF/mw+tbCJ 84k8HUWhsersusDHSePGaPqbAz6qydkmtyx2QzLchaHHMZmZ46lOtjDqwUh6SgQaNGEn c8+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=9GUnxA3mZpdVK2UVL6J6C2KdIDxF/LIJ6vY9SPblFaA=; fh=px2vrGrEdx/9krBrpRbnSwHE/IqgLTwiOqCxQf6yvM0=; b=wVeAkbKoaQs2UznWZrVooN06S8tUpkzPfAttam+8lsx9l0j2htBAYDqnrw+vgwipWj lavkszjX/5Z1EbiDdNeZDAlqmYUno6oIUnqHJRBfAAGK3HBbgqMI0e8e0Fpbunzb6Q+h qEXT4/mQS14kcQ7KvZ45o6bsFrruMmmRqCHKi0h6krMX5ZHDYffu5sHXAMTjjXRGTBvI 0vbN0isWs21Rhu1MD936vekFZk4abqsKqxQ/9MO9D5gjew6D7ypec1WR/U4biqcTMPst Yubst/lX8fwswGq66cczV19c57UyEvFba1vfBphquWzA1hdDRyd7ZY3rAwKUlAgShGga OPSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-ext4+bounces-2870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb742cb8asi197679a12.236.2024.06.12.19.09.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 19:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-ext4+bounces-2870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DA9221F226AD for ; Thu, 13 Jun 2024 02:09:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F36429CFE; Thu, 13 Jun 2024 02:09:50 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A698510A0E for ; Thu, 13 Jun 2024 02:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718244590; cv=none; b=lk7uFm0iAh8hO3js8mks6ngsyCbIUSnNEhvBKScU81GlB6CiycMwkefHVjAC4jHWJWgwjZk1T4pS8RtQ10ai2vKimyEQa3L1F5JkGNv78HXJzOBhWQdHaOhLZNyjomTcyE4ffS5WPuSldr5C1YFlBSXdlQXCUZToJoZCYKkIXSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718244590; c=relaxed/simple; bh=BQ95PuknC4GlVPtxWcrk7r89yfPzQ0wXx0gTyMW/gTc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ZLOAQdrw7QjO7vMtVvWu+I12WkQicOic/Kkshm5HRnEAGMMtG9BUs85G52IVwT0NhHKkvWOs2Mtjo4ZCT02owOwm2ziujLRafMkFTjEDw1Om5d+5OWn3I2ye8r+pcOxeoZ5C2XOXKqI7I3IH04Cv20C/iJfMdRtWLNYqEdHXYWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4W05Qs213mz1HDmc; Thu, 13 Jun 2024 10:07:49 +0800 (CST) Received: from dggpeml100021.china.huawei.com (unknown [7.185.36.148]) by mail.maildlp.com (Postfix) with ESMTPS id 0A1871A0188; Thu, 13 Jun 2024 10:09:45 +0800 (CST) Received: from [10.174.177.174] (10.174.177.174) by dggpeml100021.china.huawei.com (7.185.36.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 13 Jun 2024 10:09:44 +0800 Message-ID: <45251246-e24b-4ace-9b45-2efad65e8eb5@huawei.com> Date: Thu, 13 Jun 2024 10:09:44 +0800 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ext4/059: disable block_validity checks when mounting a corrupted file system To: , Theodore Ts'o CC: Ext4 Developers List , , =?UTF-8?B?5p2o5LqM5Z2k?= References: <20230823145621.3680601-1-tytso@mit.edu> Content-Language: en-US From: Baokun Li In-Reply-To: <20230823145621.3680601-1-tytso@mit.edu> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml100021.china.huawei.com (7.185.36.148) Hi Zorro, Could you pick up this patch? This test case has been failing in the mainline for a while now. Thanks, Baokun On 2023/8/23 22:56, Theodore Ts'o wrote: > Kernels with the commit "ext4: add correct group descriptors and > reserved GDT blocks to system zone" will refuse to mount the corrupted > file system constructed by this test. So in order to perform the > test, we need to disable the block_validity checks. > > Signed-off-by: Theodore Ts'o Looks good to me, thanks for the patch! Reviewed-and-tested-by: Baokun Li > --- > tests/ext4/059 | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/tests/ext4/059 b/tests/ext4/059 > index 4230bde92..e4af77f1e 100755 > --- a/tests/ext4/059 > +++ b/tests/ext4/059 > @@ -31,6 +31,11 @@ $DEBUGFS_PROG -w -R "set_super_value s_reserved_gdt_blocks 100" $SCRATCH_DEV \ > $DEBUGFS_PROG -R "show_super_stats -h" $SCRATCH_DEV 2>/dev/null | \ > grep "Reserved GDT blocks" > > +# Kernels with the commit "ext4: add correct group descriptors and > +# reserved GDT blocks to system zone" will refuse to mount the file > +# system due to block_validity checks; so disable block_validity. > +MOUNT_OPTIONS="$MOUNT_OPTIONS -o noblock_validity" > + > _scratch_mount > > # Expect no crash from this resize operation -- With Best Regards, Baokun Li