From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58024A0521 for ; Thu, 5 Nov 2020 22:21:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DC581DBD; Thu, 5 Nov 2020 22:21:20 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 8D55B29C6; Thu, 5 Nov 2020 22:21:17 +0100 (CET) IronPort-SDR: T9FPtAdcFrjWMVIz2MP0xt1prpRqxIYfEUR6koZwLDuarW4hdRIhYhJQHpMjmIootwxsCNARrx e76/daFEuZAw== X-IronPort-AV: E=McAfee;i="6000,8403,9796"; a="169574385" X-IronPort-AV: E=Sophos;i="5.77,454,1596524400"; d="scan'208";a="169574385" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2020 13:21:15 -0800 IronPort-SDR: /ch5N1YJ6424lZ3jf2IbxDlMWx1jXIAufsbi3cgAKL34ekozb4CxaDdkL5zi3Qz8aFulEyjNha xVP6Ddr7QIdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,454,1596524400"; d="scan'208";a="354448987" Received: from txasoft-yocto.an.intel.com ([10.123.72.192]) by fmsmga004.fm.intel.com with ESMTP; 05 Nov 2020 13:21:15 -0800 From: Timothy McDaniel To: Gage Eads Cc: dev@dpdk.org, erik.g.carrillo@intel.com, harry.van.haaren@intel.com, jerinj@marvell.com, john.mcnamara@dpdk.org, stable@dpdk.org Date: Thu, 5 Nov 2020 15:22:53 -0600 Message-Id: <1604611374-2072-3-git-send-email-timothy.mcdaniel@intel.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1604611374-2072-1-git-send-email-timothy.mcdaniel@intel.com> References: <1604611374-2072-1-git-send-email-timothy.mcdaniel@intel.com> Subject: [dpdk-stable] [PATCH 1/4] event/dlb: fix memory overrun Coverity warning X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Fix memory corruption bug caused by passing address of a 16b value, instead of address of a 32b value. Fixes: 1998008 ("event/dlb: add eventdev probe") Coverity issue: 363715 Cc: stable@dpdk.org Signed-off-by: Timothy McDaniel --- drivers/event/dlb/pf/dlb_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/dlb/pf/dlb_main.c b/drivers/event/dlb/pf/dlb_main.c index 87ab8dd..17e671e 100644 --- a/drivers/event/dlb/pf/dlb_main.c +++ b/drivers/event/dlb/pf/dlb_main.c @@ -250,13 +250,13 @@ dlb_pf_reset(struct dlb_dev *dlb_dev) { int msix_cap_offset, err_cap_offset, acs_cap_offset, wait_count; uint16_t dev_ctl_word, dev_ctl2_word, lnk_word, lnk_word2; - uint16_t rt_ctl_word, pri_reqs_dword, pri_ctrl_word; + uint16_t rt_ctl_word, pri_ctrl_word; struct rte_pci_device *pdev = dlb_dev->pdev; uint16_t devsta_busy_word, devctl_word; int pcie_cap_offset, pri_cap_offset; uint16_t slt_word, slt_word2, cmd; int ret = 0, i = 0; - uint32_t dword[16]; + uint32_t dword[16], pri_reqs_dword; off_t off; /* Save PCI config state */ -- 2.6.4