Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp297041yba; Mon, 20 May 2019 08:53:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqhd179EfsGG31yy/bO8lArl2XA66/F+L7vcAaomcQRv6fVYyvsm2HYk39Xhmq/7loPi/g X-Received: by 2002:a65:5886:: with SMTP id d6mr75874654pgu.295.1558367639020; Mon, 20 May 2019 08:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558367639; cv=none; d=google.com; s=arc-20160816; b=E+UOl4h8AMPfZh38FcHvwEwhlNDwA+wr0IhAUoPamvQphQV7aBuF08xwENm3Ww1ccR gNNfaK/Pj8KWoIfifsAqKBAi0bLNtDQKByZGiyezy+zZunNlUBBMnO0lJkGilhzkEJ6p BRHhSIsQdTrz1K0ogkJ0SrHBUghPc9r/vHmfosWHCw4Od8M3DgK4laWqaz1uTeoYvmgZ /pCL0Go4jM4hPEofcB5n4QaruUo+G11BH6sgOlE6CZGTUtRxAGvOS+iSPErqVL2+buKc FwYYaR47MCAasOPZfwYOSxOkv3Pkph0zcz+4wpNbe/TjDdwOZv00i9aVwT157sZSKsjr cxhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N4ga+w0NOJpcnUpSjeXLKMoU6uD1p6nYo9scC76CUaI=; b=OtbiqaKRx1iYskpNKy++q2XAGfEAhOrcRll5pN2Ua6w0/4JaskUrWVMeoCJdLwLvHq rr7u4yeVK3pPSjgFAuBv4fMBWQEB03WUavk+vbWigb/382ezqw2XUwJMbq30JuSMORe/ wgDsbNRNTpMUnGR/MGD4IuTcFbuj0xFFEkR2IB0Hgd10HQ6qNvcVU3J/O1s2kf3rER7P r5+0+NI7qkBxHp2ZRqplSiTqPRW71+jBsLmVdrat3zQIrpdGeiHYwThxE6ZbH6mOJSyd q3v44a6kzS8G9tvOmVx5DQU7XG9NM4o/A3/BYAJPnLRDI7Y9otsGYLmJTFCTUnkYe1SG Iaog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r1GyGmAQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w1si18078137plp.4.2019.05.20.08.53.44; Mon, 20 May 2019 08:53:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r1GyGmAQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388959AbfETMY7 (ORCPT + 99 others); Mon, 20 May 2019 08:24:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:39910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388944AbfETMYz (ORCPT ); Mon, 20 May 2019 08:24:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D35BD216C4; Mon, 20 May 2019 12:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558355095; bh=K54YEflfXLM4VSAwoRJKIcxe1vnu5XR84RhZ3XiT9mE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r1GyGmAQqqEgDqvBO6k9qyh1oNIjmZqSeJC9cY8Z35KTUYhQV7pveaim99qcLG8sC ENTexBSk8NUzE9vXaLySJdTE2v5GsmC+ylFnuAu9Hz1PjRMOiA6X1f1odcd62gG5T8 P8962vE1UPbr5dFK8uhSo+V7d98SE3Hu1lUqOsk8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Kara , Theodore Tso , stable@kernel.org Subject: [PATCH 4.19 088/105] ext4: avoid panic during forced reboot due to aborted journal Date: Mon, 20 May 2019 14:14:34 +0200 Message-Id: <20190520115253.365916423@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kara commit 2c1d0e3631e5732dba98ef49ac0bec1388776793 upstream. Handling of aborted journal is a special code path different from standard ext4_error() one and it can call panic() as well. Commit 1dc1097ff60e ("ext4: avoid panic during forced reboot") forgot to update this path so fix that omission. Fixes: 1dc1097ff60e ("ext4: avoid panic during forced reboot") Signed-off-by: Jan Kara Signed-off-by: Theodore Ts'o Cc: stable@kernel.org # 5.1 Signed-off-by: Greg Kroah-Hartman --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -698,7 +698,7 @@ void __ext4_abort(struct super_block *sb jbd2_journal_abort(EXT4_SB(sb)->s_journal, -EIO); save_error_info(sb, function, line); } - if (test_opt(sb, ERRORS_PANIC)) { + if (test_opt(sb, ERRORS_PANIC) && !system_going_down()) { if (EXT4_SB(sb)->s_journal && !(EXT4_SB(sb)->s_journal->j_flags & JBD2_REC_ERR)) return;