Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp344366pxf; Thu, 8 Apr 2021 04:29:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNfaiSoWC7BcA/mqhrU8UXU2MYWH45jrl245dQeSkC3AvyEJiB1HbsFaBF1YE0G32+KtFO X-Received: by 2002:a17:906:f9c2:: with SMTP id lj2mr9444469ejb.195.1617881345183; Thu, 08 Apr 2021 04:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617881345; cv=none; d=google.com; s=arc-20160816; b=DtFAWb6AuuSyLBOX5e7YcZEOq9KeDr2AXaMO/z2ohQXcXbap6cYMsNPxHpz3earDAx 334N1XGJy9TA8HI8JjQTRvoIcFvp4ygN8O2DAN4vKTL93dYYFpXCZczpKPyrgIBzP6vX P20DQT5I6+hRlbhoEvgHntt1QhDw53uydFgZfez2hfOa3PS2WZbDMdJabjVw8HUFfdF0 WhSBZRgOpa1FrABhfW3g+JnPy3IbBKrkCYxyNBoOblAubpxQrsQYbCSrVInOFEyop6b6 SX4C3Nr1jLEMl1fUD4PvxJKCThWwu8gG8ds0cnqAp9Pyq+Exkdll+g82iRj0LqpnEqOp uJGg== 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 :message-id:date:subject:cc:to:from; bh=9I2CvPls/t1YXfnQbZBwi6gqgMDIffxQYGMvwohVCqA=; b=0vVcnJpn4h6OzrQkC4DoGbs9mC7sVv23zospHoIKZhglu02GC+PBaSkPRfF/nFDYCt y6mDxRK9CnZ+HaXgmEFCZYnVYVRwG0K40gECJMIPs7r1cL/mSvNZHIjSA6c2Zd1d+iB4 79e8J2VxQlaDvYx5GqsNuBkieK6LH/AKkdgBRaUJTQsQ0MzvFQAaBJGedwrx8Y+AjC2x /lqNSoW3+BYd/WZPpyGRSGDREXxvQ6RAYdHf7Gn/ikrIJKlR2ZUFRTutxZPnbFG/TBOS AU+NIgrRIVV2cxGx/oalYRZktfJymhuKX3TxOBFMMaKi/dVhu7mmfUr0wc+qyao3EIGn ZXhQ== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si8536451edx.600.2021.04.08.04.28.40; Thu, 08 Apr 2021 04:29:05 -0700 (PDT) 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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbhDHL2T (ORCPT + 99 others); Thu, 8 Apr 2021 07:28:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16834 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbhDHL2S (ORCPT ); Thu, 8 Apr 2021 07:28:18 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FGJq63Pprz7txY; Thu, 8 Apr 2021 19:25:54 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 19:27:59 +0800 From: Zhang Yi To: CC: , , , , Subject: [PATCH 0/3] ext4: fix two issue about bdev_try_to_free_page() Date: Thu, 8 Apr 2021 19:36:15 +0800 Message-ID: <20210408113618.1033785-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi, This first patch fix a potential filesystem inconsistency problem and other two fix a use after free problem. Zhang Yi (3): jbd2: protect buffers release with j_checkpoint_mutex jbd2: do not free buffers in jbd2_journal_try_to_free_buffers() ext4: add rcu to prevent use after free when umount filesystem fs/ext4/inode.c | 6 ++++-- fs/ext4/super.c | 41 +++++++++++++++++++++++++++++------------ fs/jbd2/journal.c | 30 +++++++++++++++++++++++++++--- fs/jbd2/transaction.c | 20 ++++++++++---------- include/linux/jbd2.h | 11 ++++++++++- 5 files changed, 80 insertions(+), 28 deletions(-) -- 2.25.4