Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp172977pxb; Wed, 18 Nov 2020 20:26:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzevh9lYevCTt+rB9AZOdVFG3KsCxKhNeu5VHs1bzFDqCrDhAL33daT+/H4Ybb9Qp2hNYRG X-Received: by 2002:a17:906:7190:: with SMTP id h16mr25906799ejk.221.1605759976564; Wed, 18 Nov 2020 20:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605759976; cv=none; d=google.com; s=arc-20160816; b=P7Kcl0srrp+BKy+xpIFm/11Jj7bisMvWy4fNUicDI2khi6cXnMw7R9JtcmFPujq6ZF 5gey5tvrvPob26BseMzsDBYMZNgEnG67vFFJ0ncIj0tJLYNWcZqKns0MGM5/0Rqgh6MW Nl26MkNRuHgYZe8eEC6XGbI6lDZ/4QK/gEYGzE1mYUJcHx8XOODuVBAhG4s5NdgTh/xR 0AT0Kd7JEWI4TtJR6lp2Pitwi/wPwtC5rgXlt+5hkVJKTyW9F3fM3iufg4KYsZCbNgKn P0BFBOSbsiNErlWTtzdpvQFc340eGypWUMwvwqZr49q9XBHzqWo7j5QpXdDYZJhS4B6C buDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=Qa9WfS+V49urTMC5BbePKU3q1DinYirttbVD3jdeSZo=; b=zNpFmUXH+3hr1UKMFcI/UpRTPZO7Q7CTEFHyj2Lr6l/q5xjyk6fHhfBtcgpy/YiZKG lFDiMdbdoiVC2QaJtUosI8Pi33V5lDlEuaLyLBBw72Ai5S7+Im1lTgc7KJETz0F1id7n +UZmRt0l/kLpaa8rPxJ0yHBwujhAuPptNDw7QsUHlp1b05tuQ+hYKkwTOgSebmfTlPc8 bZmCuBk78N0p4vogQ50iYm0S+sBm7W+YmKjgZH8X3vDOq+fVm67fliCg/l2cLQV0lW63 tTEhHtmhfH2A+x/pwvGkYSmjVVv3T1uPTmIHp7K1yLpAifxUI/Mcr2D+2mWJ0j1BrtJQ FTPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si16882331edt.276.2020.11.18.20.25.20; Wed, 18 Nov 2020 20:26:16 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726039AbgKSEZT (ORCPT + 99 others); Wed, 18 Nov 2020 23:25:19 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7934 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgKSEZT (ORCPT ); Wed, 18 Nov 2020 23:25:19 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Cc6656llwz6v2R; Thu, 19 Nov 2020 12:25:01 +0800 (CST) Received: from [10.174.179.106] (10.174.179.106) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 19 Nov 2020 12:25:08 +0800 Subject: Re: [Bug report] journal data mode trigger panic in jbd2_journal_commit_transaction To: Mauricio Oliveira CC: "Theodore Y . Ts'o" , , Jan Kara , , "zhangyi (F)" , Hou Tao , , Ye Bin , References: <68b9650e-bef2-69e2-ab5e-8aaddaf46cfe@huawei.com> From: yangerkun Message-ID: Date: Thu, 19 Nov 2020 12:25:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.106] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 在 2020/11/16 21:50, Mauricio Oliveira 写道: > Hi Kun, > > On Sat, Nov 14, 2020 at 5:18 AM yangerkun wrote: >> While using ext4 with data=journal(3.10 kernel), we meet a problem that >> we think may never happend... > [...] > > Could you please confirm you mean 5.10-rc* kernel instead of 3.10? > (It seems so as you mention a recent commit below.) Thanks! > >> For now, what I have seen that can dirty buffer directly is >> ext4_page_mkwrite(64a9f1449950 ("ext4: data=journal: fixes for >> ext4_page_mkwrite()")), and runing ext4_punch_hole with keep_size >> /ext4_page_mkwrite parallel can trigger above warning easily. > [...] > > Hi, Sorry for the long delay reply... And thanks a lot for your advise! The bug trigger with a very low probability. So won't trigger with 5.10 can not prove no bug exist in 5.10. Google a lot and notice that someone before has report the same bug[1]. '3b136499e906 ("ext4: fix data corruption in data=journal mode")' seems fix the problem. I will try to understand this, and give a analysis about how to reproduce it! Thanks, Kun.