get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219796,
    "url": "http://patchwork.ozlabs.org/api/patches/2219796/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260404134815.1638618-1-pavrampu@linux.ibm.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": "<20260404134815.1638618-1-pavrampu@linux.ibm.com>",
    "list_archive_url": null,
    "date": "2026-04-04T13:48:15",
    "name": "hugemmap41: Migrate ptrace-write-hugepage from libhugetlbfs v3",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a64fcbee370b268e691e7ad781db47b98f788203",
    "submitter": {
        "id": 91766,
        "url": "http://patchwork.ozlabs.org/api/people/91766/?format=api",
        "name": "Pavithra",
        "email": "pavrampu@linux.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260404134815.1638618-1-pavrampu@linux.ibm.com/mbox/",
    "series": [
        {
            "id": 498727,
            "url": "http://patchwork.ozlabs.org/api/series/498727/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498727",
            "date": "2026-04-04T13:48:15",
            "name": "hugemmap41: Migrate ptrace-write-hugepage from libhugetlbfs v3",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498727/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219796/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219796/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\" (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=ENLGOe7W;\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 4fnxks0d9Vz1yG2\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 05 Apr 2026 00:48:36 +1100 (AEDT)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id B48BD3E29F5\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  4 Apr 2026 15:48:31 +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) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 6FCD73DB1FE\n for <ltp@lists.linux.it>; Sat,  4 Apr 2026 15:48:27 +0200 (CEST)",
            "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.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 65C22100045A\n for <ltp@lists.linux.it>; Sat,  4 Apr 2026 15:48:26 +0200 (CEST)",
            "from pps.filterd (m0353729.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6346tKYx3513604; Sat, 4 Apr 2026 13:48:24 GMT",
            "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4datap13cm-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Sat, 04 Apr 2026 13:48:24 +0000 (GMT)",
            "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 6347WOYb021696;\n Sat, 4 Apr 2026 13:48:23 GMT",
            "from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225])\n by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d6sat1pj2-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Sat, 04 Apr 2026 13:48:23 +0000",
            "from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com\n [10.20.54.105])\n by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 634DmJut45023734\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Sat, 4 Apr 2026 13:48:19 GMT",
            "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 4375420049;\n Sat,  4 Apr 2026 13:48:19 +0000 (GMT)",
            "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 504CF20040;\n Sat,  4 Apr 2026 13:48:18 +0000 (GMT)",
            "from li-49acbccc-2994-11b2-a85c-d51b89e344f1.ibm.com.com (unknown\n [9.39.20.67]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Sat,  4 Apr 2026 13:48:17 +0000 (GMT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=pp1; bh=J75YtZ/qrPpU8X95djiTF5588ddZDHg2AZEv9BvEV\n 9g=; b=ENLGOe7WF/61XAGSNHk6/3h/NcJmkNVhAeiI8uvu0cih3JZN2OBb/nfT3\n wRVVVx3EeU8a41diXuXzC0/bQiFGJq6OeQjBdp2AUDxanx3B3dr51rKRladnGomz\n YyFS1c2w4R0N1XPjX0An43Ve4VfjWSRILBaN5pP72/EKtMv8sA4NhzxqHeLi0pY3\n Ellm1OYrwYoC0GapgG75PNhYxmXBLIjsKdY8h4I0HNtyBAmY/RRRLVu3mIVyerbr\n xtJohYR9V1gxtekb9QutNh31Eig0UxjNa6cOywvymOmdXN6oIOnkeXpR0+zdiYDH\n e3I4pPv54MMzI+LtIfqEy0TvAJjRA==",
        "From": "Pavithra <pavrampu@linux.ibm.com>",
        "To": "ltp@lists.linux.it",
        "Date": "Sat,  4 Apr 2026 19:18:15 +0530",
        "Message-ID": "<20260404134815.1638618-1-pavrampu@linux.ibm.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "MIME-Version": "1.0",
        "X-TM-AS-GCONF": "00",
        "X-Authority-Analysis": "v=2.4 cv=Bp+QAIX5 c=1 sm=1 tr=0 ts=69d116a8 cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=uAbxVGIbfxUO_5tXvNgY:22 a=VnNF1IyMAAAA:8 a=JAEoehrIkcouhSjHoGMA:9",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDA0MDEyOSBTYWx0ZWRfX4HQQeE0S+YJC\n D7rIztidlfu6Rfa38iAghA0AC21ca3k0HHHoeA5LU0vl6hMN1tRJ+MoBBVuB/vlp4hNreMYnUqL\n 42IFn6tT3cD+KRYzzy2r7ufq9+yzqfwqzHQvVDznaGBUnmrH3YsLa2CXtba06kNZOajj8cRDA5X\n dUytjDnh98I9E3msqr2WTN/nU6hb1uSXIpTI1Qxi+bRI9ZXugDlacc6jL4WqVjTUzaZ1Eykb1hH\n EeiqdkE3rq7zQw8PyLAd01W2UXM2uISrtu5+rjl4LnOjIifuvLuVIrfIqlTKE/cO1DjDaizZGJO\n o6xInk+mcw3XpHt5xZrhaKxVYNXmQOj1DN+Q+u3Yr8k/8B+DLugOzKzx9nizDmJ9r/nnIt2TTfC\n E8W51OZbLZVNBJiSA/wVD3VF4B7g0nY2R6WKPH76bVoYX4HfylO/Ebuazii1PdQHDhBbAPfKFmL\n sLZymoOm5NM67PWi6og==",
        "X-Proofpoint-GUID": "FctJ_JjVc2lPtlTXxWfMPT57nZe4Oeye",
        "X-Proofpoint-ORIG-GUID": "FctJ_JjVc2lPtlTXxWfMPT57nZe4Oeye",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-04_01,2026-04-03_01,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n phishscore=0 malwarescore=0 suspectscore=0 adultscore=0 impostorscore=0\n spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604040129",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n SPF_HELO_NONE,SPF_PASS shortcircuit=no 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] hugemmap41: Migrate ptrace-write-hugepage from\n libhugetlbfs v3",
        "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>",
        "Cc": "pavrampu@linux.ibm.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": "This test verifies that ptrace POKEDATA and PEEKDATA operations work\ncorrectly on hugepage-backed memory regions. The test creates a child\nprocess that maps a hugepage, then the parent process uses ptrace to\nattach to the child and perform write/read operations on the child's\nhugepage memory.\n\nSigned-off-by: Pavithra <pavrampu@linux.ibm.com>\n---\n runtest/hugetlb                               |   1 +\n testcases/kernel/mem/.gitignore               |   1 +\n .../kernel/mem/hugetlb/hugemmap/hugemmap41.c  | 140 ++++++++++++++++++\n 3 files changed, 142 insertions(+)\n create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap41.c",
    "diff": "diff --git a/runtest/hugetlb b/runtest/hugetlb\nindex 0896d3c94..14ca64018 100644\n--- a/runtest/hugetlb\n+++ b/runtest/hugetlb\n@@ -36,6 +36,7 @@ hugemmap30 hugemmap30\n hugemmap31 hugemmap31\n hugemmap32 hugemmap32\n hugemmap34 hugemmap34\n+hugemmap41 hugemmap41\n hugemmap05_1 hugemmap05 -m\n hugemmap05_2 hugemmap05 -s\n hugemmap05_3 hugemmap05 -s -m\ndiff --git a/testcases/kernel/mem/.gitignore b/testcases/kernel/mem/.gitignore\nindex b4455de51..4bd7481b0 100644\n--- a/testcases/kernel/mem/.gitignore\n+++ b/testcases/kernel/mem/.gitignore\n@@ -36,6 +36,7 @@\n /hugetlb/hugemmap/hugemmap31\n /hugetlb/hugemmap/hugemmap32\n /hugetlb/hugemmap/hugemmap34\n+/hugetlb/hugemmap/hugemmap41\n /hugetlb/hugeshmat/hugeshmat01\n /hugetlb/hugeshmat/hugeshmat02\n /hugetlb/hugeshmat/hugeshmat03\ndiff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap41.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap41.c\nnew file mode 100644\nindex 000000000..98b9909be\n--- /dev/null\n+++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap41.c\n@@ -0,0 +1,140 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later\n+/*\n+ * Copyright (C) 2005-2006 David Gibson & Adam Litke, IBM Corporation.\n+ * Copyright (c) 2026 Pavithra <pavrampu@linux.ibm.com>\n+ */\n+\n+/*\n+ * Test ptrace write to hugepage memory.\n+ *\n+ * This test verifies that ptrace POKEDATA and PEEKDATA work correctly\n+ * on hugepage-backed memory regions. A child process maps a hugepage,\n+ * and the parent uses ptrace to write and read data from the child's\n+ * hugepage memory, ensuring that ptrace operations function properly\n+ * with hugepage mappings.\n+ */\n+\n+#include <stdlib.h>\n+#include <string.h>\n+#include <sys/mman.h>\n+#include <sys/ptrace.h>\n+#include <sys/types.h>\n+#include <sys/wait.h>\n+\n+#include \"tst_test.h\"\n+#include \"hugetlb.h\"\n+\n+#define CONST\t0xdeadbeefL\n+#define MNTPOINT \"hugetlbfs/\"\n+\n+static long hpage_size;\n+static int fd = -1;\n+\n+static void child(int hugefd, int pipefd[2])\n+{\n+\tvoid *p;\n+\n+\tSAFE_CLOSE(pipefd[0]);\n+\n+\tp = SAFE_MMAP(NULL, hpage_size, PROT_READ|PROT_WRITE, MAP_SHARED,\n+\t\t      hugefd, 0);\n+\n+\tmemset(p, 0, hpage_size);\n+\n+\ttst_res(TINFO, \"Child mapped data at %p\", p);\n+\n+\tSAFE_WRITE(SAFE_WRITE_ALL, pipefd[1], &p, sizeof(p));\n+\tSAFE_CLOSE(pipefd[1]);\n+\n+\tpause();\n+\t/* Child is killed by parent via PTRACE_KILL, so cleanup is not reached */\n+}\n+\n+static void do_poke(pid_t pid, void *p)\n+{\n+\tlong err;\n+\n+\ttst_res(TINFO, \"Poking at %p...\", p);\n+\terr = ptrace(PTRACE_POKEDATA, pid, p, (void *)CONST);\n+\tif (err)\n+\t\ttst_brk(TFAIL | TERRNO, \"ptrace(POKEDATA) failed\");\n+\n+\ttst_res(TINFO, \"Peeking at %p...\", p);\n+\terrno = 0;\n+\terr = ptrace(PTRACE_PEEKDATA, pid, p, NULL);\n+\tif (err == -1 && errno)\n+\t\ttst_brk(TFAIL | TERRNO, \"ptrace(PEEKDATA) failed\");\n+\n+\tif (err != CONST)\n+\t\ttst_brk(TFAIL, \"Value mismatch: got %lx, expected %lx\", err, CONST);\n+}\n+\n+static void run_test(void)\n+{\n+\tint pipefd[2];\n+\tlong err;\n+\tpid_t cpid;\n+\tvoid *p;\n+\tint status;\n+\n+\tfd = tst_creat_unlinked(MNTPOINT, 0, 0600);\n+\n+\tSAFE_PIPE(pipefd);\n+\n+\tcpid = SAFE_FORK();\n+\n+\tif (cpid == 0) {\n+\t\tchild(fd, pipefd);\n+\t\texit(0);\n+\t}\n+\n+\t/* Parent */\n+\tSAFE_CLOSE(pipefd[1]);\n+\tSAFE_READ(1, pipefd[0], &p, sizeof(p));\n+\tSAFE_CLOSE(pipefd[0]);\n+\n+\ttst_res(TINFO, \"Parent received address %p\", p);\n+\n+\terr = ptrace(PTRACE_ATTACH, cpid, NULL, NULL);\n+\tif (err)\n+\t\ttst_brk(TFAIL | TERRNO, \"ptrace(ATTACH) failed\");\n+\n+\tTST_PROCESS_STATE_WAIT(cpid, 't', 0);\n+\n+\tdo_poke(cpid, p);\n+\tdo_poke(cpid, p + getpagesize());\n+\n+\tSAFE_PTRACE(PTRACE_KILL, cpid, NULL, NULL);\n+\tSAFE_WAITPID(cpid, &status, 0);\n+\n+\tSAFE_CLOSE(fd);\n+\tfd = -1;\n+\n+\ttst_res(TPASS, \"ptrace write to hugepage succeeded\");\n+}\n+\n+static void setup(void)\n+{\n+\thpage_size = tst_get_hugepage_size();\n+}\n+\n+static void cleanup(void)\n+{\n+\tif (fd != -1)\n+\t\tSAFE_CLOSE(fd);\n+}\n+\n+static struct tst_test test = {\n+\t.tags = (struct tst_tag[]) {\n+\t\t{\"linux-git\", \"ebed4bfc8da8\"},\n+\t\t{}\n+\t},\n+\t.needs_root = 1,\n+\t.mntpoint = MNTPOINT,\n+\t.needs_hugetlbfs = 1,\n+\t.hugepages = {4, TST_NEEDS},\n+\t.forks_child = 1,\n+\t.setup = setup,\n+\t.cleanup = cleanup,\n+\t.test_all = run_test,\n+};\n",
    "prefixes": []
}