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 3088446A63 for ; Thu, 26 Jun 2025 14:03:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2ACE6400D6; Thu, 26 Jun 2025 14:03:44 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2056.outbound.protection.outlook.com [40.107.94.56]) by mails.dpdk.org (Postfix) with ESMTP id 8EEE4402A3 for ; Thu, 26 Jun 2025 14:03:42 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UdVEhJjiP7tmJp6d+9VVTk0qg4JeoQQ+ywpBcloK5vLAuK+q08L8tYwR77oM2QgK9COJA7psizF1Bs4oXnEwWl637EDUbD69LkplyChMiHnh0UFZylhALQMJ3ekunySkpOxd44CaGFBOQT/0Qw+qQVYXTpd9ck9rbXmmeuFbgmmyaPMpFzl88e+lWyDadDUCuNkH+nOh94RBBMvgdnVGC4X7t7NigzioGWmpnfQQWwFuWepazsxO5N2mdhFz2o9z5oHeLqLItLNaaSxCF/Z4GjnsZOC8WFfhJAH2aeA22/ENBpU+qAa9TFHunAfa1S3L73XiMUyaE9xPmyCpgCTxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=vhdsqDmuMc5bKqlpvFn0fGs9RCWZwZI7ORcJnA1AEKo=; b=rx7w+IIcvYJ1I2t6xSsQan2mW/LV7aTGzkeJIC7+fhoV4QQQBh/4D2LbaGbGq3SSe4CZm/8QUekcK/lyL2obuEw5FT2nIa6GOo2mhFzqazt6xrO+1/97VDQazLRhr/g9iOimzzVcOVxMz0WevDw5AUtN/nkLzp8blZ6E7NLyJNhgmj+hn46/8iBbGuk7XchTq6SCM/6916eUugQput09HGinM5N3GExFa4lWHiqrZH6WSDg6UspKQuEVEz8tl+0VDmuvOJyuxSF0pmYZuaV+ZrIm3TdAs7ermuEJk9BxcEGYLG9iwh5SzO+wlhmh22UDCEQM2q9OSUtMfZ9p0nYNhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.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 (0) 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=vhdsqDmuMc5bKqlpvFn0fGs9RCWZwZI7ORcJnA1AEKo=; b=U6zr/LMPgikSQbrnqedFo7vImqREEPgPj1xaZydGydn4ohmVgQacFOlqRgGM1Cm87qqSLmcfNR407F2RMqB40iGeyxkJDjoTq9BBzCF/G/06ZTGIr1S/NrTiw9/EKsfZ/nj2H4G7yUfjpFusPQVxxQUyVpq1Uzqj6YuYHULR/D6sjvOCNtZ5s5+W5sHKejUkqtSbh1m+cR/uOIJqOOwvy22Zg1ntBuhntoOvKtFNWMvsK3OtCfdPAI8sYbWTRVU4f3OJ/KIcQlAbvqUOlTzfn442pPAXkL4/1QZMwhRTtoAwj99pfVctcQExB2nthX1sJg35tU3rWExbh4+3f3T0wA== Received: from BL1PR13CA0283.namprd13.prod.outlook.com (2603:10b6:208:2bc::18) by SN7PR12MB7954.namprd12.prod.outlook.com (2603:10b6:806:344::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8835.36; Thu, 26 Jun 2025 12:03:39 +0000 Received: from MN1PEPF0000F0E2.namprd04.prod.outlook.com (2603:10b6:208:2bc:cafe::59) by BL1PR13CA0283.outlook.office365.com (2603:10b6:208:2bc::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8901.7 via Frontend Transport; Thu, 26 Jun 2025 12:03:39 +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 MN1PEPF0000F0E2.mail.protection.outlook.com (10.167.242.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8880.14 via Frontend Transport; Thu, 26 Jun 2025 12:03:39 +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.1544.4; Thu, 26 Jun 2025 05:03:20 -0700 Received: from nvidia.com (10.126.230.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.1544.14; Thu, 26 Jun 2025 05:03:18 -0700 From: Xueming Li To: Rajesh Mudimadugula CC: Xueming Li , Akhil Goyal , "dpdk stable" Subject: patch 'vhost/crypto: fix cipher data length' has been queued to stable release 23.11.5 Date: Thu, 26 Jun 2025 20:00:36 +0800 Message-ID: <20250626120145.27369-17-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250626120145.27369-1-xuemingl@nvidia.com> References: <20250626120145.27369-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E2:EE_|SN7PR12MB7954:EE_ X-MS-Office365-Filtering-Correlation-Id: 5734b39b-a455-4f61-70b9-08ddb4a97cda X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eRku/A8ja2T+2zr/6MqqQ2q0+bXiDseb5Fjj70tS1pdK/8JrwiSXzD/Z4q3u?= =?us-ascii?Q?i6TQKxvZjFoneudS27CA8AIcv4yAw6PZ0pNACr7eYyCmpCKsgbb40zj+vYEg?= =?us-ascii?Q?ZcLLh5UFBE8Cw9xnT4XiBaS2RLLQwziD+UZ7HUq2T1ipbQYeUJT7Vp7XCo1d?= =?us-ascii?Q?HBHq+7jr3lF/TKjkH+y0RDEhDgTb/rtrD7+izoPkENN6kVYCP3Y7Ni7UlG0y?= =?us-ascii?Q?buvtS6pjKPXQKJa3cvEFXx30fcWSEeC6PWy0EpTkSEFEApx7Ho9TM3KlrF7f?= =?us-ascii?Q?h3vcvuBUfpqtegENtx9N4asczyEx3dKvrbEBHSA5tJO6IdDg3HBdUS7uHc78?= =?us-ascii?Q?z72sNie0gDVjpUS/312Ne/0RC3avbubWWiTzcT7MfBROhn28bsPoFlA+KDrq?= =?us-ascii?Q?Fq/OM7DPtKFEsmgpgt6GRglgfvizn2pMbW/8oPOpWSpAFnUPIYCZz2xpjJB9?= =?us-ascii?Q?9kCFioLKdjj3ILTefK2Zc3KODwalEdRpF2C8yqNXu9GTD3TNQlkvVweol17I?= =?us-ascii?Q?6liKJ6zRT6do3wBiREQVdaKrKL2/q0VkK9o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VfGUxFYg9Bvfk+yNN3N0gsSGOo1+xMWDpbQ33w+p2352xMC8Jnlh?= =?us-ascii?Q?zI1zzdx42xbpMYTRtAizKrE8Yl3DLGtHGHHCc7yNtoK7eEjYFQUIWCSYyA?= =?us-ascii?Q?=3D=3D?= 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:(13230040)(376014)(82310400026)(36860700013)(1800799024)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2025 12:03:39.1762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5734b39b-a455-4f61-70b9-08ddb4a97cda 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: MN1PEPF0000F0E2.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7954 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 23.11.5 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/28/25. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=9a1e04684ee6cf840d9eff4bd41938d46bcc2759 Thanks. Xueming Li --- >From 9a1e04684ee6cf840d9eff4bd41938d46bcc2759 Mon Sep 17 00:00:00 2001 From: Rajesh Mudimadugula Date: Thu, 3 Apr 2025 12:22:34 +0000 Subject: [PATCH] vhost/crypto: fix cipher data length Cc: Xueming Li [ upstream commit 7ccd67c4185e1f4f0b975ff954e8685252bc3a18 ] This patch fixes cipher data length, in the event of algorithm chaining. When enqueuing crypto op to vhost backend cipher.data.length is set correctly which is in virtqueue_crypto_sym_pkt_header_arrange(). This field is computed and assigned wrongly instead of using passed value. This is rectified and using correct cipher data length in vhost crypto. Fixes: 3bb595ecd682 ("vhost/crypto: add request handler") Signed-off-by: Rajesh Mudimadugula Acked-by: Akhil Goyal --- lib/vhost/vhost_crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c index 23eb59459e..8b3050f229 100644 --- a/lib/vhost/vhost_crypto.c +++ b/lib/vhost/vhost_crypto.c @@ -1106,8 +1106,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op, op->sess_type = RTE_CRYPTO_OP_WITH_SESSION; op->sym->cipher.data.offset = chain->para.cipher_start_src_offset; - op->sym->cipher.data.length = chain->para.src_data_len - - chain->para.cipher_start_src_offset; + op->sym->cipher.data.length = chain->para.len_to_cipher; op->sym->auth.data.offset = chain->para.hash_start_src_offset; op->sym->auth.data.length = chain->para.len_to_hash; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-06-26 19:59:18.418521501 +0800 +++ 0016-vhost-crypto-fix-cipher-data-length.patch 2025-06-26 19:59:17.222418051 +0800 @@ -1 +1 @@ -From 7ccd67c4185e1f4f0b975ff954e8685252bc3a18 Mon Sep 17 00:00:00 2001 +From 9a1e04684ee6cf840d9eff4bd41938d46bcc2759 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 7ccd67c4185e1f4f0b975ff954e8685252bc3a18 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index f78daf98d1..29c9cb613d 100644 +index 23eb59459e..8b3050f229 100644 @@ -26 +28 @@ -@@ -1359,8 +1359,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op, +@@ -1106,8 +1106,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op,