From patchwork Mon Sep 13 18:44:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Burkov X-Patchwork-Id: 12490629 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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 DED3BC43217 for ; Mon, 13 Sep 2021 18:44:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA59B610FB for ; Mon, 13 Sep 2021 18:44:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239705AbhIMSp6 (ORCPT ); Mon, 13 Sep 2021 14:45:58 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43195 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236631AbhIMSp4 (ORCPT ); Mon, 13 Sep 2021 14:45:56 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2906C5C011C; Mon, 13 Sep 2021 14:44:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 13 Sep 2021 14:44:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bur.io; h=from :to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=qt1xY/gUXmKuBr01z7pM8I1adc Ed2o5wUKfVco5Dm/g=; b=r3Emd3gvqZ4ncvD88IjusdrPzMc1GXBqqc5hvsyXa4 cSHQvHF25DUdckhZMIp+rqULnN+qW3iwMx7A2E0wUTDEyYBR13Z9ObOeBm3y1CUk gR7ylzpYaw+8TvCdcbsKkqpBfxnM7xY3jlG3CE5Bm2k4PspEpvsiwPxBuxkOJQHl TKNdhx9Xszh75xm4YqfZ5oziol1ts/QGVy6R8/NxSPC/1j4APY2j05Ye8UDzfbn6 QDI9mGl6CTHa+gP7ffbRbArLvkChY1BqZVW0GzS2MITxrJ174lOuKxbJRFyCQjKv MMYQPWM9Ssx0aXpWwpor+bgIj0esZ1SD8e/tbryS92ng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=qt1xY/gUXmKuBr01z 7pM8I1adcEd2o5wUKfVco5Dm/g=; b=aX35WSxz1RU5eYcoqrIJJ0Mt5Ifr85wmQ Lw3RWcO5hsLDfWL5HOcZr7Jw1FUBtH/J14rN/cN3KpsENbgwlu3dsPi7SMggFgT8 HCRsEs7TDsjhzDBZy6zKq8M0Z5FOp4dfuZ75jASFd6gjMXCS3RGp6ypnfq2263Lx nw0bwaISMHO7KcgLwvO3skceOzHlT11gN0balrq0qhmqNuixFpK2Hx5SvoQuY1Sl d6ZTSJuEU2WMXkTy7AVZnQtruU1cqmto7Fgtjjn4Q1hXpI1EAyrBZz77RuJ+JUdL nuHoQnRqZKGkxMpJIwMfvWSmFR0A3Ui7LRdDLbrInbAE3NjYn5kjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegjedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeeuohhrihhsuceuuhhrkhhovhcuoegsohhrihhssegsuhhrrdhi oheqnecuggftrfgrthhtvghrnhepudeitdelueeijeefleffveelieefgfejjeeigeekud duteefkefffeethfdvjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepsghorhhishessghurhdrihho X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Sep 2021 14:44:39 -0400 (EDT) From: Boris Burkov To: fstests@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-btrfs@vger.kernel.org, kernel-team@fb.com Subject: [PATCH v5 0/4] tests for btrfs fsverity Date: Mon, 13 Sep 2021 11:44:33 -0700 Message-Id: X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This patchset provides tests for fsverity support in btrfs. It includes modifications for generic tests to pass with btrfs as well as new tests. --- v5: - more idiomatic requires structure for making efbig test generic - make efbig test use truncate instead of pwrite for making a big file - improve documentation for efbig test approximation - fix underscores vs dashes in btrfs_requires_corrupt_block - improvements in missing/redundant requires invocations - move orphan test image file to $TEST_DIR - make orphan test replay/snapshot device size depend on log device instead of hard-coding it. - rebase (signicant: no more "groups" file; use preamble) v4: - mark local variables - get rid of redundant mounts and syncs - use '_' in function names correctly - add a test for the EFBIG case - reduce usage of requires_btrfs_corrupt_block - handle variable input when corrupting merkle tree v3: rebase onto xfstests master branch v2: pass generic tests, add logwrites test Boris Burkov (4): btrfs: test btrfs specific fsverity corruption generic/574: corrupt btrfs merkle tree data btrfs: test verity orphans with dmlogwrites generic: test fs-verity EFBIG scenarios common/btrfs | 5 ++ common/config | 1 + common/verity | 38 ++++++++++ tests/btrfs/290 | 165 ++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/290.out | 25 +++++++ tests/btrfs/291 | 161 +++++++++++++++++++++++++++++++++++++++++ tests/btrfs/291.out | 2 + tests/generic/690 | 86 ++++++++++++++++++++++ tests/generic/690.out | 7 ++ 9 files changed, 490 insertions(+) create mode 100755 tests/btrfs/290 create mode 100644 tests/btrfs/290.out create mode 100755 tests/btrfs/291 create mode 100644 tests/btrfs/291.out create mode 100755 tests/generic/690 create mode 100644 tests/generic/690.out