Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118192/?format=api
http://patches.dpdk.org/api/patches/118192/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221014062100.5761-2-markus.theil@tu-ilmenau.de/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20221014062100.5761-2-markus.theil@tu-ilmenau.de>", "list_archive_url": "https://inbox.dpdk.org/dev/20221014062100.5761-2-markus.theil@tu-ilmenau.de", "date": "2022-10-14T06:21:00", "name": "[2/2] eal: prevent OOB read in rte_lcore_to_socket_id", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "108f7f4daab075ca0d19742cbc3ada5e8ef73c94", "submitter": { "id": 747, "url": "http://patches.dpdk.org/api/people/747/?format=api", "name": "Markus Theil", "email": "markus.theil@tu-ilmenau.de" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221014062100.5761-2-markus.theil@tu-ilmenau.de/mbox/", "series": [ { "id": 25228, "url": "http://patches.dpdk.org/api/series/25228/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25228", "date": "2022-10-14T06:20:59", "name": "[1/2] eal: expose lcore pthread id", "version": 1, "mbox": "http://patches.dpdk.org/series/25228/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/118192/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/118192/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F232AA00C3;\n\tFri, 14 Oct 2022 08:21:20 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6DC6F42C48;\n\tFri, 14 Oct 2022 08:21:16 +0200 (CEST)", "from smail.rz.tu-ilmenau.de (smail.rz.tu-ilmenau.de [141.24.186.67])\n by mails.dpdk.org (Postfix) with ESMTP id B6B1E4021E\n for <dev@dpdk.org>; Fri, 14 Oct 2022 08:21:14 +0200 (CEST)", "from isengard.fritz.box (p54aef542.dip0.t-ipconnect.de\n [84.174.245.66])\n by smail.rz.tu-ilmenau.de (Postfix) with ESMTPA id 75084580099;\n Fri, 14 Oct 2022 08:21:14 +0200 (CEST)" ], "From": "Markus Theil <markus.theil@tu-ilmenau.de>", "To": "dev@dpdk.org", "Cc": "Markus Theil <markus.theil@tu-ilmenau.de>", "Subject": "[PATCH 2/2] eal: prevent OOB read in rte_lcore_to_socket_id", "Date": "Fri, 14 Oct 2022 08:21:00 +0200", "Message-Id": "<20221014062100.5761-2-markus.theil@tu-ilmenau.de>", "X-Mailer": "git-send-email 2.38.0", "In-Reply-To": "<20221014062100.5761-1-markus.theil@tu-ilmenau.de>", "References": "<20221014062100.5761-1-markus.theil@tu-ilmenau.de>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>\n---\n lib/eal/common/eal_common_lcore.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/lib/eal/common/eal_common_lcore.c b/lib/eal/common/eal_common_lcore.c\nindex 48c333cff1..94625c2ebc 100644\n--- a/lib/eal/common/eal_common_lcore.c\n+++ b/lib/eal/common/eal_common_lcore.c\n@@ -111,6 +111,9 @@ unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap)\n unsigned int\n rte_lcore_to_socket_id(unsigned int lcore_id)\n {\n+\tif (unlikely(lcore_id >= RTE_MAX_LCORE))\n+\t\treturn -1;\n+\n \treturn lcore_config[lcore_id].socket_id;\n }\n \n", "prefixes": [ "2/2" ] }{ "id": 118192, "url": "