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 56B6AA00C5 for ; Wed, 20 Jul 2022 10:25:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5295F40A7A; Wed, 20 Jul 2022 10:25:10 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2052.outbound.protection.outlook.com [40.107.223.52]) by mails.dpdk.org (Postfix) with ESMTP id 9F62B40697 for ; Wed, 20 Jul 2022 10:25:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a8g74+25+AqYF3aArVP5+a+kQynO5QLg4YB8XtwStfMhKw4UMQjbtaIMcClQ1n9MKqmHpe1eaA8XQ237Le7+ayq4z3QK57LEd02emtg0mFiM0L939Q3PaF+NZlaEEkMcRxHET0L/H/dJsDR7+E1Vys7G5aRjUkWpoCGXJvPB8utjVU937BUQvLlVGFp10Q6xJnCAu16Z/VUoEYvRxQIUl7hr/MpCjPdj9tlCL5z+w8nsh8Y4f4Gwf4KXUwcn7qldKage5iv2/X1A60riUE7NVIw8WTCBhh9zZsiWdVhseNu3Rtuf8G+BVZdFq/0BNxjIg6w+6xwMdTs826Adzix4gA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UWcNrBOXACpC5O//GwEKUmzqbN6Rs3Mw1QJKQ1uXwp8=; b=dnCotc7xllubSEB3uhgD/j6SQsUyUppSPRytx/k/3McwJtflmcitSjT+d0UgFAIaxwntcLgdBBInEAXiwaDfyum4o5htUxIy7RiuwmD2xw+fPkQkYky+k+LXHGJaDXDyJ1E6Dxdu+8dAOi/kdHmKfFcxnxsOVRIWid5Xu8liiCfKIrC7FeJv4EtymOlVbLCmxOJc10ZsZLKsCo+GPydQnqkzO7RCvZfEazixUGXIJnwMljdWzUvaNfivZ5Ycd6SndKPw6nLQOdE0tqZRHKfWv2CTrFuGb/7mjsdWRduWx6QZP35MRNbP1nmdpI9wd0Z8KKDnhKBwXRMH7HYmDWX5vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UWcNrBOXACpC5O//GwEKUmzqbN6Rs3Mw1QJKQ1uXwp8=; b=uZSZtP/JU9Vcg/uJIQUtS5j5WWIpd+t+Ur7CEZrB8jNWNHC4ttG8oferLpZJ/Q/fRz5K710Ct+JWeerfli3EH8CEHyrvKzUsWWqXrXUfe1DNpZOrkbS8ghseQmf3Zq5URSDFyD0vsDMyMuyvG70J3+e28OUy69gAjMYmqwSnLfAo1vmSDnz6So9mtB8Qerg4uefQD+FRLSlu26JA+HMXg/vIpJGm7K01tkU2NZITbMJg5NKnmAKhc9/9gjQigkpQqa3aeymRavhcnga96ZA2NkRSrenS7eqURaJ/HLaonk5u2M4q2jfOytisMi1dt1ni7TQuVA85xobz1zRslkQmCQ== Received: from BN9PR03CA0353.namprd03.prod.outlook.com (2603:10b6:408:f6::28) by SN6PR12MB2607.namprd12.prod.outlook.com (2603:10b6:805:6d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.20; Wed, 20 Jul 2022 08:25:06 +0000 Received: from BN8NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f6:cafe::d6) by BN9PR03CA0353.outlook.office365.com (2603:10b6:408:f6::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23 via Frontend Transport; Wed, 20 Jul 2022 08:25:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.234) by BN8NAM11FT040.mail.protection.outlook.com (10.13.177.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:25:06 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:25:05 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 20 Jul 2022 01:25:03 -0700 From: Xueming Li To: Heinrich Schuchardt CC: , dpdk stable Subject: patch 'test/hash: fix out of bound access' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:21:06 +0300 Message-ID: <20220720082132.3954126-37-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f781d72e-5eac-457a-0800-08da6a295a22 X-MS-TrafficTypeDiagnostic: SN6PR12MB2607:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CjSpfFW3xH/VGfEMSsiA20kL6W3r1kD9RlAvz7Sd6MWDTogmKEfh7x4XRWv6?= =?us-ascii?Q?VO7IDNNt1p1qzSQCP/kQ0baqdTyU/8Leiz24q4Q+Lr6b/Rtf15Jf97yyYCjn?= =?us-ascii?Q?vKMiS8TdxHgENZPDOp9kPie/HDiA6e/FqFt+Vr7ZY1a4v5FVKQMHwFEro/uG?= =?us-ascii?Q?nCAVqiXcpFL37sAg28KAHOMIn7+dt2ldb5gOv/5izanhLr5IrV/6N9g5flqc?= =?us-ascii?Q?g2QgkfHVKF1/qAP9bb8NOnj7ufDFeBfkhFS38FkBVdp3JIzlMDZcdjUuNpYp?= =?us-ascii?Q?WxsEevswBgnx8jfOkvyYHBvxgvIvLPswND+XUiOunJcdhlyneCZocgyr5bnS?= =?us-ascii?Q?F2MGVSe/KrTlqBzzOUhAiJ21vSOsVb0OPTckjN8kG9r8w++pFafbNMC4whHg?= =?us-ascii?Q?SKwwrssOBLTe3xGd+NekH5pU67pU5Uv9a5TzBnLoVLDX4ts1rvnWHWLuOeNN?= =?us-ascii?Q?vrsVjebqJDCoN0zdW4QDcW/tizTr7RXxx/ZUoXgCnb+PgnJwb1ZwEQ92lsgX?= =?us-ascii?Q?Tad9QHl49LTj+ruqi2vRc1wPSZ0nOTB3X1KxdSrCxp6Um88smh7zCRQc4+wY?= =?us-ascii?Q?OUXvFOpp8eC48CEBy4Rr4Sl7sKGgTY/+/KvlM7B/gvzxKjdJ/PCwPWRsErOB?= =?us-ascii?Q?c0F+HGQE/QJ8bBSJ+eFzWl5/HJL+of3UBDe2Yz/uMvLoWNCbhUia2wC+ywbA?= =?us-ascii?Q?uhMYzGSqYvroW00GjeF82iwMb9ESpJn8erhxtP1a/TQKH3vrrEvI67PcX+UT?= =?us-ascii?Q?y+ROGFkkqp9B1T4stegLte/qaQYWelI7OsSUKGsx+6crslRg2t0FQzXa8Pbi?= =?us-ascii?Q?PPQKdS2CmMGFYjaJakZiTJSaZ0PTkkpGENEq8/EHLdNb4zN+4Sylmf4ouQkW?= =?us-ascii?Q?bUf2/U0s1khciC7KqToWRnzxbht4VDAgolIEJt3WF9Vy/weum6Q99SgbqrDn?= =?us-ascii?Q?/+UODCJmdqtjwlS9GwxbTQ=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(376002)(136003)(346002)(396003)(39860400002)(36840700001)(46966006)(40470700004)(36860700001)(4326008)(40480700001)(8936002)(316002)(5660300002)(6916009)(55016003)(82310400005)(54906003)(40460700003)(2906002)(70586007)(83380400001)(16526019)(8676002)(70206006)(36756003)(356005)(86362001)(82740400003)(41300700001)(81166007)(966005)(336012)(7696005)(6286002)(2616005)(186003)(47076005)(26005)(478600001)(1076003)(53546011)(426003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:25:06.2854 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f781d72e-5eac-457a-0800-08da6a295a22 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2607 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/22/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/67350d412d9cb471f77a95ff8da9a41304f48839 Thanks. Xueming Li --- >From 67350d412d9cb471f77a95ff8da9a41304f48839 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 4 Jun 2022 10:37:11 +0200 Subject: [PATCH] test/hash: fix out of bound access Cc: Xueming Li [ upstream commit 8343fd749ff7c494c2f303f20a83b8873c6f0797 ] rwc_non_lf_results->multi_rw, rwc_lf_results->multi_rw, and rwc_perf_results->multi_rw are accessed at indexes [0..NUM_TEST-1][0..1][0..NUMTEST-1]. Currently the first index overflows the array size in struct rwc_perf. Fixes: c7eb0972e74b ("test/hash: add lock-free r/w concurrency") Signed-off-by: Heinrich Schuchardt --- app/test/test_hash_readwrite_lf_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_hash_readwrite_lf_perf.c b/app/test/test_hash_readwrite_lf_perf.c index 8120cf43be..32f9ec9250 100644 --- a/app/test/test_hash_readwrite_lf_perf.c +++ b/app/test/test_hash_readwrite_lf_perf.c @@ -59,7 +59,7 @@ struct rwc_perf { uint32_t w_ks_r_hit_nsp[2][NUM_TEST]; uint32_t w_ks_r_hit_sp[2][NUM_TEST]; uint32_t w_ks_r_miss[2][NUM_TEST]; - uint32_t multi_rw[NUM_TEST - 1][2][NUM_TEST]; + uint32_t multi_rw[NUM_TEST][2][NUM_TEST]; uint32_t w_ks_r_hit_extbkt[2][NUM_TEST]; uint32_t writer_add_del[NUM_TEST]; }; -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:01:00.513107020 +0800 +++ 0037-test-hash-fix-out-of-bound-access.patch 2022-07-20 15:00:58.744333776 +0800 @@ -1 +1 @@ -From 8343fd749ff7c494c2f303f20a83b8873c6f0797 Mon Sep 17 00:00:00 2001 +From 67350d412d9cb471f77a95ff8da9a41304f48839 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8343fd749ff7c494c2f303f20a83b8873c6f0797 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org