Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228763/?format=api
{ "id": 2228763, "url": "http://patchwork.ozlabs.org/api/patches/2228763/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/42e881ea9b95eed28efda3edf0387b18a0b01b5d.1777281778.git.asj@kernel.org/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<42e881ea9b95eed28efda3edf0387b18a0b01b5d.1777281778.git.asj@kernel.org>", "list_archive_url": null, "date": "2026-04-27T10:19:39", "name": "[v3,7/9] fstests: verify IMA isolation on cloned filesystems", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "640b4aaf64b58c678b4d11dbca7da82b7af1b9ed", "submitter": { "id": 92722, "url": "http://patchwork.ozlabs.org/api/people/92722/?format=api", "name": "Anand Jain", "email": "asj@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/42e881ea9b95eed28efda3edf0387b18a0b01b5d.1777281778.git.asj@kernel.org/mbox/", "series": [ { "id": 501620, "url": "http://patchwork.ozlabs.org/api/series/501620/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501620", "date": "2026-04-27T10:19:32", "name": "fstests: add test coverage for cloned filesystem ids", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501620/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228763/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228763/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=syUw=C2=vger.kernel.org=linux-ext4+bounces-16114-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@vger.kernel.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "patchwork-incoming@ozlabs.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=O8aczSUN;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=syuw=c2=vger.kernel.org=linux-ext4+bounces-16114-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::12fc:5321\"\n arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=O8aczSUN;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16114-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"O8aczSUN\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g404k5vMqz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:22:46 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g404k5R9yz4wHs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 20:22:46 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g404k5LnYz4wKR; Mon, 27 Apr 2026 20:22:46 +1000 (AEST)", "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g404g2jqZz4wHs\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 20:22:43 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 956153010EFC\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 27 Apr 2026 10:20:20 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 882E03B4E85;\n\tMon, 27 Apr 2026 10:20:10 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 453FF30AAB8;\n\tMon, 27 Apr 2026 10:20:10 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 4D7E2C2BCB4;\n\tMon, 27 Apr 2026 10:20:08 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777285366; cv=pass;\n\tb=wlCP8Veg6zW5L9BJfF8tf2gSCKN46huNKZHA5H9Q1ehFfugoAmtM2HfF3YIQhaiKeWzrHDlHYkMVjAkFotu7jMapEZqGsjGO1iWEZYrUAux7ZGIcisdH0eEknzUH3fF9FvdJitQo+R3ReCNBN/D3Dauj8isRoFQxQ7mYTxM3tr2gOnmSYWs+LFnfe1W8nNWGSfITvNokIL7eM+wDjiNyHflcsHUBdazsRy8SM6U3zA7OPehmcdh3H587bL72uygN1q37DTOaChXQD9O0A2VWdu/bRCd9Qsniq8BX/dqZPEnkhZiUsefzSTWPElx9nyBj1JBMhGMmPV89GttFECXFtg==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777285210; cv=none;\n b=XmG9tRsM6iuo2zXgbSffHb70LsV5Auf6wqHQBlT1w546fHSidWLWbWbZcFQCXyqJAt5AVzIBBmKV2zBUi6LwoU/yKv9iTypV9G8DI5m57Ba/Jl4iwITXMQg/RYnl442ASD6p8HTHb2c94+gX0gqWHhfccHSRjcZRHF0YzjxFVCI=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777285366; c=relaxed/relaxed;\n\tbh=Q4zSiGRtmM81UIUcdXZ8HprJuzD+J29D/5iXqYjNyvo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=RZyK1ljYOLxURyFWs/FpN6ljmp5guTH/WH+DtW04lDLKLFn8cOAMD9nyyCk23F/2y5+P2Fbba+kelkElO54/KRxXRKjCHltz4u54CCyFGQk65Odd7Xj521JrSmoFRJaNG0nmJMIKY0WMvm4ml7x4bThbVmb+1z2FeB89JgtSyQ0XOfNjQPRk359ifOLgizubYZ2Lnou38bOV5Yf+OFyWf7YxxbZcfLiyp9AdTNBSYJ3nhzL5wnAQukjZr5ccSEVl4LpXO9dhlz9l0NJs7633bHZcgzD0KkSDLG29qOh+HT1AefgIHm4NDz74Dfh8DBI24GNLOCyI4qkxTtZ6jiLbeg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777285210; c=relaxed/simple;\n\tbh=9/N0AQH0CI6Lb0+Ddp6I4qUiPXUMGAFK20BPKCcVG8E=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=alHddxgcP/AwE2qnFlazpH7Xs1xCMJdVcIUSak85kaGBkgXIdQl4brJcSXw/rUXgybLTlZNeq4yPey/k3NFuHWm/Az6AAfFA/UmTSPRozAjoH2Q7dh53NY+e+dbKPsP3NaPOBbVyOb02TfEoDVr8flQFF6Ipm936VcGljlgY52k=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=O8aczSUN; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16114-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=O8aczSUN; arc=none smtp.client-ip=10.30.226.201" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777285209;\n\tbh=9/N0AQH0CI6Lb0+Ddp6I4qUiPXUMGAFK20BPKCcVG8E=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=O8aczSUN4iKloTWS1l13LpTiT0t6vy4ooqU2vYhmPHMx6fJKw3fe4T3Jc0zSv/iKY\n\t hCXLIRY9ZyQn//Arz0UapGbNRbOMEpmQluSfoSY32g5Aj4cyniEJFTuwWbOyuTFCAA\n\t mlD0cZ+LC8/BygBXYx9NUFm4mQXm32IyFzjHxAdoggqBYU1Xep1h73irOmPUKeivKa\n\t j9xaeAhGAEtEUlqc39mr2mDQmVArtzKInHm5aLNuZB2x1qW7xWxBZ+Yv1QAIDlKQQz\n\t NumxdbTS/X9AT2rhStTmdL/PQIjnI8vkRx7wCIy2ReUrXOGQxyBWl9oYj5NvHbzBQI\n\t G7wsrdek3JZsQ==", "From": "Anand Jain <asj@kernel.org>", "To": "fstests@vger.kernel.org", "Cc": "linux-btrfs@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-f2fs@vger.kernel.org,\n\tamir73il@gmail.com,\n\tzlang@redhat.com,\n\thch@infradead.org", "Subject": "[PATCH v3 7/9] fstests: verify IMA isolation on cloned filesystems", "Date": "Mon, 27 Apr 2026 18:19:39 +0800", "Message-ID": "\n <42e881ea9b95eed28efda3edf0387b18a0b01b5d.1777281778.git.asj@kernel.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<cover.1777281778.git.asj@kernel.org>", "References": "<cover.1777281778.git.asj@kernel.org>", "Precedence": "bulk", "X-Mailing-List": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "Add testcase to verify IMA measurement isolation when multiple devices\nshare the same FSUUID.\n\nSigned-off-by: Anand Jain <asj@kernel.org>\n---\n tests/generic/804 | 102 ++++++++++++++++++++++++++++++++++++++++++\n tests/generic/804.out | 10 +++++\n 2 files changed, 112 insertions(+)\n create mode 100644 tests/generic/804\n create mode 100644 tests/generic/804.out", "diff": "diff --git a/tests/generic/804 b/tests/generic/804\nnew file mode 100644\nindex 000000000000..5f5c04f97579\n--- /dev/null\n+++ b/tests/generic/804\n@@ -0,0 +1,102 @@\n+#! /bin/bash\n+# SPDX-License-Identifier: GPL-2.0\n+# Copyright (c) 2026 Anand Jain <asj@kernel.org>. All Rights Reserved.\n+#\n+# FS QA Test 804\n+# Verify IMA isolation on cloned filesystems:\n+# . Mount two devices sharing the same FSUUID (cloned).\n+# . Apply an IMA policy to measure files based on that FSUUID.\n+# . Create unique files on each mount point to trigger measurements.\n+# . Confirm the IMA log correctly attributes events to the respective mounts.\n+\n+. ./common/preamble\n+. ./common/filter\n+\n+_begin_fstest auto quick clone\n+\n+_require_test\n+_require_loop\n+\n+[ \"$FSTYP\" = \"btrfs\" ] && _fixed_by_kernel_commit xxxxxxxxxxxx \\\n+\t\"btrfs: use on-disk uuid for s_uuid in temp_fsid mounts\"\n+[ \"$FSTYP\" = \"btrfs\" ] && _fixed_by_kernel_commit xxxxxxxxxxxx \\\n+\t\"btrfs: derive f_fsid from on-disk fsuuid and dev_t\"\n+\n+_cleanup()\n+{\n+\tcd /\n+\trm -r -f $tmp.*\n+\t_unmount $mnt1 2>/dev/null\n+\t_unmount $mnt2 2>/dev/null\n+\t_loop_image_destroy \"${devs[@]}\" 2> /dev/null\n+}\n+\n+filter_pool()\n+{\n+\tsed -e \"s|${devs[0]}|DEV1|g\" -e \"s|$mnt1|MNT1|g\" \\\n+\t -e \"s|${devs[1]}|DEV2|g\" -e \"s|$mnt2|MNT2|g\" | _filter_spaces\n+}\n+\n+do_ima()\n+{\n+\tlocal ima_policy=\"/sys/kernel/security/ima/policy\"\n+\tlocal ima_log=\"/sys/kernel/security/ima/ascii_runtime_measurements\"\n+\tlocal fsuuid\n+\tlocal mnt=$1\n+\tlocal enable=$2\n+\n+\t# Since the in-memory IMA audit log is only cleared upon reboot,\n+\t# use unique random filenames to avoid log collisions.\n+\tlocal foofile=$(mktemp --dry-run foobar_XXXXX)\n+\n+\techo $mnt $enable | filter_pool\n+\n+\t[ -w \"$ima_policy\" ] || _notrun \"IMA policy not writable\"\n+\n+\tfsuuid=$(blkid -s UUID -o value ${devs[0]})\n+\n+\t# Load IMA policy to measure file access specifically for this\n+\t# filesystem UUID.\n+\tif [[ $enable -eq 1 ]]; then\n+\t\techo \"measure func=FILE_CHECK fsuuid=$fsuuid\" > \"$ima_policy\" || \\\n+\t\t\t_notrun \"Policy rejected\"\n+\tfi\n+\n+\t# Create a file to trigger measurement and verify its entry in\n+\t# the IMA log.\n+\techo \"test_data\" > $mnt/$foofile\n+\n+\t# For $ima_log column entry please ref to\n+\tgrep $foofile \"$ima_log\" | awk '{ print $5 }' | filter_pool | \\\n+\t\t\t\t\t\tsed \"s/$foofile/FOOBAR_FILE/\"\n+\n+\techo \"dbg: $mnt $fsuuid $foofile\" >> $seqres.full\n+\tcat $ima_log | tail -1 >> $seqres.full\n+\techo >> $seqres.full\n+}\n+\n+devs=()\n+_loop_image_create_clone devs\n+mnt1=$TEST_DIR/$seq/mnt1\n+mnt2=$TEST_DIR/$seq/mnt2\n+mkdir -p $mnt1\n+mkdir -p $mnt2\n+\n+_mount $(_common_dev_mount_options) $(_clone_mount_option) ${devs[0]} $mnt1 || \\\n+\t\t\t\t\t\t_fail \"Failed to mount dev1\"\n+_mount $(_common_dev_mount_options) $(_clone_mount_option) ${devs[1]} $mnt2 || \\\n+\t\t\t\t\t\t_fail \"Failed to mount dev2\"\n+\n+do_ima $mnt1 1\n+do_ima $mnt2 0\n+\n+# Btrfs uses in-memory dynamic temp_fsid\n+echo mount cycle\n+_unmount $mnt2\n+_mount $mount_opts ${devs[1]} $mnt2 || _fail \"Failed to mount dev2\"\n+\n+do_ima $mnt1 0\n+do_ima $mnt2 0\n+\n+status=0\n+exit\ndiff --git a/tests/generic/804.out b/tests/generic/804.out\nnew file mode 100644\nindex 000000000000..9804181d6c17\n--- /dev/null\n+++ b/tests/generic/804.out\n@@ -0,0 +1,10 @@\n+QA output created by 804\n+MNT1 1\n+MNT1/FOOBAR_FILE\n+MNT2 0\n+MNT2/FOOBAR_FILE\n+mount cycle\n+MNT1 0\n+MNT1/FOOBAR_FILE\n+MNT2 0\n+MNT2/FOOBAR_FILE\n", "prefixes": [ "v3", "7/9" ] }