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 1A10D468E4 for ; Thu, 12 Jun 2025 23:08:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 144A842E4A; Thu, 12 Jun 2025 23:08:21 +0200 (CEST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mails.dpdk.org (Postfix) with ESMTP id A2DA542DD9 for ; Thu, 12 Jun 2025 23:08:19 +0200 (CEST) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3a510432236so1324545f8f.0 for ; Thu, 12 Jun 2025 14:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749762499; x=1750367299; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tOIjguLwEKdvCPBACCv7/U6EZ1I2CfwUiPabc6HMF3U=; b=B6GKOW0NBvpo7/R9ucOt9EGenoaYKipWAaO6u9w6tVTFK4+BhZ14oXX4LuLV6SLdt6 R8RrssGvmXHJrn2xFtwAcW9GmtQS+GsYZtZibS5sQ1Z5A0T/6ObIstQpiCdZTveA9/5h PvTikMrJptrpNcG8299HudtE0X9RHSPxV5W47o0HMxsHcFWG1XPI3bzPRh9YlttxHk8k OS74NP/9+4HULV5/cxoVztF2trOlhvEOCKTBAVck0hTbnhCgYAAf6lSe9eOghk7RXYOL nWnh12+ig9aQSJ5p/mlqco2OIpmBE3uWw1B8cy+EK4MuxNb5azOdElxHyu3nCVRHOGeb +TFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749762499; x=1750367299; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tOIjguLwEKdvCPBACCv7/U6EZ1I2CfwUiPabc6HMF3U=; b=AxCbnOObSMU0n1O1fub2LUWl6txMrmYhnB9eLfVMhdgBFXKXKkXBTt0XUDYXPrMaMp y3wwPNLCNTdeym8BlayWNfLDYt1JTT8fhvkgPqgzUvEysiuFa61Y9UDwYr3uvBqSG6Si 6FTILe9y7bWRxkEZ8fGvymCpxfVwsyMEvsfoIacA9pQUs3eLb6Z6MFDpdAgnPyFqYv/i 2fW5AqxdPDwAgBwJ5RxB/VgTh+DLmeXhd3T9nKwF6DsiXoH/RfLHICmF7byvw6AsKTN8 YGqr2d1m/RZia9SURK4lsigAejCqQXBgOo6PFrSNhRIu09q2vT1nm+7m75w8YzEUZ/fT KTyg== X-Forwarded-Encrypted: i=1; AJvYcCUnnGtUapXkxFFsrWYjb/qgZaOtu0ONiXw/0jBhrvenhtuqSzHKKz+fx4f0TnGoogVtjoDrl1M=@dpdk.org X-Gm-Message-State: AOJu0Yza6NMFUNywkbL54vVHYkYI0rQvl8NtnyXihNAbaxONosQ7G+9w x2tyfmROM4H6ZZWCt56koEV4G6qV4Vx/xjJ1PGYr539mg2DQ815Q9rQ1oc4BnHW3 X-Gm-Gg: ASbGncvYPa2dMS72snB1zOhFCo8QHSqCG9ASC5o6SITi2mqJJ0bvyXEahv9RJJ9Z64b qFqfdEDxCG8sI3MfVPibeHY6yNsztDNZQMdOngsz60frvCrQ5ntsg1447qKiWEXukA/KPBwexSb OXYrcw6fBj3T0QF6VqGGMez4vV7U0a9AxgF2f7e7T7WtsiCh0o7Vxna7J8pBG0D/iyXd3bTTRpr MmTf23+4/9gH1mcurqq/2W8wjgPayanftFp0We42YjMrioLKObiWyIa2/gOS1hhOYvtZpw69lVz FjcwwTJ+NlKa5mDIfra3vr+Y/AnDp0Xqxzia8KzvGR4Cn2YPoixD7iUoeOZDYnEzcRm46P+rSIy aCzY= X-Google-Smtp-Source: AGHT+IGNhuqqCCDgvRyv0CikDtPMa4sJ92hg/e9PnbLHXmlAzaPlJJEJfemqduRORn1YDVF6OgZoSA== X-Received: by 2002:a05:6000:3110:b0:3a5:2e9c:edb with SMTP id ffacd0b85a97d-3a568750029mr533116f8f.47.1749762499142; Thu, 12 Jun 2025 14:08:19 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:f2df:571a:ae4c:bef2]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a568b090b0sm365471f8f.46.2025.06.12.14.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jun 2025 14:08:18 -0700 (PDT) From: luca.boccassi@gmail.com To: Rajesh Mudimadugula Cc: Akhil Goyal , dpdk stable Subject: patch 'vhost/crypto: fix cipher data length' has been queued to stable release 22.11.9 Date: Thu, 12 Jun 2025 22:06:31 +0100 Message-ID: <20250612210733.2506558-14-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250612210733.2506558-1-luca.boccassi@gmail.com> References: <20250612210733.2506558-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.9 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/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/3e45160789b860effad32a47666d159c4a599c13 Thanks. Luca Boccassi --- >From 3e45160789b860effad32a47666d159c4a599c13 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 [ 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 bd69d3b46e..198a01aabb 100644 --- a/lib/vhost/vhost_crypto.c +++ b/lib/vhost/vhost_crypto.c @@ -1098,8 +1098,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.47.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-06-12 22:06:24.413592735 +0100 +++ 0014-vhost-crypto-fix-cipher-data-length.patch 2025-06-12 22:06:23.806043286 +0100 @@ -1 +1 @@ -From 7ccd67c4185e1f4f0b975ff954e8685252bc3a18 Mon Sep 17 00:00:00 2001 +From 3e45160789b860effad32a47666d159c4a599c13 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7ccd67c4185e1f4f0b975ff954e8685252bc3a18 ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index f78daf98d1..29c9cb613d 100644 +index bd69d3b46e..198a01aabb 100644 @@ -26 +27 @@ -@@ -1359,8 +1359,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op, +@@ -1098,8 +1098,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op,