get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220034,
    "url": "http://patchwork.ozlabs.org/api/patches/2220034/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260406023538.14739-1-wegao@suse.com/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260406023538.14739-1-wegao@suse.com>",
    "list_archive_url": null,
    "date": "2026-04-06T02:35:34",
    "name": "[v1] ioctl_pidfd06: Accept both ESRCH and EREMOTE for PIDFD_GET_INFO",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6de50ae03594f854fbf64efce37292223f6cb5e0",
    "submitter": {
        "id": 85577,
        "url": "http://patchwork.ozlabs.org/api/people/85577/?format=api",
        "name": "Wei Gao",
        "email": "wegao@suse.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260406023538.14739-1-wegao@suse.com/mbox/",
    "series": [
        {
            "id": 498815,
            "url": "http://patchwork.ozlabs.org/api/series/498815/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498815",
            "date": "2026-04-06T02:35:34",
            "name": "[v1] ioctl_pidfd06: Accept both ESRCH and EREMOTE for PIDFD_GET_INFO",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498815/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220034/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220034/checks/",
    "tags": {},
    "related": [],
    "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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=G33fQAUj;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=fiAzlq/j;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; 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 (unknown [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fptjw2Gkkz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 12:36:00 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 81B453E29DC\n\tfor <incoming@patchwork.ozlabs.org>; Mon,  6 Apr 2026 04:35:47 +0200 (CEST)",
            "from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.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 52D843D9251\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 04:35:43 +0200 (CEST)",
            "from mail-wm1-x331.google.com (mail-wm1-x331.google.com\n [IPv6:2a00:1450:4864:20::331])\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 7C2336002EB\n for <ltp@lists.linux.it>; Mon,  6 Apr 2026 04:35:42 +0200 (CEST)",
            "by mail-wm1-x331.google.com with SMTP id\n 5b1f17b1804b1-4852a9c6309so31859685e9.0\n for <ltp@lists.linux.it>; Sun, 05 Apr 2026 19:35:42 -0700 (PDT)",
            "from localhost ([2a07:de40:b240:0:2ad6:ed42:2ad6:ed42])\n by smtp.gmail.com with UTF8SMTPSA id\n 5b1f17b1804b1-48899eb50cfsm80915645e9.32.2026.04.05.19.35.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 19:35:41 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1775442947; h=to : date :\n message-id : mime-version : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : content-type : content-transfer-encoding : sender : from;\n bh=/0W3uNpMbi0l66fktyYx7+nKtPsj97LCP++ulrb4DZE=;\n b=G33fQAUjT7ss0H7xNSYMt22ZuPbHPsNnSLIlKNZZvI89NHr0o5ZHcaiRO0+ftpVlLeCy1\n t8VacWjggBNAPSuHeX3Pj8o+wGJKXDj2vVZelmZUkXEKvSmBes2XcWFxDA8aR8dO9/FJ1LP\n IJvxRrMmNRGoG2szNaG4aVSttrzFECo=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1775442941; x=1776047741; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=/CY2DiXiOHL9/Dvkc2QK9TgZjkkjfwyFHYBeByxSDG8=;\n b=fiAzlq/j6RhGawACmKubBqa01E/W5/fqLFUsmVaiqYXDesqir+uN+V97IIwLQwWw1n\n Sxcgb2CcBYYwxIS/RHOx68XMktXeBxw7y3pMdmMfgjUlmChZ1XVInEPyusePFW4lIHIP\n HhTCfenHvDLLHaSNDT9HP6DAi36L3Um2/vId5DaJ1tj/XVQdA4jKrM6aUurKbVIBEH66\n 5oPpqr3vzfEYgEQWvlMVxTN0X7bRkkW1n68ZsT/tUPXbRfNawzvNktrmzn/Zd66in32g\n tKtz8eu7lvJFXHP9qjOXWS+wquA3xjEEIVNwFaBtRy8XuuvTUWZegTLZSKXQ1mf3J0pl\n bWbQ=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775442941; x=1776047741;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=/CY2DiXiOHL9/Dvkc2QK9TgZjkkjfwyFHYBeByxSDG8=;\n b=XhDDbnOyogRknj8SUNfClPjGXORqW87nuBZUm/bjr88LiR9kl9m46SDNkOoyQwtg8n\n v/bnCfW/stkAZpr4xuziS61iz/NkjWVSbMe41Zd/mRSwrSM6fvNIHKpSkBLZrTQSkVB0\n ljsY6csF1F8sduZaq/gsW/u1ajGWZ6UllHQKzsGPZ5raxsrsAMXZG1zN6qP70oFnhZ6o\n wZBmSMp6MeI1EHt2aXCyq7+zdBhR4QT3VvFMLI9w3U5ybTH9mCxH17j8rU5ojZoREUGG\n u9K+ZfwUmy+9fKelr2k+gRwtdNxeUcWsgbJcpkqnsmh1MBwnunysaHIafs1xbl7HRIHI\n 5noA==",
        "X-Gm-Message-State": "AOJu0Yzj367TLeavlU5hRaemWJ9ASPIDetL8MERQOJJZXGM6LgL3z6PB\n YCyyhc+6/nYiEYdSRJZfwTM4ZQQILcxOQYv7/x2HSRTqxIKTP00oD6zUEbqxakr4c6AHlwjh9eY\n Ejn4=",
        "X-Gm-Gg": "AeBDietOeu/xLzNapsqggco5WlgX8CHa0jZzBgpBCPhMHxdAt3M1ysK6kXhJpwkLEYm\n /vAJG8iJAMVLrUpFbptjzwKtrnABgMMDTNeXOmTj/jOJLREF9CrC0JhTXclPJI9VVVw9+cqMlec\n Ss/MsI9JkbV8Xzb+loFPWS+7k4HRqZXhcZGS3NRWKHTGXawXiWWX6QQpKfLfV1aIi3PE7z/RUIi\n G23yZw2OQfnjrZ+x3bc6xWvaF8RPVEodLKThWEu/rcNg5AsirwwkoG4lDWholOAPwzLgNljsEzC\n RrUtracNIEum4fq6rwPenoBl1w5WTlceKo+bwCqQi+e/Ib7KHqsTDvm4dhZdi7fympK3v+H5ck/\n AyOXaVre/DT5g4JKUToqrpZkiKCarZ7yPgLOsVPOAMveHoImS+jt8gu8Ma1vIBdjHLzC3xRcmtq\n 32xc574alFRK/fJk1Xe91tlQ==",
        "X-Received": "by 2002:a05:600c:4443:b0:487:20ee:bef6 with SMTP id\n 5b1f17b1804b1-48899724fb4mr156678855e9.11.1775442941541;\n Sun, 05 Apr 2026 19:35:41 -0700 (PDT)",
        "To": "ltp@lists.linux.it",
        "Date": "Mon,  6 Apr 2026 02:35:34 +0000",
        "Message-ID": "<20260406023538.14739-1-wegao@suse.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no 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 v1] ioctl_pidfd06: Accept both ESRCH and EREMOTE for\n PIDFD_GET_INFO",
        "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>",
        "From": "Wei Gao via ltp <ltp@lists.linux.it>",
        "Reply-To": "Wei Gao <wegao@suse.com>",
        "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": "LTP commit f630471a6520 attempted to handle this using a kernel version\ncheck (7.0.0). However, this is proving unreliable as the change is\nappearing in earlier kernel versions (e.g., 6.19.x) due to different\nrelease cycles or backports.\n\nFixes: f630471a6520 (\"ioctl_pidfd06: Select expected errno for PIDFD_GET_INFO across pidns\")\nSigned-off-by: Wei Gao <wegao@suse.com>\n---\n testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c | 13 ++++++++-----\n 1 file changed, 8 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\nindex 0f24d4741..fec85d680 100644\n--- a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\n+++ b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\n@@ -14,7 +14,10 @@\n \n static struct tst_clone_args *args;\n static struct pidfd_info *info;\n-static int err_nr = ESRCH;\n+static int exp_errnos[] = {\n+\tESRCH,\n+\tEREMOTE,\n+};\n \n static void run(void)\n {\n@@ -42,7 +45,10 @@ static void run(void)\n \targs->exit_signal = SIGCHLD;\n \n \tif (!SAFE_CLONE(args)) {\n-\t\tTST_EXP_FAIL(ioctl(pidfd, PIDFD_GET_INFO, info), err_nr);\n+\t\tTST_EXP_FAIL_ARR(\n+\t\t\t\tioctl(pidfd, PIDFD_GET_INFO, info),\n+\t\t\t\texp_errnos, ARRAY_SIZE(exp_errnos)\n+\t\t\t\t);\n \t\texit(0);\n \t}\n \n@@ -53,9 +59,6 @@ static void setup(void)\n {\n \tif (!ioctl_pidfd_info_exit_supported())\n \t\ttst_brk(TCONF, \"PIDFD_INFO_EXIT is not supported by ioctl()\");\n-\n-\tif (tst_kvercmp(7, 0, 0) >= 0)\n-\t\terr_nr = EREMOTE;\n }\n \n static struct tst_test test = {\n",
    "prefixes": [
        "v1"
    ]
}