Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/107905/?format=api
https://patches.dpdk.org/api/patches/107905/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220221180658.440683-1-brian.dooley@intel.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": "<20220221180658.440683-1-brian.dooley@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220221180658.440683-1-brian.dooley@intel.com", "date": "2022-02-21T18:06:58", "name": "examples/l2fwd-crypto: fix potential overflow", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "073fab1d90c3afc9648d7b5bb43fe7b19fca10e8", "submitter": { "id": 2520, "url": "https://patches.dpdk.org/api/people/2520/?format=api", "name": "Dooley, Brian", "email": "brian.dooley@intel.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220221180658.440683-1-brian.dooley@intel.com/mbox/", "series": [ { "id": 21772, "url": "https://patches.dpdk.org/api/series/21772/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=21772", "date": "2022-02-21T18:06:58", "name": "examples/l2fwd-crypto: fix potential overflow", "version": 1, "mbox": "https://patches.dpdk.org/series/21772/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/107905/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/107905/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 098C7A034E;\n\tMon, 21 Feb 2022 19:07:16 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E710C40DF6;\n\tMon, 21 Feb 2022 19:07:15 +0100 (CET)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 68E554013F;\n Mon, 21 Feb 2022 19:07:14 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Feb 2022 10:07:12 -0800", "from unknown (HELO silpixa00400883.ir.intel.com) ([10.243.23.143])\n by fmsmga001.fm.intel.com with ESMTP; 21 Feb 2022 10:07:11 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1645466834; x=1677002834;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=izgJz/8zZ6fJJk56OQn9KKeeD0O9OXKD54mhJeAqiJg=;\n b=G2dF0+t992EUx14Mhcwn/wi/XRuzPJpAsZSr5CkxQ3L9HrCgI4NvkGi8\n z1yrtcgyN3d9tdZtkhA+UnkG9Drkw8QiHZ0U0AAsXKm14ggw4nqgL0oPP\n d/mCX10E0aZaAonLqoMpy2M6JcylDjcKUUTGtcZhjw9Z3ybgpFuLMpbm7\n OuIRgwI2QoTXe2WmTAJz4dPY+DxBlCvqhKZd2R795KBB+jofmK8dvbLMu\n HLQNuj/oDtU+UJdTaupuJ8g2B2BqDEODxtFAK3udLHXEAoiogJ1i+Krcv\n iNZ8cmLJOSUWflPUKf+r6akMSnDbBsNUhW2wuHY0d1+byhRBDn3eEbaF3 g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10265\"; a=\"250372580\"", "E=Sophos;i=\"5.88,386,1635231600\"; d=\"scan'208\";a=\"250372580\"", "E=Sophos;i=\"5.88,386,1635231600\"; d=\"scan'208\";a=\"683270740\"" ], "X-ExtLoop1": "1", "From": "Brian Dooley <brian.dooley@intel.com>", "To": "dev@dpdk.org", "Cc": "Brian Dooley <brian.dooley@intel.com>, declan.doherty@intel.com,\n stable@dpdk.org, Akhil Goyal <gakhil@marvell.com>,\n Fan Zhang <roy.fan.zhang@intel.com>,\n Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>", "Subject": "[PATCH] examples/l2fwd-crypto: fix potential overflow", "Date": "Mon, 21 Feb 2022 18:06:58 +0000", "Message-Id": "<20220221180658.440683-1-brian.dooley@intel.com>", "X-Mailer": "git-send-email 2.25.1", "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": "Coverity flags an issue with 32-bit value. If max ethports value is\nconfigured with a value larger than 32 there will be an issue.\nCoverity issue: 375863 Unintentional integer overflow\n\nFixes: 387259bd6c67 (\"examples/l2fwd-crypto: add sample application\")\nCc: declan.doherty@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Brian Dooley <brian.dooley@intel.com>\n---\n examples/l2fwd-crypto/main.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c\nindex 4d9f8861af..bbdb263143 100644\n--- a/examples/l2fwd-crypto/main.c\n+++ b/examples/l2fwd-crypto/main.c\n@@ -2719,7 +2719,7 @@ initialize_ports(struct l2fwd_crypto_options *options)\n \t\t\tlast_portid = portid;\n \t\t}\n \n-\t\tl2fwd_enabled_port_mask |= (1 << portid);\n+\t\tl2fwd_enabled_port_mask |= (1ULL << portid);\n \t\tenabled_portcount++;\n \t}\n \n", "prefixes": [] }{ "id": 107905, "url": "