Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7738/?format=api
https://patches.dpdk.org/api/patches/7738/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-4-git-send-email-jerome.jutteau@outscale.com/", "project": { "id": 1, "url": "https://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": "<1445247869-713-4-git-send-email-jerome.jutteau@outscale.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1445247869-713-4-git-send-email-jerome.jutteau@outscale.com", "date": "2015-10-19T09:44:28", "name": "[dpdk-dev,v2,3/4] vhost: protect user_get_vring_base from unknown devices", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "6393f366673f9d0b84b598218a9e83910ff5292a", "submitter": { "id": 354, "url": "https://patches.dpdk.org/api/people/354/?format=api", "name": "Jerome Jutteau", "email": "jerome.jutteau@outscale.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-4-git-send-email-jerome.jutteau@outscale.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7738/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7738/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 778E88E99;\n\tMon, 19 Oct 2015 11:45:25 +0200 (CEST)", "from mail-lf0-f52.google.com (mail-lf0-f52.google.com\n\t[209.85.215.52]) by dpdk.org (Postfix) with ESMTP id A04958E98\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 11:45:24 +0200 (CEST)", "by lffz202 with SMTP id z202so23405605lff.3\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 02:45:24 -0700 (PDT)", "from localhost.localdomain\n\t(ows-185-21-195-233.eu-west-1.compute.outscale.com. [185.21.195.233])\n\tby smtp.gmail.com with ESMTPSA id\n\txt1sm39011197wjb.32.2015.10.19.02.45.23\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 19 Oct 2015 02:45:23 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=2yxxid4hgC9/2C7cxKrywOqipJtrmNsy8iXbIuOLtuU=;\n\tb=JLZHB7+OefEbCl0a941zVZM06/BjYN6zEEPUpYAq9l2fqcZjU0fE5g6LQFkCC73CFe\n\tfxLT+DUN0Ds6G5E/EWElnRiEns9AHnVi2avoeLSEwgGs971H6xSBTGeizWmB58iz7O0n\n\tpn33vQnN5CZ3CpuVGDO8vHI7/EzM1sLWCEnYoaO0OYj2teMuEIQDiTkpeeo5gYP1U1G3\n\tO5cUe4VRBdZcOQFePlEVJl0mQhI4jQZG9cBtz234YM4pfDV5Nyo7VrtWKTOfuxvm/z6V\n\tPtJ4rJlC3TkNIkmVl63k8WccXHvZQUUfx2ViEXfDX0L1IaoqpDfoYr9CKqCwosET90L7\n\tK7wA==", "X-Gm-Message-State": "ALoCoQkxgpyn76kOftMIuluv+dx7GxMdlMPRKAVsdyao6/Us2qXp+6ivE+/RDpHX99SIx9b/HqFw", "X-Received": "by 10.180.211.243 with SMTP id\n\tnf19mr20128182wic.74.1445247924363; \n\tMon, 19 Oct 2015 02:45:24 -0700 (PDT)", "From": "Jerome Jutteau <jerome.jutteau@outscale.com>", "To": "dev@dpdk.org", "Date": "Mon, 19 Oct 2015 11:44:28 +0200", "Message-Id": "<1445247869-713-4-git-send-email-jerome.jutteau@outscale.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>", "References": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>", "Subject": "[dpdk-dev] [PATCH v2 3/4] vhost: protect user_get_vring_base from\n\tunknown devices", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "get_device return is not checked and may cause segfault when device is\nnot found. This patch fix this.\n\nSigned-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>\n---\n lib/librte_vhost/vhost_user/virtio-net-user.c | 2 ++\n 1 file changed, 2 insertions(+)", "diff": "diff --git a/lib/librte_vhost/vhost_user/virtio-net-user.c b/lib/librte_vhost/vhost_user/virtio-net-user.c\nindex 4689927..e0bc2a4 100644\n--- a/lib/librte_vhost/vhost_user/virtio-net-user.c\n+++ b/lib/librte_vhost/vhost_user/virtio-net-user.c\n@@ -276,6 +276,8 @@ user_get_vring_base(struct vhost_device_ctx ctx,\n {\n \tstruct virtio_net *dev = get_device(ctx);\n \n+\tif (dev == NULL)\n+\t\treturn -1;\n \t/* We have to stop the queue (virtio) if it is running. */\n \tif (dev->flags & VIRTIO_DEV_RUNNING)\n \t\tnotify_ops->destroy_device(dev);\n", "prefixes": [ "dpdk-dev", "v2", "3/4" ] }{ "id": 7738, "url": "