From patchwork Mon Dec 10 22:21:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10722695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 21C6E1751 for ; Mon, 10 Dec 2018 22:25:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 102C428610 for ; Mon, 10 Dec 2018 22:25:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0288029866; Mon, 10 Dec 2018 22:25:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E248A28610 for ; Mon, 10 Dec 2018 22:25:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729602AbeLJWZs (ORCPT ); Mon, 10 Dec 2018 17:25:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:53488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbeLJWZs (ORCPT ); Mon, 10 Dec 2018 17:25:48 -0500 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5449F2082F; Mon, 10 Dec 2018 22:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544480747; bh=Zh1s9taviws5TbCAzhgKUvKTrY+D0ca7zHiK24Pa/F0=; h=From:To:Cc:Subject:Date:From; b=0UDLPBtSm1e3SO5J4fVHjU2ufnKWTpBBn4Dge4wYmKVye02G3lUiTAUXpYyRaP5Nd Sz1LVub5c5XtmPFKIo44Uzwm+TDeEd4vL1ZnbtBD0gxZLu4gEMuWruZWQkAtAh/7Db emEnAgabAWaUTaj8W8Zek1bekoGqGhQ0gtKVAOkI= From: Eric Biggers To: fstests@vger.kernel.org Cc: linux-fscrypt@vger.kernel.org, "Theodore Y . Ts'o" , Jaegeuk Kim , Victor Hsieh Subject: [PATCH 0/7] xfstests: add fs-verity tests Date: Mon, 10 Dec 2018 14:21:35 -0800 Message-Id: <20181210222142.222342-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.20.0.rc2.403.gdbc3b29805-goog MIME-Version: 1.0 Sender: linux-fscrypt-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fscrypt@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add tests for fs-verity, a new feature for read-only file-based authenticity protection. fs-verity will be supported by ext4 and f2fs, and perhaps other filesystems later. Running these tests requires: - A kernel with the fs-verity patches from https://git.kernel.org/pub/scm/linux/kernel/git/tytso/fscrypt.git/log/ (should be merged in 4.21) and configured with CONFIG_FS_VERITY. - The fsverity utility program, which can be installed from https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/fsverity-utils.git/ - e2fsprogs v1.44.4-2 or later for ext4 tests, or f2fs-tools v1.11.0 or later for f2fs tests. Example with kvm-xfstests: $ kvm-xfstests -c ext4,f2fs -g verity See the file Documentation/filesystem/fsverity.rst in the kernel tree for more information about fs-verity. Eric Biggers (7): common/verity: add common functions for testing fs-verity generic: test general behavior of verity files generic: test access controls on the fs-verity ioctls generic: test fs-verity descriptor validation generic: test corrupting verity files generic: test that fs-verity is using the correct measurement values generic: test using fs-verity and fscrypt simultaneously common/config | 1 + common/verity | 198 ++++++++++++++++++++++++++ tests/generic/900 | 165 +++++++++++++++++++++ tests/generic/900.out | 54 +++++++ tests/generic/901 | 71 ++++++++++ tests/generic/901.out | 14 ++ tests/generic/902 | 323 ++++++++++++++++++++++++++++++++++++++++++ tests/generic/902.out | 125 ++++++++++++++++ tests/generic/903 | 126 ++++++++++++++++ tests/generic/903.out | 91 ++++++++++++ tests/generic/904 | 124 ++++++++++++++++ tests/generic/904.out | 7 + tests/generic/905 | 81 +++++++++++ tests/generic/905.out | 12 ++ tests/generic/group | 6 + 15 files changed, 1398 insertions(+) create mode 100644 common/verity create mode 100755 tests/generic/900 create mode 100644 tests/generic/900.out create mode 100755 tests/generic/901 create mode 100644 tests/generic/901.out create mode 100755 tests/generic/902 create mode 100644 tests/generic/902.out create mode 100755 tests/generic/903 create mode 100644 tests/generic/903.out create mode 100755 tests/generic/904 create mode 100644 tests/generic/904.out create mode 100755 tests/generic/905 create mode 100644 tests/generic/905.out