From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 360D91BC6E for ; Thu, 20 Dec 2018 14:59:22 +0100 (CET) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2018 05:59:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,377,1539673200"; d="scan'208";a="110924358" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.32]) by fmsmga008.fm.intel.com with SMTP; 20 Dec 2018 05:59:18 -0800 Received: by (sSMTP sendmail emulation); Thu, 20 Dec 2018 13:59:18 +0000 Date: Thu, 20 Dec 2018 13:59:17 +0000 From: Bruce Richardson To: Honnappa Nagarahalli Cc: pablo.de.lara.guarch@intel.com, dev@dpdk.org, yipeng1.wang@intel.com, gavin.hu@arm.com, nd@arm.com Message-ID: <20181220135917.GA13596@bricha3-MOBL.ger.corp.intel.com> References: <20181122025156.42217-1-honnappa.nagarahalli@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181122025156.42217-1-honnappa.nagarahalli@arm.com> Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH] hash: fix out-of-bound write while freeing key slot X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2018 13:59:23 -0000 On Wed, Nov 21, 2018 at 08:51:56PM -0600, Honnappa Nagarahalli wrote: > Add a debug check for out-of-bound write while freeing the key slot. > > Coverity issue: 325733 > Fixes: e605a1d36ca7 ("hash: add lock-free r/w concurrency") > Cc: honnappa.nagarahalli@arm.com > > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Steve Capper > Reviewed-by: Gavin Hu > --- > lib/librte_hash/rte_cuckoo_hash.c | 4 ++++ > lib/librte_hash/rte_cuckoo_hash.h | 11 +++++++++++ > 2 files changed, 15 insertions(+) > While I think enqueuing a free slot should ever fail, I don't see an issue with having a check for that. Acked-by: Bruce Richardson