Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72248/?format=api
http://patches.dpdk.org/api/patches/72248/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200626140441.1441763-3-maxime.coquelin@redhat.com/", "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": "<20200626140441.1441763-3-maxime.coquelin@redhat.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200626140441.1441763-3-maxime.coquelin@redhat.com", "date": "2020-06-26T14:04:29", "name": "[v3,02/14] bus/fslmc: fix null pointer dereference", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6d1f8c5e12a7fa05df68fe270e231af0abc7484e", "submitter": { "id": 512, "url": "http://patches.dpdk.org/api/people/512/?format=api", "name": "Maxime Coquelin", "email": "maxime.coquelin@redhat.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200626140441.1441763-3-maxime.coquelin@redhat.com/mbox/", "series": [ { "id": 10634, "url": "http://patches.dpdk.org/api/series/10634/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10634", "date": "2020-06-26T14:04:28", "name": "vDPA API and framework rework", "version": 3, "mbox": "http://patches.dpdk.org/series/10634/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/72248/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/72248/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DE036A051C;\n\tFri, 26 Jun 2020 16:05:19 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D6B221C01E;\n\tFri, 26 Jun 2020 16:05:10 +0200 (CEST)", "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 60A321C001\n for <dev@dpdk.org>; Fri, 26 Jun 2020 16:05:08 +0200 (CEST)", "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-171-IWwgY1_-MwOY3c27e13bQg-1; Fri, 26 Jun 2020 10:05:00 -0400", "from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com\n [10.5.11.15])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B777A10059A0;\n Fri, 26 Jun 2020 14:04:58 +0000 (UTC)", "from localhost.localdomain (unknown [10.36.110.7])\n by smtp.corp.redhat.com (Postfix) with ESMTP id E4A745BAE1;\n Fri, 26 Jun 2020 14:04:55 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593180307;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=eg3gdqOutD9HRD87fYH3LbN7ePw7dWL1Fl7OXQU91kU=;\n b=f16O4KAQaKINyZs2Lc4pa2jhaXF+9q2wYl344GMwNTtJQwR5/1i0x5DofSs5E1NYH8aMnE\n qoBE1latwZ9K7dwiRy0Yuc8Wubuhf2qb4EWalBcOLzZFcrWslSf640zm+SD+yL8AUsPT+0\n R1DSElIW1UWLsWccvU7YpvGAiJ67vCE=", "X-MC-Unique": "IWwgY1_-MwOY3c27e13bQg-1", "From": "Maxime Coquelin <maxime.coquelin@redhat.com>", "To": "matan@mellanox.com, xiao.w.wang@intel.com, zhihong.wang@intel.com,\n chenbo.xia@intel.com, david.marchand@redhat.com, amorenoz@redhat.com,\n viacheslavo@mellanox.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com,\n grive@u256.net, dev@dpdk.org", "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n\tstable@dpdk.org", "Date": "Fri, 26 Jun 2020 16:04:29 +0200", "Message-Id": "<20200626140441.1441763-3-maxime.coquelin@redhat.com>", "In-Reply-To": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>", "References": "<20200626140441.1441763-1-maxime.coquelin@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15", "X-Mimecast-Spam-Score": "0", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 02/14] bus/fslmc: fix null pointer dereference", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patches fixes a null pointer derefencing that happens\nwhen the device string passed to the iterator is NULL. This\nsituation can happen when iterating on a class type.\nFor example:\n\nRTE_DEV_FOREACH(dev, \"class=eth\", &dev_iter) {\n ...\n}\n\nFixes: e67a61614d0b (\"bus/fslmc: support device iteration\")\nCc: stable@dpdk.org\n\nAcked-by: Adrián Moreno <amorenoz@redhat.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/bus/fslmc/fslmc_bus.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c\nindex afbd82e8db..ac46eb4fe8 100644\n--- a/drivers/bus/fslmc/fslmc_bus.c\n+++ b/drivers/bus/fslmc/fslmc_bus.c\n@@ -603,6 +603,11 @@ fslmc_bus_dev_iterate(const void *start, const char *str,\n \tstruct rte_dpaa2_device *dev;\n \tchar *dup, *dev_name = NULL;\n \n+\tif (str == NULL) {\n+\t\tDPAA2_BUS_DEBUG(\"No device string\");\n+\t\treturn NULL;\n+\t}\n+\n \t/* Expectation is that device would be name=device_name */\n \tif (strncmp(str, \"name=\", 5) != 0) {\n \t\tDPAA2_BUS_DEBUG(\"Invalid device string (%s)\\n\", str);\n", "prefixes": [ "v3", "02/14" ] }{ "id": 72248, "url": "