Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp882645pxk; Thu, 17 Sep 2020 20:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxczcEuNwfuIiE5fsqv5/GUv2HkBGmjQKEx6R6+OS/9+dTKIubLLXsh9c1rmGb1TCOLE2Dx X-Received: by 2002:aa7:da48:: with SMTP id w8mr35767221eds.165.1600398910623; Thu, 17 Sep 2020 20:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600398910; cv=none; d=google.com; s=arc-20160816; b=GUprAOz05c1nq80fuIthmCkvX/lt9PJXvI5jJdDIJL2F8ZX5sTPZncv1gVqU44j16L G7gvz3r4dPE4067NRqzPZoY3gM836NgLnR4sFzRnRHl+8vakiz/SxHTojaxDTJdnFqwJ nefeOa33NvhbgAQdi3tT/RfgmB92o225lq5c1iwXNLwVn/dWO/opDJwPJGM3/FuRZH3r V0VNrqslYVoSJf8UmPtR5rBvwpcOOf9WXWW27/tN1o3V9MKAZwVtXCvC70lrDSHVTDdC PnNBP/zHb2C6F5EXseBHYB6pOmXePFUHi+0gpBXj7kPP3hdR6gLq0GXxG1b5ndeI/D2c WOjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ms/ptj6XZJCmPueb+YU8qrGRZckP0M9bCZLn3juzJps=; b=zxDfecOQIzWZAn4ZDhEaL4txzJDGrmxbg8oEhbXqDWkueYaeEQGMh/74ZEvjUGfv6q XHqQH52h3eWP6FXMPSmgnGKlLn3UUaSUbDKc1zMx82/N6JdGlyhSx4jOCbR4pLqen2gw hpf02/wglQW8ELKf1Glw1OAa8haP5PBRA12q0wyYYkXc8vfM+5g/E19riJ/QL1JcN7lb WxUy4ez6JwKjk8dnBGs8HwncXZ8TjjAwnU+/SQs8EaTIaYxBjee5bseLpcTnQS+h8wD8 Cv4CBGoVWoTe9fb9qX9dVSdy6F/PRE288ZXYx9wcK8s0j6sHZcmLlZX1hDd0z9KXz86p u8Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IpNJ06cq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si1064990edy.407.2020.09.17.20.14.47; Thu, 17 Sep 2020 20:15:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=IpNJ06cq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726660AbgIRDN4 (ORCPT + 99 others); Thu, 17 Sep 2020 23:13:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:46502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbgIRCBv (ORCPT ); Thu, 17 Sep 2020 22:01:51 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6A4421D40; Fri, 18 Sep 2020 02:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600394511; bh=mjqv7wUdu/UKWJ1MhLtoyR1ppjj1NWDzdFz091vcFS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IpNJ06cqrkCndteN1qMkqDOU02fRbfxaR0u6kuCCFui960QhxCAliC3z4ZGeFrv8P J97hLB1pofCVi8BflIhQOAx1iLJf6IEJFb55XRyP50E1vAYw2VXfqXDOm7554aw+30 rWF3rTrCZcXJ7CagdAPu+RHGiy59K7kSiTxX74F8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jaegeuk Kim , Chao Yu , Sasha Levin , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH AUTOSEL 5.4 034/330] f2fs: avoid kernel panic on corruption test Date: Thu, 17 Sep 2020 21:56:14 -0400 Message-Id: <20200918020110.2063155-34-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200918020110.2063155-1-sashal@kernel.org> References: <20200918020110.2063155-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jaegeuk Kim [ Upstream commit bc005a4d5347da68e690f78d365d8927c87dc85a ] xfstests/generic/475 complains kernel warn/panic while testing corrupted disk. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/node.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index daeac4268c1ab..e6f1b1d0c3b68 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -2350,7 +2350,6 @@ static int __f2fs_build_free_nids(struct f2fs_sb_info *sbi, if (ret) { up_read(&nm_i->nat_tree_lock); - f2fs_bug_on(sbi, !mount); f2fs_err(sbi, "NAT is corrupt, run fsck to fix it"); return ret; } -- 2.25.1