get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219963,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2219963/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260405125240.2558577-39-songmuchun@bytedance.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260405125240.2558577-39-songmuchun@bytedance.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260405125240.2558577-39-songmuchun@bytedance.com/",
    "date": "2026-04-05T12:52:29",
    "name": "[38/49] mm/sparse-vmemmap: remap the shared tail pages as read-only",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7c11f70d87b1727ee5a1363f1d573571a1f61b6e",
    "submitter": {
        "id": 78930,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/78930/?format=api",
        "name": "Muchun Song",
        "email": "songmuchun@bytedance.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260405125240.2558577-39-songmuchun@bytedance.com/mbox/",
    "series": [
        {
            "id": 498783,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/498783/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=498783",
            "date": "2026-04-05T12:51:51",
            "name": "mm: Generalize vmemmap optimization for DAX and HugeTLB",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498783/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219963/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219963/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-19368-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=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=Rwhj73zI;\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-19368-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2607:f8b0:4864:20::102b\"",
            "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=bytedance.com",
            "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=Rwhj73zI;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=bytedance.com\n (client-ip=2607:f8b0:4864:20::102b; helo=mail-pj1-x102b.google.com;\n envelope-from=songmuchun@bytedance.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 4fpXYn374Vz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 05 Apr 2026 22:57:49 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fpXYT43vdz2yvc;\n\tSun, 05 Apr 2026 22:57:33 +1000 (AEST)",
            "from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com\n [IPv6:2607:f8b0:4864:20::102b])\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 4fpXYS4fTQz2yng\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sun, 05 Apr 2026 22:57:32 +1000 (AEST)",
            "by mail-pj1-x102b.google.com with SMTP id\n 98e67ed59e1d1-3567e2b4159so2009659a91.0\n        for <linuxppc-dev@lists.ozlabs.org>;\n Sun, 05 Apr 2026 05:57:32 -0700 (PDT)",
            "from n232-176-004.byted.org ([36.110.163.97])\n        by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35de66b4808sm3748505a91.2.2026.04.05.05.57.24\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 05 Apr 2026 05:57:30 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775393853;\n\tcv=none;\n b=Up5CE7uQDAcqp8tJLQc/xZ/v3nPay2Dt5Sy5IaXhG8oUDdL2jWiFPs6WvuoKu9mrMAuVxIw/ri1bVWqDFEK50sp0rzrRoQZHgyjXA3mt2EQole+/FiHIU06nWiLJWnUVnBFHZ1Hazu1uVf/3X4JNCV4ENZMw29Wr/uKdYgVT7il7kNLKedRpQhE3s7sMaIZAKT1xQx/ytpmIkhNIyMyo1UMVS04Tg0Z6K2A+pkT8hHnYo5MUkuTHKI2IvBg3AqsvfLEsAX1J40e1f46T4O+L92y0OM6z4QM7RQuNKtGtTPOg4UDnA7lMxkeRBufePzTw8WZOYC3KpYaxmqEX1aHJ7w==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775393853; c=relaxed/relaxed;\n\tbh=yEhjAbTiZVKX8bAZfBAftf7xoJQ7IQs8AgKwKN6i98g=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=VBkHQC+39/vT9uJlxMbbIFdNhZ2+5MM7XjkMhHY7uqEd6eMGPkirPX9qNcZ2LUOHj66o3+mk4etH9KhvRVUOdf2FnrtOPpAxthCoGvgW3kyVZkvpwBYleNqgT4qS2xOQzKYqqor5dGq5Oqm14kZmivgP5hJcFH5EpJKBe03oK03FUt6BcLonIaN8LnubxqWx+wd7XqegJv+ODfLYnPEmHCl4S6BKI/czzp0Ce8VkEWmzW40bLioTQlqWCklqELit9j0E82IXlYHwYyaUoDsOS7nREcPJsMh1DKgWZ2+d71UUIhpiud/uZcTLLci834+jTo0HiIJ9rsQyw8iOcemVmA==",
        "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=bytedance.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=bytedance.com header.i=@bytedance.com\n header.a=rsa-sha256 header.s=google header.b=Rwhj73zI; dkim-atps=neutral;\n spf=pass (client-ip=2607:f8b0:4864:20::102b; helo=mail-pj1-x102b.google.com;\n envelope-from=songmuchun@bytedance.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=bytedance.com",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=bytedance.com; s=google; t=1775393851; x=1775998651;\n darn=lists.ozlabs.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=yEhjAbTiZVKX8bAZfBAftf7xoJQ7IQs8AgKwKN6i98g=;\n        b=Rwhj73zIBColMgko++1vsQMTafL9QwxR0u6UYOhNMsj2NgffLk/ReMSOn3uum56r92\n         e8SyVDIK8PypecQZpKlLflYXyfAoA21BqKWhIusWxADqB4s4simstcXcvFOmqXi8DZW8\n         AqkUDHx3O7AI9W1T5IngAyCF1ixGBVpDuqSpWlya3gyc/rXiVtGt+9Xmkj7U5xCo5HKC\n         f9zYlujKLon2LpjqTy6cqVoxIbnXNvMi+ea8/uHtmnORKB5KBAy1BfTG6o4BkxcG+w42\n         ybBuSb6Ll9lqIpZQgfMekD3oKhk7yqfFd/LUM2K61zGYXtTinXeY/2RpqP14w6YF1oX3\n         1xSg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775393851; x=1775998651;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=yEhjAbTiZVKX8bAZfBAftf7xoJQ7IQs8AgKwKN6i98g=;\n        b=inJDIHAO7CBM//316gEI3QFHy5Avwq+pOmkRCtKzfaMfyEE8A1nDlungVuJYsXoMlr\n         YCOxH3VHF+BRK1m7yUJ3ImEYjs6k2cvmJPHggNkyJ8mN/J+xi6ptf5GhnIr8lB7OZuBv\n         68oG7GyWgoMvINLg+VIIorQGjYorNm6JSHfcyZKF26+oLoqOSVGu8/b90UWYYuQILMWw\n         m4iK9dAVv7sOxz3SZNKsfwwkOCgB9jvyzlHMxgp8ZHinaCzZ5AXJ0SkoXx4gLEGfG/gW\n         JkvwCeZoQweh3InQelXpEnE0gl0DvDzLMeiL0KtmlKK5e24ZAZKvUasim+zmp7CTOY4s\n         TWXg==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCW8iD/BQ06I9sxkdgppWVSmMxXsGLNJzyUxPxboqmkERraFAyo87BPvaDlfP+3xrTxAwZn+ufAhILUn84o=@lists.ozlabs.org",
        "X-Gm-Message-State": "AOJu0YzA5p9bdEwLwR5MQB7VuzuWtwkJ9TY/BSgUHAJVLIONH7W4pzbk\n\tDgwkTrDH0WPW7wo8SY9tb+VuUORkD3yNkD3TpGKCfqT33SlTinuyoh/d4/4+4UShX4c=",
        "X-Gm-Gg": "AeBDietHFClQPuadr5hkcbg4W9KvTZTEXAgRPetjNYR7v87RYQm1uFytHicdcP3jfjr\n\tjXuH5dZJtxgMWQEgvjpUBHqrXK8snZYd28Mu+2Pr0De5ryYi7tFrKonrZR+17lX0nZ9BMTuPXCu\n\tn14tww4O4fg1sfDzqnOUMFZ0QCHzRh4mzcImGD4r/R9S8Kh50UXl+RugkOHO5SGDaQxdc9okI8G\n\torMt7WKCa0GtTkDIsn7qRXNk8ufjOftbosd+4cbzikWpNrSduTO8Z/d9OYxuQJq8SxCChAdi/2e\n\td70VRW3vEU9YStdgCKRf21VqqgKjX4y1euOlxqargir4Emm64yicNs/qkkTMxDmFG57vlPHzYvB\n\tLP006FcaiOAAWkkx5fTJVtSI+eyBI2QbEPEAd5cmKLdIiERiQIwE8POtqJ/yymInTrcptEBlXQC\n\t7Oj6oMsW5Jgd/noBW+sELpfZ1zSWqAWQIL0qvwxDAq0cc=",
        "X-Received": "by 2002:a17:90b:2b4b:b0:34c:fe7e:84fe with SMTP id\n 98e67ed59e1d1-35de69aec1bmr9125066a91.28.1775393850723;\n        Sun, 05 Apr 2026 05:57:30 -0700 (PDT)",
        "From": "Muchun Song <songmuchun@bytedance.com>",
        "To": "Andrew Morton <akpm@linux-foundation.org>,\n\tDavid Hildenbrand <david@kernel.org>,\n\tMuchun Song <muchun.song@linux.dev>,\n\tOscar Salvador <osalvador@suse.de>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tMadhavan Srinivasan <maddy@linux.ibm.com>",
        "Cc": "Lorenzo Stoakes <ljs@kernel.org>,\n\t\"Liam R . Howlett\" <Liam.Howlett@oracle.com>,\n\tVlastimil Babka <vbabka@kernel.org>,\n\tMike Rapoport <rppt@kernel.org>,\n\tSuren Baghdasaryan <surenb@google.com>,\n\tMichal Hocko <mhocko@suse.com>,\n\tNicholas Piggin <npiggin@gmail.com>,\n\tChristophe Leroy <chleroy@kernel.org>,\n\taneesh.kumar@linux.ibm.com,\n\tjoao.m.martins@oracle.com,\n\tlinux-mm@kvack.org,\n\tlinuxppc-dev@lists.ozlabs.org,\n\tlinux-kernel@vger.kernel.org,\n\tMuchun Song <songmuchun@bytedance.com>",
        "Subject": "[PATCH 38/49] mm/sparse-vmemmap: remap the shared tail pages as\n read-only",
        "Date": "Sun,  5 Apr 2026 20:52:29 +0800",
        "Message-Id": "<20260405125240.2558577-39-songmuchun@bytedance.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20260405125240.2558577-1-songmuchun@bytedance.com>",
        "References": "<20260405125240.2558577-1-songmuchun@bytedance.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-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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": "HugeTLB enforces Read-Only mappings for HVO to prevent illegal\nwrite operations, whereas DAX currently does not, which introduces\npotential security risks.\n\nNow that we are unifying the HVO logic for HugeTLB and DAX, we can\nremap the shared tail pages as read-only directly in\nvmemmap_pte_populate(). This ensures that both HugeTLB and DAX\nbenefit from the read-only protection of vmemmap tail pages right\nfrom the point of mapping establishment.\n\nSigned-off-by: Muchun Song <songmuchun@bytedance.com>\n---\n mm/sparse-vmemmap.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c\nindex fd7b0e1e5aba..c70275717054 100644\n--- a/mm/sparse-vmemmap.c\n+++ b/mm/sparse-vmemmap.c\n@@ -176,14 +176,17 @@ static pte_t * __meminit vmemmap_pte_populate(pmd_t *pmd, unsigned long addr, in\n \t\tif (slab_is_available())\n \t\t\tget_page(page);\n \t\tptpfn = page_to_pfn(page);\n+\n+\t\t/* Remap shared tail page read-only to catch illegal writes. */\n+\t\tentry = pfn_pte(ptpfn, PAGE_KERNEL_RO);\n \t} else {\n \t\tvoid *p = vmemmap_alloc_block_buf(PAGE_SIZE, node, altmap);\n \n \t\tif (!p)\n \t\t\treturn NULL;\n \t\tptpfn = PHYS_PFN(__pa(p));\n+\t\tentry = pfn_pte(ptpfn, PAGE_KERNEL);\n \t}\n-\tentry = pfn_pte(ptpfn, PAGE_KERNEL);\n \tset_pte_at(&init_mm, addr, pte, entry);\n \n \treturn pte;\n",
    "prefixes": [
        "38/49"
    ]
}