get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2221462/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2221462,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221462/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-22-aalbersh@kernel.org/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260409131404.1545834-22-aalbersh@kernel.org>",
    "list_archive_url": null,
    "date": "2026-04-09T13:13:53",
    "name": "[v7,21/22] xfs: introduce health state for corrupted fsverity metadata",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "1bba67fcfca9046292fbe4d8dc060c82cfde29a3",
    "submitter": {
        "id": 92821,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/92821/?format=api",
        "name": "Andrey Albershteyn",
        "email": "aalbersh@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-22-aalbersh@kernel.org/mbox/",
    "series": [
        {
            "id": 499292,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/499292/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=499292",
            "date": "2026-04-09T13:13:34",
            "name": "fs-verity support for XFS with post EOF merkle tree",
            "version": 7,
            "mbox": "http://patchwork.ozlabs.org/series/499292/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2221462/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221462/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=gnjR=CI=vger.kernel.org=linux-ext4+bounces-15718-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=QfIzQl55;\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=gnjr=ci=vger.kernel.org=linux-ext4+bounces-15718-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 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=QfIzQl55;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15718-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=\"QfIzQl55\"",
            "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 4fs0yb1fLHz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:24:23 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fs0yb18x9z4wLh\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:24:23 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fs0yb156fz4wLM; Thu, 09 Apr 2026 23:24:23 +1000 (AEST)",
            "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4fs0yW3GHgz4wLh\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 09 Apr 2026 23:24:19 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id CD367306A26A\n\tfor <patchwork-incoming@ozlabs.org>; Thu,  9 Apr 2026 13:19:04 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8E8ED284690;\n\tThu,  9 Apr 2026 13:15:14 +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 9DDCA285CB4;\n\tThu,  9 Apr 2026 13:15:13 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id A6003C4CEF7;\n\tThu,  9 Apr 2026 13:15:10 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775741063; cv=pass;\n\tb=ENJsu2o869c3z1zHUK7Gj+yIFYZVyZRB9XxmNIHpCj+SdEYUvHmCLOeVgJo6KsuMlievkJ4ZJf6txN2io4bH+0+uDAf2SItZWlpTFKspgMfCGGiRKP5aaZGAfFZzU7JrbiKB8lF50EAGU+lsv4lCqk4lId0cGUBnYF3wg98PTzvewpjgx1C5FF7WjLRDcZi62T5nEvJPhbiSdWZcSfaKm+ApbuQY1ab0qbPpUqMYo3ONNMPINKxPo24bRv+EW75AxY0B9Oz+7z2urWj8zfCS7NZTeh0jukYE6lXMy547WfpH7Nj6gQ2LlrsywvLxJAS167IBdL9UEHztEQ9AbGVu2w==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775740513; cv=none;\n b=tyU/oQzOZPNwXn2ioQFgAa7px5MT0/aGnFiubfkDqVcW6LqItkxD4cCmm9cUSMi8FxRvHVTzEsWNDvBvjwovXqInKq6UhR/TxPC3zGACU2RkTvYOO+qggGy5wLQzpZu6jtbkpjsTVwcAujH84fRK1WkDMlfflDO2a4F9u4v8mZA="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775741063; c=relaxed/relaxed;\n\tbh=FdF4wO1tH9niInRa84s0Z6qYIXLGKm5YmwsFxFfvcUg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=iKvMPMPCTo464N+NBortzFla254MX9WW50fzfiO/Moeg/xkj5XDW/5WAGod2+PbjpqXobdPvy8BW6miAsSGaWPxopGab6yit51Zp99kvsYZTwq1kFxKeejO9leOzUrs2Zdvqg3umkkQxFDlDBLd7S0/klkn2/HyE4YuTrRG09yDWf0JNJ6twOYWP3nh0oxarsnXu61TY234vp7FqA5l/jFNvCaIqm+KzvLsnwCTW1u49fNZhoKZfV7xjcHTZ1e5ro3xsjl+cRDqpLbNtKojR2LSNTE3Ur/ZS8gZwm+6fnmZ7nSKVjGPSNt6W/EI/ZLCKhoM7lJXhZUsFLzz/NHKYUA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775740513; c=relaxed/simple;\n\tbh=/vx1RWsF+Uaiiv5red15C2vOObvMVh77Hq64PoVqJ8A=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=jsE4yRArZSnlUg/JHF7+OnDiFhvUhIDBYxIcqwDk5LT3+Un+rebtzPp6aOrOumq9xZgxEg/XfSA9HrqRxN9bn3wv6VuvYxzoPKqU68Y1lpRwLAhJpA4tUlwHsaPPzNqeZgcWKbwcXkd8gHFAhihXFrvv5LZp2cS369RLlCfUx/g="
        ],
        "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=QfIzQl55; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15718-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=QfIzQl55; 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=1775740513;\n\tbh=/vx1RWsF+Uaiiv5red15C2vOObvMVh77Hq64PoVqJ8A=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=QfIzQl55EhMalO4G468JIxrxzLC1q2fnqpvJ7BLgrz3PH5TN5K2XugfZogUlZ7x10\n\t ISEQ+u+lX/UKIfeMWkQufC5VkSOSUMfscS3sZdDLHnvP/VEWReQtL7n4pAmgRELsZr\n\t G16NSvA+qCjVSuYetEo4e/w9I38dhCtxHX0JGzI5+Lv2n0NyRIoJop8aLzWmi//OsK\n\t y6ydl6XoBPMoi/SU2BJKqfgVfRBdoonqSDpfloMjxGsUVGgZd28nyeFXH7kGR+Goio\n\t SKSLK2B345tiB0d99zEZWcyj4CgfROjWsT7ajk2KE3k6EIeTwVU9A2jwZB/k75dtou\n\t bFY0iamW5LScQ==",
        "From": "Andrey Albershteyn <aalbersh@kernel.org>",
        "To": "linux-xfs@vger.kernel.org,\n\tfsverity@lists.linux.dev,\n\tlinux-fsdevel@vger.kernel.org,\n\tebiggers@kernel.org",
        "Cc": "Andrey Albershteyn <aalbersh@kernel.org>,\n\thch@lst.de,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-btrfs@vger.kernel.org,\n\tdjwong@kernel.org",
        "Subject": "[PATCH v7 21/22] xfs: introduce health state for corrupted fsverity\n metadata",
        "Date": "Thu,  9 Apr 2026 15:13:53 +0200",
        "Message-ID": "<20260409131404.1545834-22-aalbersh@kernel.org>",
        "X-Mailer": "git-send-email 2.51.2",
        "In-Reply-To": "<20260409131404.1545834-1-aalbersh@kernel.org>",
        "References": "<20260409131404.1545834-1-aalbersh@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": "Report corrupted fsverity descriptor through health system.\n\nReviewed-by: Darrick J. Wong <djwong@kernel.org>\nReviewed-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\n---\n fs/xfs/libxfs/xfs_fs.h     |  1 +\n fs/xfs/libxfs/xfs_health.h |  4 +++-\n fs/xfs/xfs_fsverity.c      | 13 ++++++++++---\n fs/xfs/xfs_health.c        |  1 +\n 4 files changed, 15 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h\nindex ebf17a0b0722..cece31ecee81 100644\n--- a/fs/xfs/libxfs/xfs_fs.h\n+++ b/fs/xfs/libxfs/xfs_fs.h\n@@ -422,6 +422,7 @@ struct xfs_bulkstat {\n #define XFS_BS_SICK_SYMLINK\t(1 << 6)  /* symbolic link remote target */\n #define XFS_BS_SICK_PARENT\t(1 << 7)  /* parent pointers */\n #define XFS_BS_SICK_DIRTREE\t(1 << 8)  /* directory tree structure */\n+#define XFS_BS_SICK_FSVERITY\t(1 << 9)  /* fsverity metadata */\n \n /*\n  * Project quota id helpers (previously projid was 16bit only\ndiff --git a/fs/xfs/libxfs/xfs_health.h b/fs/xfs/libxfs/xfs_health.h\nindex 1d45cf5789e8..932b447190da 100644\n--- a/fs/xfs/libxfs/xfs_health.h\n+++ b/fs/xfs/libxfs/xfs_health.h\n@@ -104,6 +104,7 @@ struct xfs_rtgroup;\n /* Don't propagate sick status to ag health summary during inactivation */\n #define XFS_SICK_INO_FORGET\t(1 << 12)\n #define XFS_SICK_INO_DIRTREE\t(1 << 13)  /* directory tree structure */\n+#define XFS_SICK_INO_FSVERITY\t(1 << 14)  /* fsverity metadata */\n \n /* Primary evidence of health problems in a given group. */\n #define XFS_SICK_FS_PRIMARY\t(XFS_SICK_FS_COUNTERS | \\\n@@ -140,7 +141,8 @@ struct xfs_rtgroup;\n \t\t\t\t XFS_SICK_INO_XATTR | \\\n \t\t\t\t XFS_SICK_INO_SYMLINK | \\\n \t\t\t\t XFS_SICK_INO_PARENT | \\\n-\t\t\t\t XFS_SICK_INO_DIRTREE)\n+\t\t\t\t XFS_SICK_INO_DIRTREE | \\\n+\t\t\t\t XFS_SICK_INO_FSVERITY)\n \n #define XFS_SICK_INO_ZAPPED\t(XFS_SICK_INO_BMBTD_ZAPPED | \\\n \t\t\t\t XFS_SICK_INO_BMBTA_ZAPPED | \\\ndiff --git a/fs/xfs/xfs_fsverity.c b/fs/xfs/xfs_fsverity.c\nindex ef5cf97ad700..8ac810f0ffa1 100644\n--- a/fs/xfs/xfs_fsverity.c\n+++ b/fs/xfs/xfs_fsverity.c\n@@ -84,16 +84,23 @@ xfs_fsverity_get_descriptor(\n \t\treturn error;\n \n \tdesc_size = be32_to_cpu(d_desc_size);\n-\tif (XFS_IS_CORRUPT(mp, desc_size > FS_VERITY_MAX_DESCRIPTOR_SIZE))\n+\tif (XFS_IS_CORRUPT(mp, desc_size > FS_VERITY_MAX_DESCRIPTOR_SIZE)) {\n+\t\txfs_inode_mark_sick(XFS_I(inode), XFS_SICK_INO_FSVERITY);\n \t\treturn -ERANGE;\n-\tif (XFS_IS_CORRUPT(mp, desc_size > desc_size_pos))\n+\t}\n+\n+\tif (XFS_IS_CORRUPT(mp, desc_size > desc_size_pos)) {\n+\t\txfs_inode_mark_sick(XFS_I(inode), XFS_SICK_INO_FSVERITY);\n \t\treturn -ERANGE;\n+\t}\n \n \tif (!buf_size)\n \t\treturn desc_size;\n \n-\tif (XFS_IS_CORRUPT(mp, desc_size > buf_size))\n+\tif (XFS_IS_CORRUPT(mp, desc_size > buf_size)) {\n+\t\txfs_inode_mark_sick(XFS_I(inode), XFS_SICK_INO_FSVERITY);\n \t\treturn -ERANGE;\n+\t}\n \n \tdesc_pos = round_down(desc_size_pos - desc_size, blocksize);\n \terror = fsverity_pagecache_read(inode, buf, desc_size, desc_pos);\ndiff --git a/fs/xfs/xfs_health.c b/fs/xfs/xfs_health.c\nindex 239b843e83d4..be66760fb120 100644\n--- a/fs/xfs/xfs_health.c\n+++ b/fs/xfs/xfs_health.c\n@@ -625,6 +625,7 @@ static const struct ioctl_sick_map ino_map[] = {\n \t{ XFS_SICK_INO_DIR_ZAPPED,\tXFS_BS_SICK_DIR },\n \t{ XFS_SICK_INO_SYMLINK_ZAPPED,\tXFS_BS_SICK_SYMLINK },\n \t{ XFS_SICK_INO_DIRTREE,\tXFS_BS_SICK_DIRTREE },\n+\t{ XFS_SICK_INO_FSVERITY,\tXFS_BS_SICK_FSVERITY },\n };\n \n /* Fill out bulkstat health info. */\n",
    "prefixes": [
        "v7",
        "21/22"
    ]
}