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 7606CA0A0C; Fri, 23 Jul 2021 04:07:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3783740040; Fri, 23 Jul 2021 04:07:47 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2068.outbound.protection.outlook.com [40.107.20.68]) by mails.dpdk.org (Postfix) with ESMTP id A6EAF4003C for ; Fri, 23 Jul 2021 04:07:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+mq2J4tbFqA05fBCyKVZ2nZYhggDMvCVtMECmIv3T+A=; b=aQOiJTGJcMjr9K7Uaan2dX3YEbb2EEoocjANYnHBTM2yIQmeFVTBLkzd1wnSTw46ewUndkvX5PTZsjI8W5p6c2CtFkIbjewCKcIqMoA4PziIzvfISyQWYJL+Orjfq1Emk77tceHdvdW2qC9GfrEOB8/YZ6dya3LHv6d7M+Igc+8= Received: from DB6PR0202CA0039.eurprd02.prod.outlook.com (2603:10a6:4:a5::25) by VI1PR08MB4189.eurprd08.prod.outlook.com (2603:10a6:803:e7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Fri, 23 Jul 2021 02:07:44 +0000 Received: from DB5EUR03FT030.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a5:cafe::a4) by DB6PR0202CA0039.outlook.office365.com (2603:10a6:4:a5::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25 via Frontend Transport; Fri, 23 Jul 2021 02:07:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT030.mail.protection.outlook.com (10.152.20.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Fri, 23 Jul 2021 02:07:43 +0000 Received: ("Tessian outbound bbfc4df8f27e:v99"); Fri, 23 Jul 2021 02:07:43 +0000 X-CR-MTA-TID: 64aa7808 Received: from 53907046e53b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E2F78438-73D6-4CD2-9156-853C76C52DF8.1; Fri, 23 Jul 2021 02:07:37 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 53907046e53b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 23 Jul 2021 02:07:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RClhzMS733RUJ2QL1J+ZAPLTpOZo+AcSLofjqDZG6NTZb3tpIU+sOCq3l6y5/+/c0mwUdQ+6DfoVz2yHkCoAi5elKmUzB8mLiWpZKSIreQzwjmHhMDUbw3+m4LQaMeljoy5yu6NeEA62Y4mVhGw32qLvZMOHcyrfLHRF/dHNr6hqoHjpxhT59k8rwZWYDsMpTiF8qVLIuAjWjFpCMfKRcBGtC2pQP20RmD700unBeQWdjqfrmDUHZELtUv8F6/ZJBzb/XkiAwOzbrhKFnMcVmond90f50E1bXJFlItySkCMDIe1ThcwwQr9pm2ve8TPNbB1b1f8zfBKXWHWyukry6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+mq2J4tbFqA05fBCyKVZ2nZYhggDMvCVtMECmIv3T+A=; b=SXWVsM2R1ObK1H4tIbauD76auvIlkz+MQWBEIOcXtpptn3wlwmAEuG/rO6uvl1YGXLkp2cxkO83tOgnCPlYgyhBf1ZiHgIq0DUb5NCXDOveEGw9/Yf09ojHbjs5xGjpgj/uYSLxUP4/Xv8eAGo/dySGB1uYGxHAFrjVlu5AvWE/gmcdPvMjfgfx9DT9SJM+RN7Xkk/9HJTCYnVP03/xv08b6kNv9NzXZG0F34EuUAyovuPUJJmXQWneKGdtXzYh4I8Hq7eXgeUXHywLRgpLaAM63cyE5znE8cRt2SPhFKj1/CL8anmPLvovplAV5OVRqZGxrj+sQ11FDKeEGtuHg8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+mq2J4tbFqA05fBCyKVZ2nZYhggDMvCVtMECmIv3T+A=; b=aQOiJTGJcMjr9K7Uaan2dX3YEbb2EEoocjANYnHBTM2yIQmeFVTBLkzd1wnSTw46ewUndkvX5PTZsjI8W5p6c2CtFkIbjewCKcIqMoA4PziIzvfISyQWYJL+Orjfq1Emk77tceHdvdW2qC9GfrEOB8/YZ6dya3LHv6d7M+Igc+8= Received: from AM8PR08MB5796.eurprd08.prod.outlook.com (2603:10a6:20b:1d1::22) by AM9PR08MB6130.eurprd08.prod.outlook.com (2603:10a6:20b:2d8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.26; Fri, 23 Jul 2021 02:07:36 +0000 Received: from AM8PR08MB5796.eurprd08.prod.outlook.com ([fe80::80e1:497c:2c9e:47c5]) by AM8PR08MB5796.eurprd08.prod.outlook.com ([fe80::80e1:497c:2c9e:47c5%4]) with mapi id 15.20.4352.028; Fri, 23 Jul 2021 02:07:36 +0000 From: Richael Zhuang To: "thomas@monjalon.net" CC: "dev@dpdk.org" , David Hunt , nd , nd Thread-Topic: [dpdk-dev] [PATCH v1 1/1] power: check freq count before filling the freqs array Thread-Index: AQHXfhLSbH0SkfSroUWfEjYbzNzlaatPZ3yAgABrOWA= Date: Fri, 23 Jul 2021 02:07:35 +0000 Message-ID: References: <20210721092750.13202-1-richael.zhuang@arm.com> <20210721092750.13202-2-richael.zhuang@arm.com> <1655433.a82RJ7d3Ap@thomas> In-Reply-To: <1655433.a82RJ7d3Ap@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: F086B8934D779F4790EE61D1AEFA2AA1.0 x-checkrecipientchecked: true Authentication-Results-Original: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: e37c1ca2-9193-498e-44a6-08d94d7ea89c x-ms-traffictypediagnostic: AM9PR08MB6130:|VI1PR08MB4189: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1122;OLM:1122; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: TRBA+1UbPBhAEbJOL6BxnZfwbwVy7xJ52NXc2VPleOnImKwKZduntAoBKgaD7zWu3/tflaaApB+zHVXKStYS8/qyVLmVKymt+l6+PvK7q4vGIwqL99W0vfyWVsMeagDcbW2G+dEvAffHV8z1LGEzkq1m4iT2cVYn4p1y9qL+1gX6xzANpK70eIHq1sxWG0bWkTLLzYIZyN+ttMnrR55CS5z8YwwTyPs/uiLO8jMNmoEOrO7UtT/55phwLNSTOkHpA7wZ6/OTUzSnX+3sWQZbW/dADyGur+xs5hO2g+XPMdCnPPZAbSyaNU9ZbLG1qOZcTJJx87tEJFi3suap1q/5UXhp1CIdk/PW97wHaZJBLgi/t+xek8ywPd/P9BC3OMg13aHiJvZBUo+6EO2c1Yqj+L4dkd2xFuywC2HCWeBelJpVe2XQISST99oUzm7TX/j6foEk1fITHRFZh+XKME2zVBe1+7JQr8iuEArdPxJJYAY5hZHTlGcVelSZoVchgjq80LyJk+kfCkv28kKaYWebds2E3EWXYR9GZ98mtdCtPE3ZQ3h9CTdD3T4bq25lmXOkFzJyrb/E8wrVEbGhJh1gDHz+btxlukDNVr++v7XrvuSvruyVb+RYq4gBLKp6XxUcnZwkuItLF/gvxJNQkLwQkkhgschuMZdkmomYlh9V87qgFiK/VgwXAh92PT0kfeO7ukbVAmHROzIUNk/MEfQdtw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR08MB5796.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(396003)(39850400004)(136003)(346002)(52536014)(64756008)(55016002)(66446008)(9686003)(66476007)(33656002)(26005)(53546011)(8936002)(76116006)(66556008)(66946007)(186003)(83380400001)(4326008)(7696005)(5660300002)(6916009)(2906002)(8676002)(4744005)(122000001)(38100700002)(86362001)(316002)(478600001)(6506007)(71200400001)(54906003)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wir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H?= =?us-ascii?Q?ficjw8qPo+yWqJPAHyB24CF4lImZd9Z0XjKjGJu0B/6YMiOpGat6ZNnRBem3?= =?us-ascii?Q?5akkJF0ZePu4bsGW2JyMu1XTU/hKlEr9KacXdvA6ekoOCMUvW3PJqtvrhWQ4?= =?us-ascii?Q?XeOFO36T8iNOwrJiHMRiJlUI5OK8OrdX0cyzkUg87ADcPQvMlel+Din5Joxh?= =?us-ascii?Q?L9iqkjt6xZmeDS7gi9ylrxmgC/DKYC1H1meanmOQKzszfG4uhKoeSt0ovXUS?= =?us-ascii?Q?NReWvqkgXVthGm7OEEZswiK1BjOTzMEsgine63a+zN3MbtKsK0ZwXIpUHraH?= =?us-ascii?Q?MLv2IKAEmvURbiLAO0gzRxQ1SYR6pM1IpxWM+1tZFbOIUERhnvoA7/zSJhS8?= =?us-ascii?Q?VTk8itvsKalvO7Bji2CmJt/afZNbZgG/+x17ka++T/X2yyzrV1hx2hVqvAvE?= =?us-ascii?Q?0fY=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6130 Original-Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT030.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 8a85db41-5d6a-4f2b-e8ae-08d94d7ea3e6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SZCoSpTvQIEuEDphpwfsla6OryTxbusHCuj6Cb82tF3AsjaxkWOen30ZyvKMigvwZfQNGnx+uE6RBOhRuEFSg5OPEM+iJk/8lXNbZJPrnEKMpwCMbBmb3s9LBkvCvb5H6i5ikmbzeS1xp5wySYLAiT85hTP7/dqCCzE69qGCk541+06buQgpbstWWT+DCpTJzm4mE5+VVAPQzUeJWktINqNaVtUEF20gPBe2or7x1pEDAAkPe/2O0jXvRHBzXU6AFpGl5XrsX8j2GQymwNDkTpomL0/s3ZydaiVtqM4OvjYiQUuO3AJ6sSjf4EwwDYh89JObAfsOCC/PeOUc6UhniphzpfvvyZLL2foeo57OW1fcS1O3yqcDQNI4Vw0QCMQDLzs0YfAkryYfvs7osiqTtJQdXjcMXfWpEjuIiaMMk9hGSns27mxjfeSSaa9saL80wMDYin+k7kFpyGi8vlZfn+brkwCc5mw80VHz1AUnJJ0fGgPpNWN52B5lZmvsz5MkEQJ9oQqrOgEUHd7g2DxgAGGjleetgpsGqCcKpfJBgV6dKalbzi1pBhHc/Voxbm4rUAO4B4+g5FSDPllvrGD/5yqVYPng0TJtTtxTKOCi/5ibGlyb1WE0eTJmR1O7LwEgmdSm25d0B7XXEB9k5JZmmnFEZMY+FGuc6oqv4UWuEq+KTiPLAdqEZNHNByoecVMFYvKm5UjZlqJQ/AOxou9tUA== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(136003)(39860400002)(396003)(376002)(346002)(46966006)(36840700001)(6506007)(2906002)(86362001)(81166007)(4326008)(82310400003)(55016002)(336012)(6862004)(8676002)(54906003)(7696005)(47076005)(4744005)(82740400003)(356005)(5660300002)(36860700001)(53546011)(9686003)(33656002)(70206006)(26005)(70586007)(478600001)(8936002)(316002)(186003)(83380400001)(52536014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 02:07:43.9597 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e37c1ca2-9193-498e-44a6-08d94d7ea89c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT030.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4189 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" > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, July 23, 2021 3:43 AM > To: Richael Zhuang > Cc: dev@dpdk.org; David Hunt > Subject: Re: [dpdk-dev] [PATCH v1 1/1] power: check freq count before fil= ling > the freqs array >=20 > 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 >=20 > Please provide "Fixes:" lines. >=20 >=20 Thanks, I will add it.