get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217650,
    "url": "http://patchwork.ozlabs.org/api/patches/2217650/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260330100750.858390-1-vasileios.almpanis@virtuozzo.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": "<20260330100750.858390-1-vasileios.almpanis@virtuozzo.com>",
    "list_archive_url": null,
    "date": "2026-03-30T10:07:44",
    "name": "pidns32: fix PID namespace nesting depth off-by-one",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "9d25aca17e4d15bbba112a966ae83121a8072624",
    "submitter": {
        "id": 92306,
        "url": "http://patchwork.ozlabs.org/api/people/92306/?format=api",
        "name": "Vasileios Almpanis",
        "email": "vasileios.almpanis@virtuozzo.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260330100750.858390-1-vasileios.almpanis@virtuozzo.com/mbox/",
    "series": [
        {
            "id": 497992,
            "url": "http://patchwork.ozlabs.org/api/series/497992/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=497992",
            "date": "2026-03-30T10:07:44",
            "name": "pidns32: fix PID namespace nesting depth off-by-one",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497992/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217650/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217650/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=ao5IkwKy;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=virtuozzo.com header.i=@virtuozzo.com header.a=rsa-sha256\n header.s=relay header.b=sl+ryoWq;\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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fkn4c3QT1z1yG8\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 21:08:00 +1100 (AEDT)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 632BD3E4F05\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 30 Mar 2026 12:07:57 +0200 (CEST)",
            "from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::7])\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 6070D3CED08\n for <ltp@lists.linux.it>; Mon, 30 Mar 2026 12:07:53 +0200 (CEST)",
            "from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111])\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-7.smtp.seeweb.it (Postfix) with ESMTPS id 7567F20093D\n for <ltp@lists.linux.it>; Mon, 30 Mar 2026 12:07:53 +0200 (CEST)",
            "from [130.117.225.5] (helo=dev010.aci.vzint.dev)\n by relay.virtuozzo.com with esmtp (Exim 4.96)\n (envelope-from <vasileios.almpanis@virtuozzo.com>)\n id 1w79V8-0029vd-1b; Mon, 30 Mar 2026 12:07:44 +0200"
        ],
        "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=1774865277; 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=OuZ+OTLtNmTjWO0Lujdn8DsORJhS9wNuZONYZMm6HzY=;\n b=ao5IkwKy/7FTBSDiDObXDpeVzIQfF8914CYVnVsOhUIg1u7xtrLBPHdIS6sZD6MYbXLxY\n WNFNApGxdc7mGr40xz3prOnINr0d8nU2/j7LaPasD4ho0Q7bR2758lfD8IPNeIgQuTFTjmw\n rAItemyS4aI5m/0qbQzcLsXCr4nKsKY=",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From:\n Content-Type; bh=sePDNAW5dgssgolCZO7X76BkFFlRVH1ZG4MBZgb0qFU=; b=sl+ryoWqWcFL\n 4NrVnbqND4HFNGaSbPdxe0YIrR3DL6lVbZY1pxS6pxYOEdW76eDb2MI3euS2tkoX0K067McAuDlQq\n oTWEq0E9ar0rTQ4TPBxfXuPubHaIyaQbRutvrqupKOPxla/pIHKUOMjmXgODsABMwkCjzx1uViBsg\n fiaX6UhQzHL+B9FoXe5hZOomKuEIbYryU4tsGeNsE67J/h69jcOMkXp9gRLJ14vZbZGx6pkAzrSdq\n SBtrRI4mTmx+KdqnW6ZeCvqrj1BVqIooQtCFsT3LIvCKOFaFIJc24tW/vpWuwId4SwLjuS5DDk4K9\n Jm+1tnP+yHo0oeLTySWfmg==;"
        ],
        "To": "ltp@lists.linux.it",
        "Date": "Mon, 30 Mar 2026 10:07:44 +0000",
        "Message-ID": "<20260330100750.858390-1-vasileios.almpanis@virtuozzo.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,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-7.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-7.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH] pidns32: fix PID namespace nesting depth off-by-one",
        "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": "Vasileios Almpanis via ltp <ltp@lists.linux.it>",
        "Reply-To": "Vasileios Almpanis <vasileios.almpanis@virtuozzo.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": "The 2023 refactor used tst_atomic_inc() before clone with a zero-initial\ncounter, which only performed 31 CLONE_NEWPID nests while still expecting\nMAXNEST (32). Compare the level to MAXNEST first, then increment and clone,\nso the shared counter runs 0..32 and the chain reaches 32 nested namespaces\nagain.\n\nFixes: 647cfd468c3b (\"Refactor pidns32 test using new LTP API\")\nSigned-off-by: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>\n---\n testcases/kernel/containers/pidns/pidns32.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/testcases/kernel/containers/pidns/pidns32.c b/testcases/kernel/containers/pidns/pidns32.c\nindex fc9bf0aaa..3a272f569 100644\n--- a/testcases/kernel/containers/pidns/pidns32.c\n+++ b/testcases/kernel/containers/pidns/pidns32.c\n@@ -27,9 +27,11 @@ static pid_t child_func(void)\n {\n \tpid_t cpid = 0;\n \n-\tif (tst_atomic_inc(level) == MAXNEST)\n+\tif (tst_atomic_load(level) == MAXNEST)\n \t\treturn cpid;\n \n+\ttst_atomic_inc(level);\n+\n \tcpid = SAFE_CLONE(&args);\n \tif (!cpid) {\n \t\tchild_func();\n",
    "prefixes": []
}