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,DKIM_INVALID, DKIM_SIGNED,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 98A48C433E6 for ; Tue, 2 Mar 2021 20:05:32 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38A4F64F2E; Tue, 2 Mar 2021 20:05:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38A4F64F2E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1lHBGt-0006pp-S3; Tue, 02 Mar 2021 20:05:31 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHBGi-0006ow-Dz for linux-f2fs-devel@lists.sourceforge.net; Tue, 02 Mar 2021 20:05:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TOeeat/3DVIDvppAUCaxrDI3K9RMR/iMMdmdSnPaBRU=; b=K7D/ERO4hAUzXlmV0G6kWLTq8N 9CTnGYPBfHEOduxrBXyoV4n1uI4/2a76dujBFEjg8rKONuiISW0xI/M2sZDBrzkpFGfO10MKqEIFr H8gJKSxV4//ewa4gTL4tsY9K2v2hjB5wS2jdYv7CSAuJ/1DBJXwuPnWF2cAh+Iw0Wnwg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=TOeeat/3DVIDvppAUCaxrDI3K9RMR/iMMdmdSnPaBRU=; b=k nzNeVpd1qOizLHLB5Sy0JKZG6mrke+OV3A/BZrhA/PdfGwHLXmvsNBBbsGyJ518Df4JDcB7QuY4FC vRvBg021mTfOcQoN6EwtXf5uyioipjOOFaD7dCPn4hZ1US5aJ9nppYQtCM4cduNHvXQCXkcFSuWFL NUyTt0/yYqXwD/+c=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1lHBGX-00Be2C-Ie for linux-f2fs-devel@lists.sourceforge.net; Tue, 02 Mar 2021 20:05:19 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4D1064F2C; Tue, 2 Mar 2021 20:05:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614715504; bh=R0uWWdo55T3Y2P3LKpd1Ma1UuCXVZi07erMDI9ljXRg=; h=From:To:Cc:Subject:Date:From; b=Oz98igqXh+9c0+eqzJYbO7IcceScj37KATh8VUDVq814CVm02xIfdSrgZs7ItY89X lyGILhbaenhs1nXMRlAuJTNj8FTljQqIvO6DDGEN5ylJINfpO5m2hxjZngi29Rnyw0 zL95MaD/DhnWLLybAB2QzchHr91meBG9YfRNbG6N0jSz+P6aDqXAKt0J2tj3oWH4Zk DxlIgkc/qbPdvIexTwIXXbmPaN14zq++fZ7+7VBS71U7IzSdEwEhsXCgDxcNI85kjn 5tVB/Xhd6SJvV0qiAoS+b/jGmJGyo9MBbWZX2yQLuLbhK7YJ5t6BLBruBIyiwgkW5t c5POEGAMRQjyw== From: Eric Biggers To: linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Date: Tue, 2 Mar 2021 12:04:18 -0800 Message-Id: <20210302200420.137977-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Headers-End: 1lHBGX-00Be2C-Ie Subject: [f2fs-dev] [PATCH 0/2] fs-verity: fix error handling in ->end_enable_verity() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fscrypt@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Fix some bugs in how ext4_end_enable_verity() and f2fs_end_enable_verity() handle failure to enable verity on the file. This is intended to supersede the f2fs patch from Yunlei He (https://lore.kernel.org/r/20210302113850.17011-1-heyunlei@hihonor.com, https://lore.kernel.org/r/20210301141506.6410-1-heyunlei@hihonor.com, https://lore.kernel.org/r/c1ce1421-2576-5b48-322c-fa682c7510d7@kernel.org). I fixed the same bugs in ext4 too, reworked the functions to cleanly separate the success and error paths, and improved the commit message. These patches can be taken independently via the ext4 and f2fs trees. I've just sent them out together since they're similar. Eric Biggers (2): ext4: fix error handling in ext4_end_enable_verity() f2fs: fix error handling in f2fs_end_enable_verity() fs/ext4/verity.c | 90 ++++++++++++++++++++++++++++++------------------ fs/f2fs/verity.c | 61 +++++++++++++++++++++----------- 2 files changed, 97 insertions(+), 54 deletions(-) -- 2.30.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel