Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp434683pxb; Thu, 19 Nov 2020 05:13:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmfHty0xKRmvjh8JhaiF65V2S6RfrfFVWPPuNOg7CkYEOJ8vkXpLcZ2c804tGGXntZmrS+ X-Received: by 2002:a17:906:5a8f:: with SMTP id l15mr28093388ejq.419.1605791631481; Thu, 19 Nov 2020 05:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605791631; cv=none; d=google.com; s=arc-20160816; b=UbDmLkj0puiV04mEHEdTzLHULRmxQUuoTcYU5QKcrdzGtswvNRJK/W8i0d5xZHcn5z CBHuYk2dWJNMFu02o/r6H+MPtHiH4I506Uej1ZcyHN8zB6SZRVD8n3xttp6WKk/t/DHv d0tKE3I9jzhCVDUL+53c81TWaEdE4QzXimoazYZkKKmAfql7015VxHK5ihx5EI+ukxFT jY/YkxiOj0r1iwGRHCycaBnXrDggPUeI35/c2Oa64XZX63vxmzHhdc+qTpLTKNDYA3gp 6yybJ7YxvQjuyA1bbr60QlMOdNzoAkIdAQAo6c2AK0RGaz4M3p6TEd/LyFVu164dooxK puUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=NWF6SWa5VolSrGCddsI4JM6isG94ot1raDpxvZCk1y0=; b=CT/Wf79W+OyXwgVoXtKKdRY2QzoEb6xOLX5A7f4tU3PIjVkCM2fAo9ZpiKYCPAqdhf E4IVsCWLs1YQniGHo7VrKH+yGicpzAN60iZoTp9LYQv1Z4AeVjXGIxO7U/jyR7TsWUQ2 Z5a0kZlLjonNoo7TsQSA3fzFFbEIV4+anAi1IjbFnMfJ64heOmVY546BfU5z26yZGl9n /OrnbCJ/Bfw48ZPFyOEKyFwiV/eF4zAF8QUXjjIgPadCwQCwsfbr0eBi7zvbJ7oPt2Wu 21Gc9BDwq41c3np+WbN9HZAHlA4kW1r9nUAzmzSNT50WOrN2ltg7AHxH7hxeUGPsic1N go9A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si15899319eje.744.2020.11.19.05.13.16; Thu, 19 Nov 2020 05:13:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbgKSNNI convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Nov 2020 08:13:08 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:39946 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727300AbgKSNNH (ORCPT ); Thu, 19 Nov 2020 08:13:07 -0500 Received: from mail-wr1-f70.google.com ([209.85.221.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kfjkH-0001sM-EW for linux-ext4@vger.kernel.org; Thu, 19 Nov 2020 13:13:05 +0000 Received: by mail-wr1-f70.google.com with SMTP id e18so1984614wrs.23 for ; Thu, 19 Nov 2020 05:13:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Wm5LHdk0kA60K7xTn75y9xNvk72GVA+a8TSGemxSNig=; b=DoOj87Smr5dP52m/1ApV93IzssHXpjejTSgOPM/UL26RJ96rJKdGx9KFFKaca9RpP/ UknkYvFKYGXEQ7n856aW9Ne68SLST8hcDx5n8VdpQBw1jh7vmHMrzh3KcIpmRaE/eczE d2bA90G6Czm2Dr+VQzBREvzDN7wAyiyKJTRQg9yILoDPeHJ+fQ5uTUW5vdSchNip2FcX rMrU3H0VuvezgSRyAIBs/bRwen1bGVBQEMnX+hAyoAdiD6xPJEtneulAFkv/9knz0Rzw D+WntoYSMIu7OnByGE6Yco5GT+BTCnVmgWjyp/fkiWURvhP3WiHAXs811igcukejXUkM a6fg== X-Gm-Message-State: AOAM531+XsgTG6OwQKlZ6+60FkMI+L3sNIp0QWggrz+JDkQvLotUrWHl v89IfmyECFhiiPfBl4ayRjVyeT0U4kARl7RPh1dFS+JpN51WmMx7n7QdX2U8sseglqZK0NyL/E4 03GiDOubn2H1BDwZP8lZF5EZERTdQGeLvKK45NvDgIDFqiOfYTxsM9+0= X-Received: by 2002:a1c:3d4:: with SMTP id 203mr4466039wmd.52.1605791584223; Thu, 19 Nov 2020 05:13:04 -0800 (PST) X-Received: by 2002:a1c:3d4:: with SMTP id 203mr4466026wmd.52.1605791584042; Thu, 19 Nov 2020 05:13:04 -0800 (PST) MIME-Version: 1.0 References: <68b9650e-bef2-69e2-ab5e-8aaddaf46cfe@huawei.com> In-Reply-To: From: Mauricio Oliveira Date: Thu, 19 Nov 2020 10:12:52 -0300 Message-ID: Subject: Re: [Bug report] journal data mode trigger panic in jbd2_journal_commit_transaction To: yangerkun Cc: "Theodore Y . Ts'o" , adilger.kernel@dilger.ca, Jan Kara , linux-ext4@vger.kernel.org, "zhangyi (F)" , Hou Tao , zhangxiaoxu5@huawei.com, Ye Bin , hejie3@huawei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Nov 19, 2020 at 1:25 AM yangerkun wrote: > > > > 在 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. > No worries, and thanks for following up. So I understand that the bug report was indeed on 3.10, and 5.10-rcN is not yet confirmed. > 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! Cool, thanks! > Thanks, > Kun. -- Mauricio Faria de Oliveira