get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227820,
    "url": "http://patchwork.ozlabs.org/api/patches/2227820/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260424101508.505501-1-pvorel@suse.cz/",
    "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": "<20260424101508.505501-1-pvorel@suse.cz>",
    "list_archive_url": null,
    "date": "2026-04-24T10:15:07",
    "name": "[v2,1/1] ioctl_pidfd06: Update kernel version",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "78d66b124235ca90c7b698bdafe15bbb7cd97e47",
    "submitter": {
        "id": 70792,
        "url": "http://patchwork.ozlabs.org/api/people/70792/?format=api",
        "name": "Petr Vorel",
        "email": "pvorel@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260424101508.505501-1-pvorel@suse.cz/mbox/",
    "series": [
        {
            "id": 501337,
            "url": "http://patchwork.ozlabs.org/api/series/501337/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501337",
            "date": "2026-04-24T10:15:07",
            "name": "[v2,1/1] ioctl_pidfd06: Update kernel version",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/501337/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227820/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227820/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=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=klDGP66e;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=wuojjo3w;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=klDGP66e;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=wuojjo3w;\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)",
            "smtp-out1.suse.de;\n\tnone"
        ],
        "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 4g283g3rzMz1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 20:15:26 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 422673E2DE1\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 12:15:24 +0200 (CEST)",
            "from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::4])\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 4180D3E15D7\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 12:15:20 +0200 (CEST)",
            "from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 607951000A62\n for <ltp@lists.linux.it>; Fri, 24 Apr 2026 12:15:18 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id 139F06A867;\n Fri, 24 Apr 2026 10:15:17 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C35F0593A4;\n Fri, 24 Apr 2026 10:15:16 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id P2FoLrRC62kDcQAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Fri, 24 Apr 2026 10:15:16 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777025717;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=VWR8Mi6eEpjU3UcrDh48Q2lpsg0bZMYwG0qFQwMYgDk=;\n b=klDGP66eEP5lD9RWD+auCYgyHknLId/+n+UzVpPnJPH7XnY9Xhhmq76C3WHt/cXuT3U2zG\n ngpXHB+yYU5f7GEk6hG3qw0RTU5u1aQ1Eml6UHg6OFJa8YPS6fG4fasZ1WDIMsblAuQR7w\n 4SR8IlotpSMuyvIWSB8LzUraDD2p+kY=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777025717;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=VWR8Mi6eEpjU3UcrDh48Q2lpsg0bZMYwG0qFQwMYgDk=;\n b=wuojjo3wPpMDrfua/EbbyPPcIj/q4rMoELj+6fsmcHLcRVFFq5Mo1tS5OU+FzfG/Ly6SXX\n JCOgeSuET/JXmtDw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1777025717;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=VWR8Mi6eEpjU3UcrDh48Q2lpsg0bZMYwG0qFQwMYgDk=;\n b=klDGP66eEP5lD9RWD+auCYgyHknLId/+n+UzVpPnJPH7XnY9Xhhmq76C3WHt/cXuT3U2zG\n ngpXHB+yYU5f7GEk6hG3qw0RTU5u1aQ1Eml6UHg6OFJa8YPS6fG4fasZ1WDIMsblAuQR7w\n 4SR8IlotpSMuyvIWSB8LzUraDD2p+kY=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1777025717;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=VWR8Mi6eEpjU3UcrDh48Q2lpsg0bZMYwG0qFQwMYgDk=;\n b=wuojjo3wPpMDrfua/EbbyPPcIj/q4rMoELj+6fsmcHLcRVFFq5Mo1tS5OU+FzfG/Ly6SXX\n JCOgeSuET/JXmtDw=="
        ],
        "From": "Petr Vorel <pvorel@suse.cz>",
        "To": "ltp@lists.linux.it",
        "Date": "Fri, 24 Apr 2026 12:15:07 +0200",
        "Message-ID": "<20260424101508.505501-1-pvorel@suse.cz>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-Spamd-Result": "default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[];\n R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000];\n MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[];\n FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.cz:mid,suse.cz:email];\n FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_SEVEN(0.00)[7];\n RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]",
        "X-Spam-Score": "-2.80",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,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-4.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-4.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH v2 1/1] ioctl_pidfd06: Update kernel version",
        "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": "Kernel commit ab89060fbc92e (\"pidfs: return -EREMOTE when PIDFD_GET_INFO\nis called on another ns\") from v7.0 was backported into stable/LTS\nkernels v6.18.14 (7446125afb6d9) and v6.19.10 (2920abaf56c09).\nUpdate errnos for these stable/LTS kernels (do not treat older behavior\nas an error).\n\nFollow-up: f630471a6520 (\"ioctl_pidfd06: Select expected errno for PIDFD_GET_INFO across pidns\")\nReported-by: Wei Gao <wegao@suse.com>\nSigned-off-by: Petr Vorel <pvorel@suse.cz>\n---\nAlternative approach for Wei's fix:\nhttps://patchwork.ozlabs.org/project/ltp/patch/20260406023538.14739-1-wegao@suse.com/\nhttps://lore.kernel.org/ltp/20260406023538.14739-1-wegao@suse.com/\n\nChanges v1->v2:\n* Cover also 6.19.0..v6.19.9\n* Add Follow-up: tag (not Fixme: tag), commit was correct at the time.\n\nLink to v1:\nhttps://patchwork.ozlabs.org/project/ltp/patch/20260424060543.462475-1-pvorel@suse.cz/\nhttps://lore.kernel.org/ltp/20260424095900.GA500158@pevik/T/#t\n\n testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\nindex 0f24d4741f..bc90aafd17 100644\n--- a/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\n+++ b/testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c\n@@ -54,7 +54,12 @@ static void setup(void)\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/*\n+\t * ab89060fbc92e (\"pidfs: return -EREMOTE when PIDFD_GET_INFO is called on another ns\")\n+\t * from v7.0, backported to v6.18.14 and v6.19.10.\n+\t */\n+\tif (tst_kvercmp(6, 19, 10) >= 0 ||\n+\t    (tst_kvercmp(6, 18, 14) >= 0 && tst_kvercmp(6, 19, 0) < 0))\n \t\terr_nr = EREMOTE;\n }\n \n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}