Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216786/?format=api
{ "id": 2216786, "url": "http://patchwork.ozlabs.org/api/patches/2216786/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/5bc0fe27cdd316ef6f776bf9b52b6c0de4bef54f.1774591179.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": "<5bc0fe27cdd316ef6f776bf9b52b6c0de4bef54f.1774591179.git.sayalip@linux.ibm.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/5bc0fe27cdd316ef6f776bf9b52b6c0de4bef54f.1774591179.git.sayalip@linux.ibm.com/", "date": "2026-03-27T07:16:03", "name": "[v3,09/13] selftests/mm: skip uffd-wp-mremap if UFFD write-protect is unsupported", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "19ffdacdf4aaeac86a6f81d7c56c6ccfdf0f9363", "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/5bc0fe27cdd316ef6f776bf9b52b6c0de4bef54f.1774591179.git.sayalip@linux.ibm.com/mbox/", "series": [ { "id": 497700, "url": "http://patchwork.ozlabs.org/api/series/497700/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497700", "date": "2026-03-27T07:15:54", "name": "selftests/mm: fix failures and robustness improvements", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/497700/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216786/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216786/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18910-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=plpbXOhg;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18910-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=plpbXOhg;\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\n [IPv6:2404:9400:21b9:f100::1])\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 4fhsSQ4mpcz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 18:18:30 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhsRv0bDSz3fK8;\n\tFri, 27 Mar 2026 18:18:03 +1100 (AEDT)", "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 4fhsRt15Gvz3fK1\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 18:18:01 +1100 (AEDT)", "from pps.filterd (m0353725.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62R3e8WX3644267;\n\tFri, 27 Mar 2026 07:17:53 GMT", "from ppma11.dal12v.mail.ibm.com\n (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d1ky0fs8x-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:52 +0000 (GMT)", "from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 62R7Cgcd004399;\n\tFri, 27 Mar 2026 07:17:51 GMT", "from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225])\n\tby ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d28c2e8qb-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tFri, 27 Mar 2026 07:17:51 +0000", "from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com\n [10.20.54.100])\n\tby smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 62R7HnRI36045108\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tFri, 27 Mar 2026 07:17:49 GMT", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id CA67F20043;\n\tFri, 27 Mar 2026 07:17:49 +0000 (GMT)", "from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 6E8082004D;\n\tFri, 27 Mar 2026 07:17:46 +0000 (GMT)", "from li-3f69264c-2ce6-11b2-a85c-c3f414d24014.ibm.com.com (unknown\n [9.124.208.5])\n\tby smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP;\n\tFri, 27 Mar 2026 07:17:46 +0000 (GMT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774595882;\n\tcv=none;\n b=fUCE2sHJUIsck82Pc9AYO4nrVa4igiUz8uyAm2/ZlwEGCVH5/dzuZrUNVb2tYLmlfSEBnnLww1OZrbxjrb3jE/k6+NO2Dfti/DdTxrj/7q5T5K+MF+vO0AFTv5lxGmkCO69VNUOL1Bjd+jl2va4taEfzz7dhlFD6AlLf5SzwoIK9PI8AcmHfMAxOAfqcQCakE3g0AqbZ2QiB3xeHmFpHfNXWAN4BZEdKI3J0bNoO68dbNvhBcdMdz2V7Mdc5Hrq2VDQJNv2ZG93USXuhzVzrYhujtIz75JVqtVFqM4JukAwkiuxIgRv2/0XFTb4LKs2C9A6VkxAqH+GiWxv/uetYBQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774595882; c=relaxed/relaxed;\n\tbh=BUL4pKTSEe0gAqr+Km+xx8EMdADlTk5q1TiL0S+Zbos=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=gowm8CLUZ8Dxe5EXOMMf9cmfdPdawUZUjEJRQga881UtyhXbCNUA6k+4dFsHN+Y+37Q8Vj7+DUxLrJV7j0IZMGy2DvHCOFWrIdCykHRiMB+k1oei5GrWyvD7EuuE1j26iSVPjh4MLqQ2h56vMO1xUurwLKTP47IR+LWt/pCxFhJWgFlGxW1jms6hEY27TbaJmXroiWvSjdyq4qp/UyanKIBlDgiTkcLnO1AqZdQ7XX9deF/G6EZk0DVUUIciH5ZQdIwljzI7HZsPL8F28tguQwYJdZUayXDZT/8hWFZghQgX+SA34VfTZUrVALQAtDQpzKxEx7kCW0VT5WWvhwlvew==", "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=plpbXOhg; 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=BUL4pKTSEe0gAqr+K\n\tm+xx8EMdADlTk5q1TiL0S+Zbos=; b=plpbXOhgRck8m9Ou24Q9O6kfgyY1tZxEW\n\tFrPAEchrfAaHNVupiChJNUjgh1mqVUCkBtlM+fJedIIHGMXA59REsJQudk39Qh0P\n\tXiG7t4y4ll3vQLNKRMIzpKlTVbQ8pAU50+t/DuVHjypjjEn8hj/pITrNt4rd/WNM\n\tEooD4QbcpHzPfuPj4rgbBILtqJ4fd0ffxGpmV5C2i5Mor++RngNfaovIqKjPQHbv\n\trJw6lK1q5xoc+IbRpytI5n8wyu+uGA/sc9zQXHXZHNM3bhrXw+YM0/ZRRAnBCrTW\n\tsY94er4Pg2KG/IUbeDPQuF/Cz+4251/Ei0EaEMi4pJF6tHmqCWnlA==", "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, Sayali Patil <sayalip@linux.ibm.com>", "Subject": "[PATCH v3 09/13] selftests/mm: skip uffd-wp-mremap if UFFD\n write-protect is unsupported", "Date": "Fri, 27 Mar 2026 12:46:03 +0530", "Message-ID": "\n <5bc0fe27cdd316ef6f776bf9b52b6c0de4bef54f.1774591179.git.sayalip@linux.ibm.com>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<cover.1774591179.git.sayalip@linux.ibm.com>", "References": "<cover.1774591179.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": "AW1haW4tMjYwMzI3MDA1MyBTYWx0ZWRfXy74mYcYDtW9E\n 66faNfVZecpGCcdK8XEu/3mVuDu8n3p83cekWLWd9D8b2FK9nSFVx/4Q71xL0M2WlEVOtGUkAWV\n rxHkk0TVItCPjtxNanBTViXsfbGdt9wPxFVEy/1q8wVKdcIjGAsw8PedtraXmxUo+yHdmMv+3vW\n Xaucssvchl/c+t9rLLCwR8OA6J2JX/rw1oPNmGururSiCU83JURHgTRLlKCdRD4Wby1LfzgOics\n q84t3IieEzdrDFb5JY64JuhDYlHueG4E4JptigDqHaXsu716VnAhdMgLyyauVGKZVfkR51NwlHZ\n IgrXZhncyDCveKlYwfn5hKih3Nq05eLfu9JUlpIruxvskamtWMLQZLoHA6hh6Ue+We83DpiPKuO\n 9pXyzxxNvg1YLCYtQ6TpfLmzCEjMzddRIOIno9/yrSTYR76BtI78eaTYPNNOQ7TxT0ECmwAgLqn\n lVVaiNAakvfDcAsivqw==", "X-Authority-Analysis": "v=2.4 cv=JK42csKb c=1 sm=1 tr=0 ts=69c62f21 cx=c_pps\n a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17\n a=Yq5XynenixoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=V8glGbnc2Ofi9Qvn3v5h:22 a=Ikd4Dj_1AAAA:8 a=VwQbUJbxAAAA:8 a=VnNF1IyMAAAA:8\n a=43jm8jFf0dXJBzv0ducA:9", "X-Proofpoint-ORIG-GUID": "mFA_b2akFxD__gB1wEB5-Q8CztuGwVMc", "X-Proofpoint-GUID": "x7FQ4wwcmolayTjYtuQNTUgsPo3mnvAR", "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-03-26_04,2026-03-26_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n impostorscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 adultscore=0\n spamscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603270053", "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\nAcked-by: Zi Yan <ziy@nvidia.com>\nAcked-by: David Hildenbrand (Arm) <david@kernel.org>\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..6edbd09f0ca6 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;\n+\n+\tif (uffd_get_features(&features) && errno == ENOENT)\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": [ "v3", "09/13" ] }