Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1421651ybl; Sat, 25 Jan 2020 00:00:08 -0800 (PST) X-Google-Smtp-Source: APXvYqzyLTRkNmS2BQxDHj1rOe+fvbouITIzo4SbmtoGAOZdorZcrGA5H1YI/yMbl6t+5xDpXdQb X-Received: by 2002:a9d:4c14:: with SMTP id l20mr2744206otf.125.1579939208524; Sat, 25 Jan 2020 00:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579939208; cv=none; d=google.com; s=arc-20160816; b=CMNND42o+cy7PW1oyhhHu/jY0VI0T04g6QBEioToakFNErK/qU1ML//vSAu7WO2iZf gswH6JZtI7CDmbVhjM5ItdV9jRVthWszKCPXF83z7qyiZLmKIgwZw7rtN5vR2bFw/U65 Xu5NfRaIbkH9+UQQ7M+OX+Z5JSadcEH7ABrE4LKinoJmSsdl3rtSERXcaKn+7H3bpA81 MNvnSYW4y52tdkNOo+YdYPMJnPP+sG/O+gWSnVweelmdFrFMbkIr0x5H5BT+goffd+KF zg1WNsogOWl4wLR7slkX7urdk2JL9BN0u1LFv2DccNdz5/NOrDgOYDM9PMv24JGtxdHB NU0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zqzjH8Ys7AWaq+FB95gZZp8Y8U2ioKei17ULKH73ow4=; b=VYvhV5Enue+kl2COSRo29dSSz8IIKev7OnWBJ2FfAOWZTY+Wl/JF7xa7Fd5bsebMyI ReEoSLwRYmXFj2BxCGz4KnnmbaJndvHB1Ev8cJ6BnLFBM5354VcJk7ckGm+W07DGkRix IV+m7WXyDkIpPNahNffvSRq38bYt1em0UzQmI0alg+SN13xwNmz9++/ENLgBpfuDW1jt 9oHqz7yOOTySajgv05yjhNILH/H39D91xD2wononc0UBiWYmvR3bPeOJJapKnfs5oD1v bj/l0iNn+9iu36f/ARZrp4xric4LJmIMTHezEB/ExY1Ou+a8Dk++VtjhzOQCAmZdyT/i yINQ== 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 p24si4256416otq.194.2020.01.24.23.59.58; Sat, 25 Jan 2020 00:00:08 -0800 (PST) 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 S1726565AbgAYH75 (ORCPT + 99 others); Sat, 25 Jan 2020 02:59:57 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:58434 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726293AbgAYH75 (ORCPT ); Sat, 25 Jan 2020 02:59:57 -0500 Received: from callcc.thunk.org (rrcs-67-53-201-206.west.biz.rr.com [67.53.201.206]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 00P7xfgq032048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jan 2020 02:59:43 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id A8CAF42014A; Sat, 25 Jan 2020 02:59:40 -0500 (EST) Date: Sat, 25 Jan 2020 02:59:40 -0500 From: "Theodore Y. Ts'o" To: Jan Kara Cc: "zhangyi (F)" , linux-ext4@vger.kernel.org, jack@suse.com, adilger.kernel@dilger.ca, liangyun2@huawei.com, luoshijie1@huawei.com Subject: Re: [PATCH v3 2/4] ext4, jbd2: ensure panic when aborting with zero errno Message-ID: <20200125075940.GJ1108497@mit.edu> References: <20191204124614.45424-1-yi.zhang@huawei.com> <20191204124614.45424-3-yi.zhang@huawei.com> <20191204125213.GG8206@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204125213.GG8206@quack2.suse.cz> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Dec 04, 2019 at 01:52:13PM +0100, Jan Kara wrote: > On Wed 04-12-19 20:46:12, zhangyi (F) wrote: > > JBD2_REC_ERR flag used to indicate the errno has been updated when jbd2 > > aborted, and then __ext4_abort() and ext4_handle_error() can invoke > > panic if ERRORS_PANIC is specified. But if the journal has been aborted > > with zero errno, jbd2_journal_abort() didn't set this flag so we can > > no longer panic. Fix this by always record the proper errno in the > > journal superblock. > > > > Fixes: 4327ba52afd03 ("ext4, jbd2: ensure entering into panic after recording an error in superblock") > > Signed-off-by: zhangyi (F) > > Looks good to me. You can add: > > Reviewed-by: Jan Kara Applied, thanks. - Ted