get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220127,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2220127/?format=api",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/1.0/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260406133134.17238-2-always.starving0@gmail.com>",
    "date": "2026-04-06T13:31:00",
    "name": "[2/2] close: add test for double close EBADF",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "50bd887643e04be7c11220be3da2c319e3b8d456",
    "submitter": {
        "id": 92589,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/92589/?format=api",
        "name": "Jinseok Kim",
        "email": "always.starving0@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260406133134.17238-2-always.starving0@gmail.com/mbox/",
    "series": [
        {
            "id": 498853,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/498853/?format=api",
            "date": "2026-04-06T13:30:59",
            "name": "[1/2] close: remove unused headers and fix minor style issues",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498853/mbox/"
        }
    ],
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220127/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=H3GsJlBV;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [213.254.12.146])\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 4fq9HG0Y6Fz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 23:32:26 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id EE0693D0F0D\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  6 Apr 2026 15:32:23 +0200 (CEST)",
            "from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 3F42F3D0F4D\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 15:32:04 +0200 (CEST)",
            "from mail-pg1-x544.google.com (mail-pg1-x544.google.com\n [IPv6:2607:f8b0:4864:20::544])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-2.smtp.seeweb.it (Postfix) with ESMTPS id A8F62600628\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 15:32:03 +0200 (CEST)",
            "by mail-pg1-x544.google.com with SMTP id\n 41be03b00d2f7-c70f91776fcso1482232a12.0\n for <ltp@lists.linux.it>; Mon, 06 Apr 2026 06:32:03 -0700 (PDT)",
            "from localhost.localdomain ([211.196.223.197])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c76c65935cbsm12800269a12.26.2026.04.06.06.32.00\n for <ltp@lists.linux.it>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 06:32:00 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775482322; x=1776087122; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=3Zpl/uuIAznAQK7i0SGnLYs6CPCINXthrI2OlyKR5do=;\n b=H3GsJlBVWpauRtWIma/AH6Ko6q4I+FU6zCPB08CvTHLgkw2JwPgG1Xk2EYxS4Yb3Sh\n Qy6/rnuquhTyHZZtTkjj1fY6EIgOaMpWW8PAKymr9wCBzTNsBnsa9/kywQtrvpWWwPvh\n t1GgOVGw87OFuoNIiBqZjPOu+i45XPvPUla34wQSSeEoOPaGICsLNBmy5sq+aRg1B/2E\n NQh2XosRB8XorI++5jKw/Szu8vrsNEGyaay5oFG3Q8CvPUqMuhD7moH39Kq8XLYlEL3T\n gs/YYhCIT2o2INnVKvYpnTA4rDMwqjUtAOdB8RAI7OrhAPne0nOb+nvPUuxXKi/mjoDc\n Ps4g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775482322; x=1776087122;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=3Zpl/uuIAznAQK7i0SGnLYs6CPCINXthrI2OlyKR5do=;\n b=adGar0PNQ3tIxUuiNGU6gkyJUP7npBr3J0zzbJiDxocKXM5KC9x7daU0S1SW5/8IAn\n YPLNkSGAluCEyi0ePC0lCeIYRjCH6Ho0V4VGBWcHY5UKRfpQ/FhmVJVeZGfiSciV0x12\n rY8dq7tRMQDf3GCW+oZaRfV6z83p/drizEzqMeiYg9rGEltM65liNBlslJ10KuyRIq70\n KpF7iwxude7V+dYoIa7/ur1sDhr5lpWw+vM/j45dW0yBnJ/7qNXzuDJArMqDoeO/SPOR\n BUzOVXpk1JDIsS0BdJsFq6JZrqSsIQndzN4LTp/XqoSZoF1U1u40fwrbQFKJS9PzN8b1\n i/IA==",
        "X-Gm-Message-State": "AOJu0YzeK2q3c9DbrAAF0bXexuYboe8ltVPvEobxtT4H6l/rlL1gzCag\n 0FISeb/f8kUl1ZfqWQ87TnWrz5XB5m/PJIpWZOxXiurpsWxxu4gXy3yTZ49R8bJvNg==",
        "X-Gm-Gg": "AeBDietITgkdHaLh3W6WzW6UDuVLBVOXavSYdbeTdV6gFHQEqo6bx0iQVqHSNcGCtyS\n YQAUQOeE3Vj6gjBgNrvqi4qw/oSSZkUW69IMrfeMgB5jPgxz9J66VMpXIpCt8PiIKuXOOG4vMyr\n 9tU93dCn84u/Fwkg11SZ+tQcfb6LQ5ywqAhfFHwuSM9gjEjoDcygc7er+C7/VBbYPe2ftj38CKn\n Y0snF/iMFgnpEfQJgzZuq07QVDCEZGobbKAeK/WWW7SMZEoihbX0bAAmV7t/IgvSGUe+Af+FN9/\n /zFhJ8QkGUOsetctg9XB/YfvsazseM5mNjgfZfPCt7U8rH2rS082YvAsNo8DWRMayFY3AMRAp42\n JzKE9wZrwcAk7lLxLZQdeGh2yUORGoHwZh6is0VIZo0caghQeCXd4sylU/pY8vOSP3v/VxsNgZ5\n DQr07Rt7YlIcQjQSS3P6ETBv4v69Yon76ebmXTxpzvOpmg",
        "X-Received": "by 2002:a05:6a20:94c7:b0:398:a659:eb0 with SMTP id\n adf61e73a8af0-39f2f01eca1mr11827455637.34.1775482321687;\n Mon, 06 Apr 2026 06:32:01 -0700 (PDT)",
        "From": "Jinseok Kim <always.starving0@gmail.com>",
        "To": "ltp@lists.linux.it",
        "Date": "Mon,  6 Apr 2026 22:31:00 +0900",
        "Message-ID": "<20260406133134.17238-2-always.starving0@gmail.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260406133134.17238-1-always.starving0@gmail.com>",
        "References": "<20260406133134.17238-1-always.starving0@gmail.com>",
        "MIME-Version": "1.0",
        "X-Spam-Status": "No, score=0.3 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_ENVFROM_END_DIGIT,\n FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-2.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH 2/2] close: add test for double close EBADF",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "Verify that calling close() on an already closed file descriptor fails\nwith EBADF.\n\nThe existing close tests cover:\n- close01: successful close on valid file descriptors\n- close02: invalid file descriptor (-1)\n\nThis test adds coverage for a common state transition case where a\npreviously valid file descriptor becomes invalid after close().\n\nSigned-off-by: Jinseok Kim <always.starving0@gmail.com>\n---\n runtest/syscalls                           |  1 +\n testcases/kernel/syscalls/close/.gitignore |  1 +\n testcases/kernel/syscalls/close/close03.c  | 26 ++++++++++++++++++++++\n 3 files changed, 28 insertions(+)\n create mode 100644 testcases/kernel/syscalls/close/close03.c\n\n--\n2.43.0",
    "diff": "diff --git a/runtest/syscalls b/runtest/syscalls\nindex 5a2e8f048..71c2b9ec5 100644\n--- a/runtest/syscalls\n+++ b/runtest/syscalls\n@@ -134,6 +134,7 @@ clone304 clone304\n\n close01 close01\n close02 close02\n+close03 close03\n\n close_range01 close_range01\n close_range02 close_range02\ndiff --git a/testcases/kernel/syscalls/close/.gitignore b/testcases/kernel/syscalls/close/.gitignore\nindex 07d25bccf..1ed7e45cf 100644\n--- a/testcases/kernel/syscalls/close/.gitignore\n+++ b/testcases/kernel/syscalls/close/.gitignore\n@@ -1,2 +1,3 @@\n /close01\n /close02\n+/close03\ndiff --git a/testcases/kernel/syscalls/close/close03.c b/testcases/kernel/syscalls/close/close03.c\nnew file mode 100644\nindex 000000000..38950d00c\n--- /dev/null\n+++ b/testcases/kernel/syscalls/close/close03.c\n@@ -0,0 +1,26 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later\n+/*\n+ * Copyright (C) 2026 Jinseok Kim <always.starving0@gmail.com>\n+ */\n+\n+/*\\\n+ * Verify that calling close() twice on the same fd returns EBADF on\n+ * the second call.\n+ */\n+\n+#include <errno.h>\n+#include <fcntl.h>\n+#include \"tst_test.h\"\n+\n+static void run(void)\n+{\n+\tint fd = SAFE_OPEN(\"close03\", O_CREAT, 0600);\n+\n+\tTST_EXP_PASS(close(fd));\n+\tTST_EXP_FAIL(close(fd), EBADF);\n+}\n+\n+static struct tst_test test = {\n+\t.needs_tmpdir = 1,\n+\t.test_all = run,\n+};\n",
    "prefixes": [
        "2/2"
    ]
}