From patchwork Mon Dec 12 04:48:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 32243 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2048805wrr; Sun, 11 Dec 2022 20:56:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fp0fVfzeUiLfLjoza5TtYcRw//ae94/efKyhlWiEk6EpCEjsuR8H5W+cYnW5T3elNBp6C X-Received: by 2002:a05:6402:2992:b0:461:ed1f:e707 with SMTP id eq18-20020a056402299200b00461ed1fe707mr12626517edb.17.1670821008935; Sun, 11 Dec 2022 20:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670821008; cv=none; d=google.com; s=arc-20160816; b=R/cY5sDzWL99xZGcnxpRBKG9wewfsnvoeGDr5Dmc7VsY4rYqlVJWH/nhXkTM3gwJzp jiXf0ee+zHONQNJQpdBRBzeWQoL49zvK61uqeV6z0pR/XGS2SLjd/FhUhlYxIvPnmO/w NnHFKc5ysUP6LWDv0yAWsITNBCOHajR9VZEBGPkRNzszcWbZpbug8zykWeKASb02OZzc /I1KLvWVrjI6NpZ6XeaKjuFsF7IRdYVY1Ox5mcfxNvmnqmtYMA4yqzJSX9F3HOdqe0Mq R7lZun8c09osVQKEiIoORXIrX0bO6FURraXcL9+epWcgn4NijajNkIQ1/p1wfyC2tBiB FDhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=j/fs7VMWPZeRXSGt3VEbQ/vYccxgN/NgVB0x6PdebXw=; b=JdynkvxJZkdA5Wm+mKRRpKmGefRZb0GYk+HTf42egmKvmltE2AgW8S9jwVNAWkCxxH ix7gztGmgkhhCz/T7CadqmAI2qvX7IYxvzTFL6625JbDioqUEYNrQSF2T7FTymwv8OtG 8iqnSf2rvmM+ECf9qRYjPZGxCe08InYiwjc24sPwenL2vhdEyjXe3fnW1lXt9h9nn9Ms qdlC2bUc81B0OrGU8PdGO3CVDNLGfGCmOOzmaFhk7Aen7FgqVpF7wnZc8B8cGSqkF6UQ aqaQtwvEuek+o7jZxIX8Cz6yTIRo0ZwWJ6+21wdZjJwr8ytw6M0QFCeX3f7C85EcMF2U m95Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRfLPsbh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020aa7c757000000b004675cf238cbsi6510265eds.322.2022.12.11.20.56.25; Sun, 11 Dec 2022 20:56:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oRfLPsbh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbiLLEs5 (ORCPT + 99 others); Sun, 11 Dec 2022 23:48:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbiLLEsl (ORCPT ); Sun, 11 Dec 2022 23:48:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4742663D9; Sun, 11 Dec 2022 20:48:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D3A79B80B72; Mon, 12 Dec 2022 04:48:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56B1BC433D2; Mon, 12 Dec 2022 04:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670820517; bh=P8vfT0mshHozuGK5w2ZRZj2IsGSxzeJ1hYUPDymSUpA=; h=Date:From:To:Cc:Subject:From; b=oRfLPsbhhzn6jLWFdlSW5/taJKYumF3eyRG6EcL4YW6sqOLFj4LLaHj6VXSSK40pr Hv/+9C6Os/u8mW4Ko5Rx8JyzQBryXRoTVcGRN1TyF68EbgPW2fE6j4NG9PfMLQs6Ce Fa2RwGYuDTemB8vFMLZdS4aYYJPJKlbvPQaJEOJc/MJvHvlQ0ewBVY5XQg6+7qe9Qr 39D8WQ2euxHusx0zuZJE52IRL6NtNBwZPc9aQiC2Jb0AeLMaz9KQCvZdrswp07u3ez J+jKuIuPrkG8E4cf8B1YiU2uSQP8a23eQ4W2ELRPkHSt8Whx7ilNFj96Ji/7n4kaFF UbIBpi6gYmeIA== Date: Sun, 11 Dec 2022 20:48:35 -0800 From: Eric Biggers To: Linus Torvalds Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Theodore Ts'o Subject: [GIT PULL] fsverity updates for 6.2 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751982810603152096?= X-GMAIL-MSGID: =?utf-8?q?1751982810603152096?= The following changes since commit f0c4d9fc9cc9462659728d168387191387e903cc: Linux 6.1-rc4 (2022-11-06 15:07:11 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git tags/fsverity-for-linus for you to fetch changes up to a4bbf53d88c728da9ff6c316b1e4ded63a8f3940: fsverity: simplify fsverity_get_digest() (2022-11-29 21:07:41 -0800) ---------------------------------------------------------------- The main change this cycle is to stop using the PG_error flag to track verity failures, and instead just track failures at the bio level. This follows a similar fscrypt change that went into 6.1, and it is a step towards freeing up PG_error for other uses. There's also one other small cleanup. ---------------------------------------------------------------- Eric Biggers (2): fsverity: stop using PG_error to track error status fsverity: simplify fsverity_get_digest() fs/ext4/readpage.c | 8 ++---- fs/f2fs/compress.c | 64 +++++++++++++++++++++----------------------- fs/f2fs/data.c | 53 ++++++++++++++++++++++-------------- fs/verity/fsverity_private.h | 5 ++++ fs/verity/hash_algs.c | 6 +++++ fs/verity/measure.c | 19 ++----------- fs/verity/verify.c | 12 ++++----- 7 files changed, 85 insertions(+), 82 deletions(-)