get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217427,
    "url": "http://patchwork.ozlabs.org/api/patches/2217427/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/20260329030946.32410-1-pengpeng@iscas.ac.cn/",
    "project": {
        "id": 60,
        "url": "http://patchwork.ozlabs.org/api/projects/60/?format=api",
        "name": "User-mode Linux Development",
        "link_name": "linux-um",
        "list_id": "linux-um.lists.infradead.org",
        "list_email": "linux-um@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260329030946.32410-1-pengpeng@iscas.ac.cn>",
    "list_archive_url": null,
    "date": "2026-03-29T03:09:46",
    "name": "um: mconsole: use bounded version string formatting",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "06ae9a9de3fe052be815147865706ac5dbee5313",
    "submitter": {
        "id": 93000,
        "url": "http://patchwork.ozlabs.org/api/people/93000/?format=api",
        "name": "Pengpeng Hou",
        "email": "pengpeng@iscas.ac.cn"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/20260329030946.32410-1-pengpeng@iscas.ac.cn/mbox/",
    "series": [
        {
            "id": 497894,
            "url": "http://patchwork.ozlabs.org/api/series/497894/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=497894",
            "date": "2026-03-29T03:09:46",
            "name": "um: mconsole: use bounded version string formatting",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497894/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217427/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217427/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uFmL3pu9;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4fjzrt4cN9z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 14:10:03 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w6gXH-00000009VgR-19Rq;\n\tSun, 29 Mar 2026 03:09:59 +0000",
            "from smtp21.cstnet.cn ([159.226.251.21] helo=cstnet.cn)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w6gXC-00000009Vef-13YU\n\tfor linux-um@lists.infradead.org;\n\tSun, 29 Mar 2026 03:09:57 +0000",
            "from localhost.localdomain (unknown [111.196.245.197])\n\tby APP-01 (Coremail) with SMTP id qwCowAAXvWj6l8hpnOd8Cw--.20596S2;\n\tSun, 29 Mar 2026 11:09:47 +0800 (CST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help\n\t:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding:\n\tMIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;\n\tbh=3wXPqz9uSdsbBV+gvFYDHL1AfaHwYaDG2Fl9a3n4ruA=; b=uFmL3pu9ww8pKjT2MRTQHNkrLG\n\tQvfHvWO3CTwsw6In9HPocgraM1O53sjOzNzBQCZ/QiihcEYDRR8Ts3mDFWkNXLYn5akwfLip/2jHT\n\t/zAnWqa6j9Gb8TKFuoPGEEHHlfQPDbLKCsJOxz+gZv77BDxeyg8/ufeBowRMgnhalCpRLty4m4EHj\n\t12z01+hXmCQhyGg8d8Z0Q1fhhTm4bGmzna6wEEVrT1Cmgc8GkGf+P49utLYrv2o/B/P5mq9YDTbfE\n\tOC8RK/q45+g7eR4AgMMbwAK2ToXey7u1V6FCAwF6CbDutvpG1lTgMvAsWHu+FWOGERI8bK6Ua2yaY\n\tWSeDbCjA==;",
        "From": "Pengpeng Hou <pengpeng@iscas.ac.cn>",
        "To": "richard@nod.at,\n\tanton.ivanov@cambridgegreys.com,\n\tjohannes@sipsolutions.net",
        "Cc": "akpm@osdl.org,\n\tsergeh@kernel.org,\n\tclg@fr.ibm.com,\n\tlinux-um@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org,\n\tpengpeng@iscas.ac.cn",
        "Subject": "[PATCH] um: mconsole: use bounded version string formatting",
        "Date": "Sun, 29 Mar 2026 11:09:46 +0800",
        "Message-ID": "<20260329030946.32410-1-pengpeng@iscas.ac.cn>",
        "X-Mailer": "git-send-email 2.50.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-CM-TRANSID": "qwCowAA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F7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUoq2MUU\n\tUUU",
        "X-Originating-IP": "[111.196.245.197]",
        "X-CM-SenderInfo": "pshqw1xhqjqxpvfd2hldfou0/",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260328_200954_678345_DD3CB4C0 ",
        "X-CRM114-Status": "UNSURE (   6.65  )",
        "X-CRM114-Notice": "Please train this message.",
        "X-Spam-Score": "-4.2 (----)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  mconsole_version() formats several UTS strings into a fixed\n    256-byte local buffer with sprintf() and no length bound. Use snprintf()\n   so the version reply stays within the local buffer. Fixes: e9ff3990f08e\n (\"[PATCH]\n    namespaces: utsname: switch to using uts namespaces\") Signed-off-by:\n Pengpeng\n    Hou <pengpeng@iscas.ac.cn> --- arch/um/drivers/mconsole_kern.c | 6 +++---\n    1 file changed, 3 [...]\n Content analysis details:   (-4.2 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n                             query to Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                         [159.226.251.21 listed in\n sa-trusted.bondedsender.org]\n -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,\n                             medium trust\n                             [159.226.251.21 listed in list.dnswl.org]\n  0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                             [159.226.251.21 listed in sa-accredit.habeas.com]\n  0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n                              Validity was blocked.  See\n                             https://knowledge.validity.com/hc/en-us/articles/20961730681243\n                              for more information.\n                            [159.226.251.21 listed in\n bl.score.senderscore.com]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]",
        "X-BeenThere": "linux-um@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<linux-um.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/linux-um/>",
        "List-Post": "<mailto:linux-um@lists.infradead.org>",
        "List-Help": "<mailto:linux-um-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>",
        "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>",
        "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "mconsole_version() formats several UTS strings into a fixed 256-byte local buffer with sprintf() and no length bound.\n\nUse snprintf() so the version reply stays within the local buffer.\n\nFixes: e9ff3990f08e (\"[PATCH] namespaces: utsname: switch to using uts namespaces\")\nSigned-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>\n---\n arch/um/drivers/mconsole_kern.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c\nindex e2a9e8879f58..18d0ec15557c 100644\n--- a/arch/um/drivers/mconsole_kern.c\n+++ b/arch/um/drivers/mconsole_kern.c\n@@ -106,9 +106,9 @@ void mconsole_version(struct mc_request *req)\n {\n \tchar version[256];\n \n-\tsprintf(version, \"%s %s %s %s %s\", utsname()->sysname,\n-\t\tutsname()->nodename, utsname()->release, utsname()->version,\n-\t\tutsname()->machine);\n+\tsnprintf(version, sizeof(version), \"%s %s %s %s %s\",\n+\t\t utsname()->sysname, utsname()->nodename, utsname()->release,\n+\t\t utsname()->version, utsname()->machine);\n \tmconsole_reply(req, version, 0, 0);\n }\n \n",
    "prefixes": []
}