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 2BC32A0C3F for ; Sat, 12 Jun 2021 01:19:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 242094003F; Sat, 12 Jun 2021 01:19:57 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2057.outbound.protection.outlook.com [40.107.223.57]) by mails.dpdk.org (Postfix) with ESMTP id C0FA8410FB for ; Sat, 12 Jun 2021 01:19:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c3ZEInl0vFLBjK9ZJlieCXnPI1PTUEeFQRbb4mjuUGa/kVba5HJR0ek2WKlKwECvhS5emol5HuzPktH9mLLIvQlq4m6lEkT+xBkYx5Tp4x8YgtxuJNudc7bqVMIfONyx0DM3zIztknTbC5lA5hxRYDUqtD+bw9ho0XwHrDd4iyNGS1LClSBywyh/3WWI5TSerz8QEJPGMZEy5G6UeJANHVMGkMygGBgG20geuYZl0Rbg1LHsqzCDZruuG8aRcfPVvTQnhS8h2xZtdRmzcZqK2mfzGfyGBzOpB0lGBsiqjLdfu0NlDx6MudmJGS7ksQy95r2zNDloix97rPOlh955Sg== 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=HyxqErI34AipfaQdiFWqOXTRLhiBsF+g48JbM34Bxs8=; b=fwk1bhY31vcc2W5h/Mt4n1UjuVAosE+orGEMYRIWbyYUyvOMbZcvz0qB5KJEaPPxOxWz0f/lyKPC7GIH06c8MrocU3bAKkgRbVkVuFy8UDzWbofyOROXFJWaKG/pJmG+wQho5VPnj/FVgJIv/ivneFQLJgPPY18pHtAW+taSHRGAf+ViN6bMRq64g+SR4yAy0+xVwOTYR/gY14PlDK9PK80oGryfkUJoqa0FgQv2HEeviOOApw5zNpBdsDH749FOcmepEnCk5CL8TLZ69tbZ5UgoHKb50+/Rv2E8pwNYsOFy7aDqbY1weNGGnCYhvd7W/UpSIPgwrRWdIo3TPGTVMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=HyxqErI34AipfaQdiFWqOXTRLhiBsF+g48JbM34Bxs8=; b=cJLDmpVAyhyGTB9meemm03pMpRs1C7h/wxQippooCx0r3a9z7UYLn44RFvFg5qDJmDrx1LW6GuLKvxUS4tCwKmLUDXLwudd+Fx3KHWe9mvzVDc6Z20448ZG8sZdpPoobTWKxNW11XkXtLOEUvC8QnKAmgRc2w6nTKoXF/BEQadR03F7yfM+B2gNI74G4IPIegdBQOiIucACpVpbwDgTA/aewetx3wvFky6ucDRNHTCht9b19cUiqJqAakEv98r/iq3n808yWFOKEQMOpKM0c3exgyKyBbxBl5/u3CzJZYhGTKF60pElJWKcv6i44up9k3PSVE1qls94TyPFy1v/y8g== Received: from DM5PR12CA0024.namprd12.prod.outlook.com (2603:10b6:4:1::34) by MW3PR12MB4459.namprd12.prod.outlook.com (2603:10b6:303:56::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Fri, 11 Jun 2021 23:19:54 +0000 Received: from DM6NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:4:1:cafe::18) by DM5PR12CA0024.outlook.office365.com (2603:10b6:4:1::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 23:19:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT045.mail.protection.outlook.com (10.13.173.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:19:54 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 23:19:51 +0000 From: Xueming Li To: Kevin Traynor CC: Luca Boccassi , Akhil Goyal , dpdk stable Date: Sat, 12 Jun 2021 07:04:14 +0800 Message-ID: <20210611230433.8208-160-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98641b24-9058-4041-57d1-08d92d2f6ba0 X-MS-TrafficTypeDiagnostic: MW3PR12MB4459: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ptv8go1VYXSI4AjnTOdvV9cI3b3y3GBCmQQi436VlXyj5PLkmNJenfxA3HioMrTNjMqRifek3ENRumaNla7cQS6ZN4wo3toi+UqjgW0SOPXunm8szhisYkrojmJie41rHGnRmeHUEqm85mVb239efMakZZwpK8iNgkkIC/wbmLVTqnNAZT4PYsHSr/8Xug728q+Af25AmLvwpD4+/y4noLUVkIM0KJPRZ9Jdk/WvslUGb78q1URDjmckUE90vcY7CL2jwTK0ncksO+v3P7kTE7RGsBZ5/xn4OywZd4HubA2/7OPlH4PFJ2UshBXAQ+NGmuKd1tgbLTygd+nAQzROhBE8SftYsbHsUKB8kJDJxFqVrF6+U8VSSnNUF1WZuhrfqlmWUxCQQpR+TSHwLznSkcuI6o2u/IkNqL5XwGloAXqAF2S7+XgWXlCXcGgHF0EMlPagHeLk26Q2m0vPHMBdNFc4anS2UVKtETdx/IGJl0ssGa4S0DkJGAVzVo9m9n/D6iXSKCY8Sf6YnqM8bFbnGEwmJxReh58+hiHHU8uGvW4wpH0cLBf4XH2vM8jfT4BpZ/GoRkMLtZTFV6nLIqu+NjQ9FBOisbY3xadbm0ny3S6dgSrU7fghTWSE4MbUFJniuU/muYS2ntCgFfa8NGAU9sBjcPQtSzUAa+RQ3tN+k17LsDJkdXob/Wv5VOQ/jDM7fxwHjx75ULg4KwmzlMkVKWmn3DSVHFpIUsNYmUSggFZjgBI8VdN3Mk2c3/QbfGBtw2GWoVf5YbrjyrZg84VWhU8u30ZvtSF8dDZoHPL4XGcxBboWQ9j4tvCmNGe+nJjq X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(346002)(136003)(46966006)(36840700001)(83380400001)(70586007)(47076005)(36860700001)(53546011)(966005)(336012)(70206006)(186003)(82310400003)(7696005)(36906005)(6286002)(2616005)(5660300002)(426003)(6916009)(82740400003)(36756003)(8936002)(55016002)(8676002)(54906003)(2906002)(316002)(16526019)(4326008)(6666004)(1076003)(86362001)(356005)(478600001)(7636003)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:19:54.0869 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98641b24-9058-4041-57d1-08d92d2f6ba0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4459 Subject: [dpdk-stable] patch 'test/crypto: fix build with GCC 11' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/14/21. 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/87eec97f52428847cd6f1f949a9d75218062c79d Thanks. Xueming Li --- >From 87eec97f52428847cd6f1f949a9d75218062c79d Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Wed, 5 May 2021 09:53:14 +0100 Subject: [PATCH] test/crypto: fix build with GCC 11 Cc: Luca Boccassi [ upstream commit 8f73a72378333a68ada948ad648f9c6f925af58b ] Fix the allocation for sessions, to prevent an array-bounds warning with GCC 11. Set the not created session to NULL. Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests") Signed-off-by: Kevin Traynor Acked-by: Akhil Goyal --- app/test/test_cryptodev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 56b385bdf1..ea24e8edb7 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -10411,8 +10411,8 @@ test_multi_session(void) rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info); sessions = rte_malloc(NULL, - (sizeof(struct rte_cryptodev_sym_session *) * - MAX_NB_SESSIONS) + 1, 0); + sizeof(struct rte_cryptodev_sym_session *) * + (MAX_NB_SESSIONS + 1), 0); /* Create multiple crypto sessions*/ for (i = 0; i < MAX_NB_SESSIONS; i++) { @@ -10457,6 +10457,7 @@ test_multi_session(void) } } + sessions[i] = NULL; /* Next session create should fail */ rte_cryptodev_sym_session_init(ts_params->valid_devs[0], sessions[i], &ut_params->auth_xform, -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:54:00.601466500 +0800 +++ 0160-test-crypto-fix-build-with-GCC-11.patch 2021-06-12 06:53:56.630000000 +0800 @@ -1 +1 @@ -From 8f73a72378333a68ada948ad648f9c6f925af58b Mon Sep 17 00:00:00 2001 +From 87eec97f52428847cd6f1f949a9d75218062c79d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 8f73a72378333a68ada948ad648f9c6f925af58b ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index c68684b80b..39db52b17a 100644 +index 56b385bdf1..ea24e8edb7 100644 @@ -22 +24 @@ -@@ -10748,8 +10748,8 @@ test_multi_session(void) +@@ -10411,8 +10411,8 @@ test_multi_session(void) @@ -33 +35 @@ -@@ -10794,6 +10794,7 @@ test_multi_session(void) +@@ -10457,6 +10457,7 @@ test_multi_session(void)