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 6149641D8C for ; Mon, 27 Feb 2023 08:03:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D794410D3; Mon, 27 Feb 2023 08:03:25 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id B4ECD410FB for ; Mon, 27 Feb 2023 08:03:23 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WjaA9yK8df55ZvFRffreHvT44Ye9eQOpwO2TYO3hhHca8ybou+BRWAPRi5i+tP7qL+vDft+mVXXWlxaH9+Mh9cWDka3G957/ls0H9/esOieSq8hIBLmx5bp1k9QkKJ+2k7M5bvoVB9CxeBHbZDGqvqnlI7DAc+idjqyy5RKYrlOaPcYkQLXNMijRn9vqIjY5F3X29ewcXZ4i26pUd5+MMbm7k4J1AbtcECalQ5cyEOZ2LNpJpyAaufrAlm5U4NFP2MtJC2lfmMzIy54VzFYZMijCpX0WD+JyfEUJGo2DVQi3qbLVdV+o4/RK8qmsv6pcq7TAbU6HJg3BbrmBO3tc9g== 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=yOu9k4bSpqJOwtF1C/g5RVGVZPyCgWxT/w92ccdGJP8=; b=kPapdvBdNnfx9dBj8da5Wyy3appVUw7jqQXjgy+fn/NpFlphIVnJ350PXfOb35OZHieyabrAkAD8sMbUiU1pJdv1Iw5Jv1lBLPcgLGfVoQvddbQ/9cqj/dAg8e7xuvyQBCUzk8xGsKAhcoVf/b/wKvsts5wNnR6XBrNcjD2lVFvgaZo/Yb+Ws8tlsTyVpPjAFe3Gp5EsWhloMCMkdRC+zHobyQK5PI9N1ymeBoQwgNLpLeJ3bgGW5HaJrxi2i7S4QgCWQMKDsoOkWieWVOaKlsE5oMSUV+WxFrPplwQ2cE0OCCE517KPVpZeFAo0zs2EdHYyMcAwkIKaWczle1SSgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=redhat.com 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=yOu9k4bSpqJOwtF1C/g5RVGVZPyCgWxT/w92ccdGJP8=; b=S6OleqF0FURqZvJr1QisYSec+JBdsExJEoOEjB/kcQOIlJuJFNN7f3XQl5p2DzYwCOGn+k3Ye9z51C2WbuRIMnJolqlHKoGwlosTQET6KZYzNx9nzQnW/r3RUJpoW5pRn5txDhRmMUpFEmFzzAMxGBW35a8pCaBi/Mo8rc9rIJ9eDVoNaUHLfrVWHr5pfC1KjoJD1mKSDyTkp1q3ZUKTki3h5oGJdFcQGUqX0V3OR/SdSddWNJlroPowJZd65uLQMh79SWeZL4sQp+m9XmRBc/KqT/OOAbioOy+9SNeHHDR+MLMR5CqdrD5HW1fiRPB50n5pRTzDJNnfqcnRBxR2cg== Received: from MN2PR16CA0020.namprd16.prod.outlook.com (2603:10b6:208:134::33) by DM4PR12MB7766.namprd12.prod.outlook.com (2603:10b6:8:101::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:03:22 +0000 Received: from BL02EPF000108E9.namprd05.prod.outlook.com (2603:10b6:208:134:cafe::6) by MN2PR16CA0020.outlook.office365.com (2603:10b6:208:134::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:03:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF000108E9.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:03:22 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:03:10 -0800 Received: from nvidia.com (10.126.230.37) 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.37; Sun, 26 Feb 2023 23:03:07 -0800 From: Xueming Li To: David Marchand CC: Bruce Richardson , dpdk stable Subject: patch 'crypto/qat: fix build for generic x86 with GCC 12' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:58:47 +0800 Message-ID: <20230227070107.15664-19-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] 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-TrafficTypeDiagnostic: BL02EPF000108E9:EE_|DM4PR12MB7766:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d1a0431-4913-4f42-6f65-08db1890b6aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lYfstngz3sIlnJ1966er/FflrjY01lkcEaIOoF0RY8VC5EyqIdnl3zx8D3rPms5w9uuI5mIVWW1Du07dqNru5V20y4og0amjha8dqLEvJFQxsat3XZHEmWyVad+NqHaAucQLwqGkpKnb8O60ACuw6cKlUU+c7fN/QyMDj+1al2BQIOVY7MgEwlZ/F2/iJAypFQ8nNssALlZM3aH8j0I0VVgDFW09A0dUMkafvIoRULc6xx7LjrWwKEEaq4fV/VSJ5yfeZjZMFl9BDHjefkWXPAhvH1rQS151UXTzdpn1wQLMZJv3GHDasT53c3vETe/rsQY62GH/A2T+10LEhBR/9Wv+UCRkCfJMeF6Hd713izXtgf1Nh6VVfJG+i9CH5UDbPcTYjhTH1VP+BYS38YCCZD9QQx7bm/CgCp/WJqzZWDXwGnKXNQAbEk1H3NoHlUO7iJESEp1d33qqKgL5uUYm3fHtr2vxx9f2p9HRNY0twK1Jnn0rLWCRbjTeItUJEYZ1Y0ZfBwX2IsfCirQN0IU0ZIUz+WLfKR9hgAKj9gZ7pZzzlb5PjW5Jsm/lMHtip8P/WxeSoILrsozDnos9BLHhcLhgg3Jj90k7SmpAbon9hj6eLe68EEq39lGH8zgRO5d3zb9zyfBgxkjpf0pAzkRA8Pf1KYzuCo79elcqKH86244yoY5A6mDn42l6roh2ZPlHaYCePa0ZT65liq0zT451nCzULHbPt+ledMDiOOuo2I3VI5l5g1LH9XBmvcZVFnp0QpSD+cVdMs8LLOh6s6a075fY5s4galEePo1hm0qUkKe/40bVp6AeByqUoT+ELFIv X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(396003)(39860400002)(136003)(376002)(346002)(451199018)(46966006)(40470700004)(36840700001)(40460700003)(6286002)(16526019)(186003)(7636003)(82740400003)(83380400001)(356005)(8936002)(6916009)(4326008)(70586007)(70206006)(41300700001)(8676002)(2906002)(36860700001)(5660300002)(7696005)(55016003)(40480700001)(336012)(47076005)(478600001)(426003)(1076003)(6666004)(26005)(53546011)(966005)(2616005)(316002)(36756003)(82310400005)(86362001)(54906003)(41533002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:03:22.0006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1d1a0431-4913-4f42-6f65-08db1890b6aa X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF000108E9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB7766 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 22.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 03/01/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=a636c949963fed2c3e8ce28e48aaab13d95bcb3f Thanks. Xueming Li --- >From a636c949963fed2c3e8ce28e48aaab13d95bcb3f Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 9 Jan 2023 11:34:36 +0100 Subject: [PATCH] crypto/qat: fix build for generic x86 with GCC 12 Cc: Xueming Li [ upstream commit ad7d6eea316d0d13cc0293f7c5df8dda6696f6b2 ] Similar to commit 04361fe2aca8 ("crypto/qat: fix build with GCC 12"). The issue appears when building with the "generic" target we have in devtools/test-meson-builds.sh. Fixes: 3227bc7138f5 ("crypto/qat: use intel-ipsec-mb for partial hash and AES") Signed-off-by: David Marchand Tested-by: Bruce Richardson --- drivers/crypto/qat/qat_sym_session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c index c91acc1e9b..dfff1f4afb 100644 --- a/drivers/crypto/qat/qat_sym_session.c +++ b/drivers/crypto/qat/qat_sym_session.c @@ -1331,6 +1331,8 @@ static int qat_sym_do_precomputes_ipsec_mb(enum icp_qat_hw_auth_algo hash_alg, /* init ipad and opad from key and xor with fixed values */ memset(ipad, 0, block_size); memset(opad, 0, block_size); + RTE_VERIFY(auth_keylen <= sizeof(ipad)); + RTE_VERIFY(auth_keylen <= sizeof(opad)); rte_memcpy(ipad, auth_key, auth_keylen); rte_memcpy(opad, auth_key, auth_keylen); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:41.607459600 +0800 +++ 0020-crypto-qat-fix-build-for-generic-x86-with-GCC-12.patch 2023-02-27 14:08:40.729237000 +0800 @@ -1 +1 @@ -From ad7d6eea316d0d13cc0293f7c5df8dda6696f6b2 Mon Sep 17 00:00:00 2001 +From a636c949963fed2c3e8ce28e48aaab13d95bcb3f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ad7d6eea316d0d13cc0293f7c5df8dda6696f6b2 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 978ee49dce..622a3120f8 100644 +index c91acc1e9b..dfff1f4afb 100644 @@ -23 +25 @@ -@@ -1366,6 +1366,8 @@ static int qat_sym_do_precomputes_ipsec_mb(enum icp_qat_hw_auth_algo hash_alg, +@@ -1331,6 +1331,8 @@ static int qat_sym_do_precomputes_ipsec_mb(enum icp_qat_hw_auth_algo hash_alg,