get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2216637,
    "url": "http://patchwork.ozlabs.org/api/patches/2216637/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260327021403.214713-5-usama.arif@linux.dev/",
    "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": "<20260327021403.214713-5-usama.arif@linux.dev>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260327021403.214713-5-usama.arif@linux.dev/",
    "date": "2026-03-27T02:08:46",
    "name": "[v3,04/24] mm: thp: handle split failure in do_huge_pmd_wp_page()",
    "commit_ref": null,
    "pull_url": null,
    "state": "handled-elsewhere",
    "archived": false,
    "hash": "3888b9ddd2de0af521120946d94f6b6876f61b48",
    "submitter": {
        "id": 92719,
        "url": "http://patchwork.ozlabs.org/api/people/92719/?format=api",
        "name": "Usama Arif",
        "email": "usama.arif@linux.dev"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260327021403.214713-5-usama.arif@linux.dev/mbox/",
    "series": [
        {
            "id": 497678,
            "url": "http://patchwork.ozlabs.org/api/series/497678/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497678",
            "date": "2026-03-27T02:08:43",
            "name": "[v3,01/24] mm: thp: make split_huge_pmd functions return int for error propagation",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/497678/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2216637/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2216637/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-18847-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 (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=KJYNK18n;\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-18847-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=91.218.175.180",
            "lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev",
            "lists.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=KJYNK18n;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.dev\n (client-ip=91.218.175.180; helo=out-180.mta0.migadu.com;\n envelope-from=usama.arif@linux.dev; 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 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fhkkL5KYXz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 13:15:06 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fhkk71D7Lz2yrl;\n\tFri, 27 Mar 2026 13:14:55 +1100 (AEDT)",
            "from out-180.mta0.migadu.com (out-180.mta0.migadu.com\n [91.218.175.180])\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 4fhkk62gYbz2xR4\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 27 Mar 2026 13:14:54 +1100 (AEDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774577695;\n\tcv=none;\n b=jmRXhDG67jMzLpym0WzXihWIKPtA6g5iRplY5twc+ZiefiINmLJ+GGUF7/ebVCdLE8us7+fIh7XiqeIoatKqAQAFRP6bLsc4pG+xzl8mQpGWMiqgk0UKQappBkdNVPcEPdCnGKSxbwjRLSgT/oTYjKwZhGkLYfr6MdWI0bbbCNw1A+JmDe1G85axnljFFtY+9w32BlplbX+h41InDcc70upOtui7SFbxu3Sxo/V9H7kRx/Syy8HQ0rleshSmCVuTZ482BhZF5+l5SDGklSWtvYXfv59gS8w/MMy72XiQIT+AzKxuONGOHkPmIsC7Y68WM9EyOvRbNPIJC9SscaSj9Q==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774577695; c=relaxed/relaxed;\n\tbh=AsidUyaFSU2OL+6pIevfNbim9vED85JJGBowf2ctQP8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=a3Dlybh7LWIaf5AaPHAXjrePNxlUHN3GR6nnBHmLp6CaMyTndPy5th2oCSs7MypN3pewzriKyzAlrBs70tUEhHkSrueEQYAqSCZTrAztrwz1mc6s92zupZZHpQj7C2qQx0oYh9kOVwTbmpV+S6blpdwOTm03SZEpmuS/4wxTMJGtpD+QqUKv0eImqBciFXj9/fk3+f00Ox1RqtnaSQZPfR16OBz1oumR+vGxh5z6Vpf+YXnR+0rvjLovtQ4XnrDb2ZZselizhjoTrcyIgJIcM/p9BmB4rGWOrdbLRfuAVrxAEPqNEJlyVFtP953p5G86V32ZeSN4vTKuC3xTshOSiQ==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.dev; dkim=pass (1024-bit key;\n unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256\n header.s=key1 header.b=KJYNK18n; dkim-atps=neutral;\n spf=pass (client-ip=91.218.175.180; helo=out-180.mta0.migadu.com;\n envelope-from=usama.arif@linux.dev;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.dev",
        "X-Report-Abuse": "Please report any abuse attempt to abuse@migadu.com and\n include these headers.",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1;\n\tt=1774577674;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=AsidUyaFSU2OL+6pIevfNbim9vED85JJGBowf2ctQP8=;\n\tb=KJYNK18nvflazGbUsGQzniopI3KPVpz1LShSWjjSbT+hxFnh/0tpkw+tfNe3j+MVojye1j\n\twdQPu4/bxNWWVoy1HF/DFPdbf1u5jrpcQiHNSPWDNk1zHFhU0vPcRAGI2daPSXBje5u6Yr\n\tR2eLlqWUdaQ4fQFe4gaiAaU+oQXNXZY=",
        "From": "Usama Arif <usama.arif@linux.dev>",
        "To": "Andrew Morton <akpm@linux-foundation.org>,\n\tdavid@kernel.org,\n\tLorenzo Stoakes <ljs@kernel.org>,\n\twilly@infradead.org,\n\tlinux-mm@kvack.org",
        "Cc": "fvdl@google.com,\n\thannes@cmpxchg.org,\n\triel@surriel.com,\n\tshakeel.butt@linux.dev,\n\tkas@kernel.org,\n\tbaohua@kernel.org,\n\tdev.jain@arm.com,\n\tbaolin.wang@linux.alibaba.com,\n\tnpache@redhat.com,\n\tLiam.Howlett@oracle.com,\n\tryan.roberts@arm.com,\n\tVlastimil Babka <vbabka@kernel.org>,\n\tlance.yang@linux.dev,\n\tlinux-kernel@vger.kernel.org,\n\tkernel-team@meta.com,\n\tmaddy@linux.ibm.com,\n\tmpe@ellerman.id.au,\n\tlinuxppc-dev@lists.ozlabs.org,\n\thca@linux.ibm.com,\n\tgor@linux.ibm.com,\n\tagordeev@linux.ibm.com,\n\tborntraeger@linux.ibm.com,\n\tsvens@linux.ibm.com,\n\tlinux-s390@vger.kernel.org,\n\tUsama Arif <usama.arif@linux.dev>",
        "Subject": "[v3 04/24] mm: thp: handle split failure in do_huge_pmd_wp_page()",
        "Date": "Thu, 26 Mar 2026 19:08:46 -0700",
        "Message-ID": "<20260327021403.214713-5-usama.arif@linux.dev>",
        "In-Reply-To": "<20260327021403.214713-1-usama.arif@linux.dev>",
        "References": "<20260327021403.214713-1-usama.arif@linux.dev>",
        "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-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Migadu-Flow": "FLOW_OUT",
        "X-Spam-Status": "No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"
    },
    "content": "do_huge_pmd_wp_page() splits the PMD when a COW of the entire huge page\nfails (e.g., can't allocate a new folio or the folio is pinned).  It then\nreturns VM_FAULT_FALLBACK so the fault can be retried at PTE granularity.\n\nIf the split fails, the PMD is still huge.  Returning VM_FAULT_FALLBACK\nwould re-enter the PTE fault path, which expects a PTE page table at the\nPMD entry — not a huge PMD.\n\nReturn VM_FAULT_OOM on split failure, which signals the fault handler to\ninvoke the OOM killer or return -ENOMEM to userspace.\n\nSigned-off-by: Usama Arif <usama.arif@linux.dev>\n---\n mm/huge_memory.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/mm/huge_memory.c b/mm/huge_memory.c\nindex 8ad43897bdf80..9f4be707c8cb0 100644\n--- a/mm/huge_memory.c\n+++ b/mm/huge_memory.c\n@@ -2137,7 +2137,13 @@ vm_fault_t do_huge_pmd_wp_page(struct vm_fault *vmf)\n \tfolio_unlock(folio);\n \tspin_unlock(vmf->ptl);\n fallback:\n-\t__split_huge_pmd(vma, vmf->pmd, vmf->address, false);\n+\t/*\n+\t * Split failure means the PMD is still huge; returning\n+\t * VM_FAULT_FALLBACK would re-enter the PTE path with a\n+\t * huge PMD, causing incorrect behavior.\n+\t */\n+\tif (__split_huge_pmd(vma, vmf->pmd, vmf->address, false))\n+\t\treturn VM_FAULT_OOM;\n \treturn VM_FAULT_FALLBACK;\n }\n \n",
    "prefixes": [
        "v3",
        "04/24"
    ]
}