Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122406/?format=api
http://patches.dpdk.org/api/patches/122406/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230120044140.95975-10-okaya@kernel.org/", "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": "<20230120044140.95975-10-okaya@kernel.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230120044140.95975-10-okaya@kernel.org", "date": "2023-01-20T04:41:39", "name": "[v3,09/10] malloc: check result of elem_start_pt", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "92a3f6f3d9c15e076a58d798d5ed77f951804e6e", "submitter": { "id": 2903, "url": "http://patches.dpdk.org/api/people/2903/?format=api", "name": "Sinan Kaya", "email": "okaya@kernel.org" }, "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/20230120044140.95975-10-okaya@kernel.org/mbox/", "series": [ { "id": 26621, "url": "http://patches.dpdk.org/api/series/26621/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26621", "date": "2023-01-20T04:41:30", "name": "codeql fixes for various subsystems", "version": 3, "mbox": "http://patches.dpdk.org/series/26621/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/122406/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/122406/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 DBC8E4242A;\n\tFri, 20 Jan 2023 05:42:44 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C14A742DD2;\n\tFri, 20 Jan 2023 05:42:01 +0100 (CET)", "from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75])\n by mails.dpdk.org (Postfix) with ESMTP id 1B62742DB5\n for <dev@dpdk.org>; Fri, 20 Jan 2023 05:41:57 +0100 (CET)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by ams.source.kernel.org (Postfix) with ESMTPS id DE141B81F5C;\n Fri, 20 Jan 2023 04:41:56 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 3C7E8C433F1;\n Fri, 20 Jan 2023 04:41:55 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1674189715;\n bh=Gu6++k0mjtkUURmjVcfqxEPEyPswM/yWIdKGnG3Ae4Q=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=FNizsPydvf9c8Wz8YtxT66MIlNDRGPMMPeHqbRDVE0fXI19hOmzkPm9/5oZ/COHmq\n PqvqEfxgZD/y56zM0H+zxd6oMqBiDdvXHBqVtPDZLrQNrQoxa2fb+uOVH/NABnWeG3\n SD+n93GNujzBlxaL1f9ZzliKq1MkYk9IoVVfE16DeRIdwc5v/WJe2WBTIvWM5T2QOz\n HNqsIdFydMJhBxyAAqaEtcuJeNPCIdDb4hIizUF+nMABfTpaq5HL1YqzScrCvsGKaT\n VgQPXw78PkrR5Wz62+5NkikuKYBFnXJBvkRVeq2rPYTYHXDOr7CVp6JVqJ9AWW/wvH\n 7trZO1YE7naZA==", "From": "okaya@kernel.org", "To": "Anatoly Burakov <anatoly.burakov@intel.com>", "Cc": "dev@dpdk.org,\n\tSinan Kaya <okaya@kernel.org>", "Subject": "[PATCH v3 09/10] malloc: check result of elem_start_pt", "Date": "Thu, 19 Jan 2023 23:41:39 -0500", "Message-Id": "<20230120044140.95975-10-okaya@kernel.org>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230120044140.95975-1-okaya@kernel.org>", "References": "<20230120044140.95975-1-okaya@kernel.org>", "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": "From: Sinan Kaya <okaya@kernel.org>\n\nIn malloc_elem_alloc result of call to elem_start_pt is dereferenced\nhere and may be null.\n\nSigned-off-by: Sinan Kaya <okaya@kernel.org>\n---\n lib/eal/common/malloc_elem.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/lib/eal/common/malloc_elem.c b/lib/eal/common/malloc_elem.c\nindex 8f49812846..26296f2dba 100644\n--- a/lib/eal/common/malloc_elem.c\n+++ b/lib/eal/common/malloc_elem.c\n@@ -435,6 +435,9 @@ malloc_elem_alloc(struct malloc_elem *elem, size_t size, unsigned align,\n {\n \tstruct malloc_elem *new_elem = elem_start_pt(elem, size, align, bound,\n \t\t\tcontig);\n+\tif (new_elem == NULL)\n+\t\treturn NULL;\n+\n \tconst size_t old_elem_size = (uintptr_t)new_elem - (uintptr_t)elem;\n \tconst size_t trailer_size = elem->size - old_elem_size - size -\n \t\tMALLOC_ELEM_OVERHEAD;\n", "prefixes": [ "v3", "09/10" ] }{ "id": 122406, "url": "