Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227569/?format=api
{ "id": 2227569, "url": "http://patchwork.ozlabs.org/api/patches/2227569/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/20260424070106.1-uml-vector-v2-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": "<20260424070106.1-uml-vector-v2-pengpeng@iscas.ac.cn>", "list_archive_url": null, "date": "2026-04-23T15:35:00", "name": "[v2] um: vector: reject too many interface arguments", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "bf716939aa1d8d7b7ab04d33fba3145a36fa7729", "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/20260424070106.1-uml-vector-v2-pengpeng@iscas.ac.cn/mbox/", "series": [ { "id": 501261, "url": "http://patchwork.ozlabs.org/api/series/501261/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=501261", "date": "2026-04-23T15:35:00", "name": "[v2] um: vector: reject too many interface arguments", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501261/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227569/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227569/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=SCIvK8l5;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=temperror (SPF Temporary Error: DNS Timeout)\n smtp.helo=bombadil.infradead.org (client-ip=2607:7c80:54:3::133;\n 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 4g1rqr2KCLz1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 08:48:49 +1000 (AEST)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wG2qf-0000000COJi-14hh;\n\tThu, 23 Apr 2026 22:48:41 +0000", "from smtp25.cstnet.cn ([159.226.251.25] helo=cstnet.cn)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wG2qc-0000000COJG-0m6P\n\tfor linux-um@lists.infradead.org;\n\tThu, 23 Apr 2026 22:48:40 +0000", "from 06-uml-vector-v2.eml (unknown [111.196.245.116])\n\tby APP-05 (Coremail) with SMTP id zQCowAAntwq6oeppDoBsDg--.55735S2;\n\tFri, 24 Apr 2026 06:48:27 +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:References:In-Reply-To:\n\tSubject:Cc:To:Message-ID:Date:From:Reply-To:MIME-Version:Content-Type:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=EQVMdPT0W05WSFGyTO5xjCpqytiwI4srcleJk1it/Yk=; b=SCIvK8l58WZDXPpFqxPMTiJKBa\n\tQkldzL9xFtLe3+g4CVcouAKjqMQMHHhgaRjDOrDUmFPqnQpHAE7PiSYvpqdxfS38BYIs01neSM/3s\n\tKUxM2TNKgGHpQasRXKJTPlpGPgfPUuz9KL5X0sxZIJieQwhyNj1doS929Kdsj740UMDPf0N64Mdzo\n\tSiXhtEleV1hSb06m5BYFmgg3uc93T64nhFXUBecM9bw+fhAt88ZxzkA/91BfKviFrVB5NsR5rnFYY\n\tdBRiwDCCd1YS6hhRfVkDkBw0Iz/jzEZPQ4BU1zvv+cp2cBwGu7dYOHUtuQS/FZ1dRLJwFFN/U8/Cp\n\ttj98hbEg==;", "From": "Pengpeng Hou <pengpeng@iscas.ac.cn>", "Date": "Thu, 23 Apr 2026 23:35:00 +0800", "Message-ID": "<20260424070106.1-uml-vector-v2-pengpeng@iscas.ac.cn>", "To": "Richard Weinberger <richard@nod.at>,\n Anton Ivanov <anton.ivanov@cambridgegreys.com>,\n Johannes Berg <johannes@sipsolutions.net>", "Cc": "linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,\n pengpeng@iscas.ac.cn", "Subject": "[PATCH v2] um: vector: reject too many interface arguments", "In-Reply-To": "<20260417073704.1817-1-pengpeng@iscas.ac.cn>", "References": "<20260417073704.1817-1-pengpeng@iscas.ac.cn>", "X-CM-TRANSID": "zQCowAAntwq6oeppDoBsDg--.55735S2", "X-Coremail-Antispam": "1UD129KBjvdXoWrZrWxXw13Aw4kKFWkAw17GFg_yoWkWFX_u3\n\tWqqanrur1S9r4Duw1UKr1rC3ySvFyDWryUCrW0yr9xuw4SvrZxAr40yF1fXw1xX3y7Zrs8\n\tGry7G34FyrWFkjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT\n\t9fnUUIcSsGvfJTRUUUbVAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG\n\t6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vE77IFxVWUZVW8XwA2ocxC64kIII0Yj4\n\t1l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0\n\tI7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4\n\tvEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAC\n\tY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67AKxVWUJV\n\tW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAG\n\tYxC7MxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r\n\t1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CE\n\tb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0x\n\tvE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF\n\t0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxh\n\tVjvjDU0xZFpf9x0JU6v38UUUUU=", "X-Originating-IP": "[111.196.245.116]", "X-CM-SenderInfo": "pshqw1xhqjqxpvfd2hldfou0/", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260423_154838_608614_814D6E66 ", "X-CRM114-Status": "UNSURE ( 6.27 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-0.4 (/)", "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: uml_parse_vector_ifspec() stores parsed key/value pairs in\n the fixed struct arglist token and value arrays, which are both sized to\n MAXVARGS. The parser increments numargs as it discovers pairs, but i [...] \n Content analysis details: (-0.4 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no\n trust\n [159.226.251.25 listed in list.dnswl.org]\n -0.0 SPF_HELO_PASS SPF: HELO matches SPF record\n -0.0 SPF_PASS SPF: sender matches SPF record\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]\n 1.5 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date", "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": "uml_parse_vector_ifspec() stores parsed key/value pairs in the fixed\nstruct arglist token and value arrays, which are both sized to MAXVARGS.\nThe parser increments numargs as it discovers pairs, but it never checks\nwhether another slot is still available before writing into the arrays.\n\nReject interface specifications that exceed MAXVARGS instead of writing\npast the end of the fixed argument arrays.\n\nFixes: 49da7e64f33e (\"High Performance UML Vector Network Driver\")\nSigned-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>\n---\nChanges since v1:\n- remove the blank line between Fixes and Signed-off-by", "diff": "diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c\nindex 2ea67e6fd067..3bee634f2102 100644\n--- a/arch/um/drivers/vector_user.c\n+++ b/arch/um/drivers/vector_user.c\n@@ -93,6 +93,9 @@ struct arglist *uml_parse_vector_ifspec(char *arg)\n \tlen = strlen(arg);\n \tfor (pos = 0; pos < len; pos++) {\n \t\tif (next_starts) {\n+\t\t\tif (result->numargs >= MAXVARGS)\n+\t\t\t\tgoto cleanup;\n+\n \t\t\tif (parsing_token) {\n \t\t\t\tresult->tokens[result->numargs] = arg + pos;\n \t\t\t} else {\n", "prefixes": [ "v2" ] }