From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CB4AC43219 for ; Thu, 2 May 2019 23:38:26 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 091F62085A for ; Thu, 2 May 2019 23:38:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="WqXaYqR3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="54RBO3/6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 091F62085A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3BC445F27; Fri, 3 May 2019 01:38:25 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A85965F17; Fri, 3 May 2019 01:38:23 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2189823590; Thu, 2 May 2019 19:38:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 02 May 2019 19:38:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=KQIl+mEpl9rZ4mm4xOFzAzjIFnwXiCH68PC04fUMjJs=; b=WqXaYqR3rotY afUo0SmUKjpq/aeXPLepNOVc6HuzfKCDPAbjtSqYhTgS1GpCpr7Dx7iWhsx18IXR Z2RrpWi0MKPJaHH+eafEkuC/c4zy9+Gkpq296DVRaNoldmNA2nt3rYK0lT9foqIw TV3RqRuSQ+WN8+zva+GIMYJRzpFnKWE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=KQIl+mEpl9rZ4mm4xOFzAzjIFnwXiCH68PC04fUMj Js=; b=54RBO3/63L+vETb/oGXyWaEAOJ3pAli/HzYLnp0xhtBMUsfCTPfg6ona+ 5yplT4P8xeAEZhrWWpWbjGBYAjbOSveQQ+05ctoTxKl9MmGUjOpqMOsTuQvHa/X3 wcXUVoG+493RQnvFC2i+rxVeHnpcIdPaZcoqeoGYN+mXuG0gkJs02lZmbl5KPjb/ 5x4Uf6T7jNUiHC5igjXQxkzPZzkNubrGFLbe8SMLF+Iwc9s0EsP4wsHPO2+QMBVe CMDIxL0j03F5bQrXYTmrU4XD+KtVIztXS4UiiTq9tm4TDD7AHtF54S0001sSIPWX lZjCdbT4UJAYBcXiQZx0muILXNUwg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedtgddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 34171103D0; Thu, 2 May 2019 19:38:22 -0400 (EDT) From: Thomas Monjalon To: David Hunt Cc: stable@dpdk.org, dev@dpdk.org Date: Fri, 03 May 2019 01:38:21 +0200 Message-ID: <2453136.0L2uUJhSfQ@xps> In-Reply-To: <20190426084209.3853-1-david.hunt@intel.com> References: <20190423085344.3493-1-david.hunt@intel.com> <20190426084209.3853-1-david.hunt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH v3] examples/vm_power_manager: fix buffer overrun 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 26/04/2019 10:42, David Hunt: > The freqs array in freq_info struct has RTE_MAX_LCORE_FREQS elements, > yet the code can attempt to look at the index at RTE_MAX_LCORE, > which may be greater than RTE_MAX_LCORE_FREQS. Fix to limit index to > RTE_MAX_LCORE_FREQS. > > Fixes: d26c18c93260 ("examples/vm_power: cpu frequency in host") > Coverity issue: 337660 > CC: stable@dpdk.org > Signed-off-by: David Hunt > Acked-by: Reshma Pattan Applied, thanks