From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 370EAA05D3 for ; Mon, 22 Apr 2019 23:54:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 323DF1B48D; Mon, 22 Apr 2019 23:54:58 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 468ED1B48D; Mon, 22 Apr 2019 23:54:56 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CD84420F51; Mon, 22 Apr 2019 17:54:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 22 Apr 2019 17:54:55 -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=UvHoALlV1YhsYtjX8TAg3K+ADEoXcO41o+VJQs3S0XE=; b=kQbUstXDj5qj c2eGgahnqGbOEa8yPhfITt2ORPmJ68XOdAPZ74Wzwhd9XISodPcHVZ6AC7drs2El pBwFzpcfjxpGfc6u4zEMfDLfJ1Y89S4HVKQDat9NAyt3j3r0QmzxRt/OOYSUP2k3 751HRc7xVvNqOC38Emfbq4dzQOKTLYg= 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=UvHoALlV1YhsYtjX8TAg3K+ADEoXcO41o+VJQs3S0 XE=; b=GC3jSAYmDvTLSTCEN0tRAZs1o2DNdr5iifE7QUQY0TfkEgsUn1yZYpX0u 7CJFqurnLUgVHRsMREk2sNSDjGtnuz064zLdKk+kTJjxomNRM4Cbk6lf+RqHeVrK BBpPUvREmZR2gxvm76BckqNK3w2CgvQWqzeasDLfFlMB/XGY7lgWEHKCDAg5iGRy YlN7qc+6QjrPXcXKwz0mgCMgLSsAzIGLIffAFD5gLShZcjJCGnRRxH2vi0wXwQm4 sQQ4j8QLWmlw0IJxU17MIhZYALJys/dEZAoqLMSTETECHuSCzfA5W+18Oa0XBf3l aRvbSTCrbij7Kzda1v2bLiDejv8eg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeejucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh ephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgrshcuofho nhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukfhppeekfe drudduhedrudehhedrudefkeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghs sehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (acaen-257-1-30-138.w83-115.abo.wanadoo.fr [83.115.155.138]) by mail.messagingengine.com (Postfix) with ESMTPA id B48AF10319; Mon, 22 Apr 2019 17:54:53 -0400 (EDT) From: Thomas Monjalon To: David Hunt Cc: dev@dpdk.org, stable@dpdk.org Date: Mon, 22 Apr 2019 23:54:50 +0200 Message-ID: <2785627.VT4d78UdPe@xps> In-Reply-To: <20190410124910.24537-1-david.hunt@intel.com> References: <20190410124910.24537-1-david.hunt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v1] 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" Message-ID: <20190422215450.4Tfh2tcKb0JrlgAz0Hf74M3AYZAQkkurpAv_HJaJaWQ@z> 10/04/2019 14:49, David Hunt: > The freqs array in freq_info struct has RTE_MAX_LCORE_FREQS elements, > yet the code can attemtp to look at the index at POWER_MANAGER_MAX_CPUS, > 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 > > Signed-off-by: David Hunt It seems to have been fixed in another patch, isn't it?