get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232287,
    "url": "http://patchwork.ozlabs.org/api/patches/2232287/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/902b5c8139a681df83d78551d5bd4bcfa54ed3d4.1777877814.git.sayalip@linux.ibm.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<902b5c8139a681df83d78551d5bd4bcfa54ed3d4.1777877814.git.sayalip@linux.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/902b5c8139a681df83d78551d5bd4bcfa54ed3d4.1777877814.git.sayalip@linux.ibm.com/",
    "date": "2026-05-04T08:24:48",
    "name": "[v6,11/14] selftests/mm: skip uffd-wp-mremap if UFFD write-protect is unsupported",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "f770ae0d28c806a7f908cf4cd1e35fd102a676f4",
    "submitter": {
        "id": 92656,
        "url": "http://patchwork.ozlabs.org/api/people/92656/?format=api",
        "name": "Sayali Patil",
        "email": "sayalip@linux.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/902b5c8139a681df83d78551d5bd4bcfa54ed3d4.1777877814.git.sayalip@linux.ibm.com/mbox/",
    "series": [
        {
            "id": 502625,
            "url": "http://patchwork.ozlabs.org/api/series/502625/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=502625",
            "date": "2026-05-04T08:24:37",
            "name": "selftests/mm: fix failures and robustness improvements",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/502625/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232287/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232287/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-20410-incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=ACS/8LjP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-20410-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=148.163.158.5",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=ACS/8LjP;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.ibm.com\n (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com; receiver=lists.ozlabs.org)"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\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 4g8F9h5jhfz1yJV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 04 May 2026 18:26:48 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4g8F8s2XJdz3bl7;\n\tMon, 04 May 2026 18:26:05 +1000 (AEST)",
            "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4g8F8r0lQqz309S\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 04 May 2026 18:26:03 +1000 (AEST)",
            "from pps.filterd (m0360072.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6447sMbN852737;\n\tMon, 4 May 2026 08:25:48 GMT",
            "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dw9y4dxm7-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 04 May 2026 08:25:47 +0000 (GMT)",
            "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma12.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 6448OO24032710;\n\tMon, 4 May 2026 08:25:47 GMT",
            "from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228])\n\tby ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dwukq4fsf-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tMon, 04 May 2026 08:25:46 +0000 (GMT)",
            "from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com\n [10.20.54.101])\n\tby smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 6448PhGV16777684\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tMon, 4 May 2026 08:25:43 GMT",
            "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 86ACD20043;\n\tMon,  4 May 2026 08:25:43 +0000 (GMT)",
            "from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 5286720040;\n\tMon,  4 May 2026 08:25:40 +0000 (GMT)",
            "from li-3f69264c-2ce6-11b2-a85c-c3f414d24014.bl1-in.ibm.com (unknown\n [9.123.3.209])\n\tby smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tMon,  4 May 2026 08:25:40 +0000 (GMT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1777883165;\n\tcv=none;\n b=Qf2aqlgBbWWJFoVexfpUA1YZLYHXeMobHcsCkbmn73lbClEfdW4NrTfBNutCix0a+9pnkjg+k5PY3t8eQqc31JPhkbWEe1ZldQyHazAOCOsGbc74EM5TnHMCyee5AjPSgzlAcaCzmjvYn0LNSvhxS4o9pjg4FHcUM6t552WKu0+SWM+ySIq1zBTxVB5Bm7UnRQ5hHRMxEVMuZIGlR26NR6Qvd3dMctL6XmyZBAzF0k/O4I+c2DENWlrJFkzfkoM6QLkO4VlceoCRR6Pc2CnFnQzk8oS+cBAgDMffMoFf9KRvBiJx0CSkvqYFP3s3Cy3fh1zYcweFZxMJy7kYhbqf6w==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1777883165; c=relaxed/relaxed;\n\tbh=eEOC4G2ZWST9olhihUFWeAxxSaTnVqTcR+V7Cs8ArgY=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=oZGh46vK9wH21LBl/WAj6c9jeFasKRf9wx1jARlEqsO6emd9Tk4k+xjV00NN56H6PMvMoz9+LFCj7WzY/RP4h5NDMOWVeJVkFPtPyb+zt42BchdJrR8mte2b+SXZ99/p39pI/ACa1OpMhl0C1TEwBD5wcYLXR+u09ElId6eknTYwUGLvNHki5QW7YDHc6ZhVGyFVdBK9Xumq7dJzL5cHax/p5s6wfSOn28vYi6zf0iA7QrN0B1HfHn1h9rAHmjnPPQ/Vd4khI9jn9K4ZiYn19tJH1ZWRgeNRlyYvFqzf2q+3EZ8KOnL7n7bSc+3fgvYq9f7QwVtP9n/fNNOS99Xadg==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=ACS/8LjP; dkim-atps=neutral;\n spf=pass (client-ip=148.163.158.5; helo=mx0b-001b2d01.pphosted.com;\n envelope-from=sayalip@linux.ibm.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.ibm.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:subject:to; s=pp1; bh=eEOC4G2ZWST9olhih\n\tUFWeAxxSaTnVqTcR+V7Cs8ArgY=; b=ACS/8LjPnmKRpBgCC9clEf0/n9SAnNQlh\n\tvaZvmG3b405kEFBFbEdI8XZTePwKeK+q3sxB79UqdpXw09jIx+EV3hpLcc33+oif\n\tCjn45BgbY0dwW9vLko02n51xLV6HDWEwexHLNPtZWAh3S0VtbR6wWYtbOh5eQXu0\n\tkaFv+EpfH6m1Llkfgsn6FLExLQ/2Qz7aS5UX4PlPt6jMkfAE2eJPlaANk65IZCCA\n\tWwR0UD3OJUq2fumgTANklNhZ4zM5qyJLEFdpnn+aA9vY+LqjopYdTyCqtvlQDAlp\n\txPx1FrysyKnp/cuq5qiMecf8mnO/fbcB/yI/MCqj2yDyaN1Odq5AQ==",
        "From": "Sayali Patil <sayalip@linux.ibm.com>",
        "To": "Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org>,\n        linux-mm@kvack.org, linux-kernel@vger.kernel.org,\n        linux-kselftest@vger.kernel.org,\n        Ritesh Harjani <ritesh.list@gmail.com>",
        "Cc": "David Hildenbrand <david@kernel.org>, Zi Yan <ziy@nvidia.com>,\n        Michal Hocko <mhocko@kernel.org>, Oscar Salvador <osalvador@suse.de>,\n        Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,\n        Dev Jain <dev.jain@arm.com>, Liam.Howlett@oracle.com,\n        linuxppc-dev@lists.ozlabs.org, Miaohe Lin <linmiaohe@huawei.com>,\n        Venkat Rao Bagalkote <venkat88@linux.ibm.com>,\n        Sayali Patil <sayalip@linux.ibm.com>",
        "Subject": "[PATCH v6 11/14] selftests/mm: skip uffd-wp-mremap if UFFD\n write-protect is unsupported",
        "Date": "Mon,  4 May 2026 13:54:48 +0530",
        "Message-ID": "\n <902b5c8139a681df83d78551d5bd4bcfa54ed3d4.1777877814.git.sayalip@linux.ibm.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<cover.1777877814.git.sayalip@linux.ibm.com>",
        "References": "<cover.1777877814.git.sayalip@linux.ibm.com>",
        "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org",
        "List-Id": "<linuxppc-dev.lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>",
        "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>",
        "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>",
        "Precedence": "list",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-TM-AS-GCONF": "00",
        "X-Proofpoint-Reinject": "loops=2 maxloops=12",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTA0MDA4NyBTYWx0ZWRfX3Yh6pK2He7kU\n Di7hUwVi+46Wh6Yw7qJtS9XhcwJMF45xROzk8LwWbFXMiqxbTjyUYi2nvRj4Th8mrbGiyuSTIoK\n QJfFCUlzOPZoT2l9leH23zIf+pGFaF64Ev3X46oprqOs1Wx5dfZZma8GikZa7kksIct8IBpngoN\n CIFo3d3WwAHRW/EyaTAbkzFPI2v88fQ8uYFMHVgv9TOdMe+nETF7wXGHSqbYykK1wrVX5tGdzNa\n c/5/+b9qOhUvKW8pcZtUyOHmW9fqwb7ZjxC3vc+p1iRnAeVpLztfPczq5UFAcKlHSO975eo2W+X\n 1MAznx2TlYlsBF3067s5S6aHY/nR4mbVaG8h5BGgghuFcBBc5+KSaPfpEMINlNgJCBrwZbNWWdK\n Auj0SR4twfVDHCz4Ls2AGx5E1s3V6edM3f2zJhdcUk3ycFaZSUaVDt2e70lcc4CdZvhdlgJuePb\n TSV+EgYllre12BHNYug==",
        "X-Authority-Analysis": "v=2.4 cv=J4GaKgnS c=1 sm=1 tr=0 ts=69f8580c cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=NGcC8JguVDcA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=RzCfie-kr_QcCd8fBx8p:22 a=VnNF1IyMAAAA:8 a=njH7lnjfnPuJvX8OOgMA:9",
        "X-Proofpoint-GUID": "iO3DPjSToF56TX06C1VMlVCNxALVfiX3",
        "X-Proofpoint-ORIG-GUID": "-dBqZdtVfJELVuVJqNqzGacCYupTfoQu",
        "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-05-04_03,2026-04-30_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 clxscore=1015 malwarescore=0 bulkscore=0 suspectscore=0\n priorityscore=1501 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605040087",
        "X-Spam-Status": "No, score=-0.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tRCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,\n\tSPF_PASS autolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "The uffd-wp-mremap test requires the UFFD_FEATURE_PAGEFAULT_FLAG_WP\ncapability. On systems where userfaultfd write-protect is\nnot supported, uffd_register() fails and the test reports failures.\n\nCheck for the required feature at startup and skip the test when the\nUFFD_FEATURE_PAGEFAULT_FLAG_WP capability is not present,\npreventing false failures on unsupported configurations.\n\nBefore patch:\n running ./uffd-wp-mremap\n ------------------------\n  [INFO] detected THP size: 256 KiB\n  [INFO] detected THP size: 512 KiB\n  [INFO] detected THP size: 1024 KiB\n  [INFO] detected THP size: 2048 KiB\n  [INFO] detected hugetlb page size: 2048 KiB\n  [INFO] detected hugetlb page size: 1048576 KiB\n 1..24\n  [RUN] test_one_folio(size=65536, private=false, swapout=false,\n  hugetlb=false)\n not ok 1 uffd_register() failed\n  [RUN] test_one_folio(size=65536, private=true, swapout=false,\n  hugetlb=false)\n not ok 2 uffd_register() failed\n  [RUN] test_one_folio(size=65536, private=false, swapout=true,\n  hugetlb=false)\n not ok 3 uffd_register() failed\n  [RUN] test_one_folio(size=65536, private=true, swapout=true,\n  hugetlb=false)\n not ok 4 uffd_register() failed\n  [RUN] test_one_folio(size=262144, private=false, swapout=false,\n  hugetlb=false)\n not ok 5 uffd_register() failed\n  [RUN] test_one_folio(size=524288, private=false, swapout=false,\n  hugetlb=false)\n not ok 6 uffd_register() failed\n .\n .\n .\n Bail out! 24 out of 24 tests failed\n  Totals: pass:0 fail:24 xfail:0 xpass:0 skip:0 error:0\n [FAIL]\nnot ok 1 uffd-wp-mremap # exit=1\n\nAfter patch:\n running ./uffd-wp-mremap\n ------------------------\n 1..0 # SKIP uffd-wp feature not supported\n [SKIP]\nok 1 uffd-wp-mremap # SKIP\n\nTested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>\nSigned-off-by: Sayali Patil <sayalip@linux.ibm.com>\n---\n tools/testing/selftests/mm/uffd-wp-mremap.c | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/tools/testing/selftests/mm/uffd-wp-mremap.c b/tools/testing/selftests/mm/uffd-wp-mremap.c\nindex 17186d4a4147..8f288484d5f5 100644\n--- a/tools/testing/selftests/mm/uffd-wp-mremap.c\n+++ b/tools/testing/selftests/mm/uffd-wp-mremap.c\n@@ -19,6 +19,17 @@ static size_t thpsizes[20];\n static int nr_hugetlbsizes;\n static size_t hugetlbsizes[10];\n \n+static void check_uffd_wp_feature_supported(void)\n+{\n+\tuint64_t features = 0;\n+\n+\tif (uffd_get_features(&features))\n+\t\tksft_exit_skip(\"failed to get available features (%d)\\n\", errno);\n+\n+\tif (!(features & UFFD_FEATURE_PAGEFAULT_FLAG_WP))\n+\t\tksft_exit_skip(\"uffd-wp feature not supported\\n\");\n+}\n+\n static int detect_thp_sizes(size_t sizes[], int max)\n {\n \tint count = 0;\n@@ -336,6 +347,8 @@ int main(int argc, char **argv)\n \tstruct thp_settings settings;\n \tint i, j, plan = 0;\n \n+\tcheck_uffd_wp_feature_supported();\n+\n \tpagesize = getpagesize();\n \tnr_thpsizes = detect_thp_sizes(thpsizes, ARRAY_SIZE(thpsizes));\n \tnr_hugetlbsizes = detect_hugetlb_page_sizes(hugetlbsizes,\n",
    "prefixes": [
        "v6",
        "11/14"
    ]
}