From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E037C433ED for ; Thu, 8 Apr 2021 11:28:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1D5161105 for ; Thu, 8 Apr 2021 11:28:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbhDHL2T (ORCPT ); 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