From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4C8AEA0A0C; Thu, 22 Jul 2021 21:43:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF57C4014D; Thu, 22 Jul 2021 21:43:01 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id 4397040040 for ; Thu, 22 Jul 2021 21:43:01 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 3CD8F320090B; Thu, 22 Jul 2021 15:43:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 22 Jul 2021 15:43:00 -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=fm1; bh= sW4W51+nJzlDK/LGFW1oZ8mSymbyAP5vgoHNzdNVgEc=; b=BwnlTFpnZ4Ahkrr5 /jT+VMUrrGCeOksuAjiKNLGjlrEaeQSzc8EDo1Gd3BDEUylcaDHmxgsvQFScoaKR clKXKcNDiXtu+kVEL/+dP0VXKXUHTrVbnSzumdbzYRHaeLxfu+kTj7QXXb6hUSD8 WhIpAR15V8trXxCIcEEXjXeByr+j+WV9ni7Qek3oNs52N9ev5IYI4uwZAx0xqWQy fpj0Ckj8BG/YV4AYE2QvuGq/mx8gL91LRC/4Kx5AJxcNuqlWm56FKVtCfSCdkv0s PGuFf4UZ8EoqEp/kYZHmOgn+xqHpNStqM8ccFsAB6PMZy61hN2pFelnCRpbD9G8X +MngHQ== 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=fm3; bh=sW4W51+nJzlDK/LGFW1oZ8mSymbyAP5vgoHNzdNVg Ec=; b=bgqtHUTWljr5aBzLddyT8OPH+g0Wufgjl+sCn8U1qVMB4SKyg3DZ9LVNO z8qoAqnmHsi1Jw0nM4osSFsXn4nwZriUaLGDY6VHkwqh6jBLuReq0gOv5o7epc3l k1D9K218kksUXqUdF2s46K7/eutStlEcM/S3YzHoQF1tFcxhhNneyq0RAo5DMW3Q RUMIIQw+iwVgFVtXYWGWTJ61I/YQKm+GAuB2BwNTV7JL7UkHjHZYFOhy7g+np2vM h2r5C2l6kTW+1KOOGkF6UyPHgw0GxY39Nf9/xMHm0f3GS9eFc8IgwWuH9wugr9Wy 91tLCIzDG64xmyTOStt2GD1Rvxzdw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeeigddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Jul 2021 15:42:58 -0400 (EDT) From: Thomas Monjalon To: Richael Zhuang Cc: dev@dpdk.org, David Hunt Date: Thu, 22 Jul 2021 21:43:17 +0200 Message-ID: <1655433.a82RJ7d3Ap@thomas> In-Reply-To: <20210721092750.13202-2-richael.zhuang@arm.com> References: <20210721092750.13202-1-richael.zhuang@arm.com> <20210721092750.13202-2-richael.zhuang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v1 1/1] power: check freq count before filling the freqs array X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" 21/07/2021 11:27, Richael Zhuang: > The freqs array size is RTE_MAX_LCORE_FREQS. Before filling the > array with num_freqs elements, restrict the total num to > RTE_MAX_LCORE_FREQS. This fix aims to fix the coverity scan issue > like: > Overrunning array "pi->freqs" of 256 bytes by passing it to a > function which accesses it at byte offset 464. > > Coverity issue: 371913 > > Signed-off-by: Richael Zhuang Please provide "Fixes:" lines.