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 203B348B59 for ; Thu, 20 Nov 2025 13:45:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B1AE40262; Thu, 20 Nov 2025 13:45:41 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 9027040262 for ; Thu, 20 Nov 2025 13:45:37 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-477632b0621so5905835e9.2 for ; Thu, 20 Nov 2025 04:45:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763642737; x=1764247537; 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=/TpDxFXNeJ0THQK6H19Z80j7OUIgAwDie0A6Babf/KM=; b=ekUqs0CAJ+sRZhdBVAXA96vSY5ixqoqyTb974h4UXFTVV8WeVXo60yggzxRA3an8NT Md0ChUxFebtBnaP1xu7hPGMb6mVM0yme5eiJT6vs90kMbAhqsKzrTSX3Dqi2TbuwJ04+ FLBpvglCHQ2FniZSGnly8s29yze/gYYUbySUu8c5RyphZZyPfAsYGpzik0/tvifcPh/C LkeC7B3ikbCMuDcz/S70zC8lBpRKDBdpnFHbPJfrXpfsW8vqkWE8QPjR72jouJM+1Ulk f+Nq8xN9NiVw/mvg3fNS/oIdquT6pQDzh08XZJmAZi9YxXxRFW11wmsFzMhZdNIQk5Mn TkJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763642737; x=1764247537; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/TpDxFXNeJ0THQK6H19Z80j7OUIgAwDie0A6Babf/KM=; b=E3GlGDXfLkTYszIQ4cY+ypbK5Leu0Rpr3XDHINn1+wGuYlGfk0pdImR3q97gyH2S9l HBHXXC27tYWyZ8Yu0WpKViNEcphPoYqmpzBZrVHL7itzlDGVkk8wEdCJmSbJgMwP4gAB Q6GW4xL1uzazAoTiknmpvuho9zy0YByDtRvC47GyZfe1kinEYYG++n3FQOVSJ7Zliz40 W0Rc0O4GUqqaFyLo/KzSiJFHRPU1P+4bMJo0h9oBXhpDBl+xaJvYNvhbenNcOc6aw4e2 v7B9D4tYm+yD1sRWCrsFpKq4dBCYrPNyBYbHGP151U5wnNuqhIWtB7ksGPvh5G0/1EG+ X/zw== X-Gm-Message-State: AOJu0Yym06S+ZQpH4l1P/6L2HMZ6NJbe/FZg++0xM9jVRDrzfhve1x/i JmcG+fRQ+XPoRPZrHdMOSHwKiVgkVc5bIb2JX2VPbscUQUEO4Z56s9H92YGuT4go X-Gm-Gg: ASbGncu5TGqLun+9egs9N92l83ffiosaViaKrN5XP9rgik7UGVNZLlp6X0Q/x3vOMh0 mGo1Qm9H5/e9LWRmApV4mZxj/FGcnjRIbdda1RPmCfiLy1mqHCXXWwv1h37x2c7Lk109lRkrwZP KTlWeTGK93BKN7GVe1UeGxquCPiFOEN25C/hrh8MccAdRk5j6QEyTS7eOxCJ5oibT8gatsv72In bn0NoZ7U5rJmuqu3dejV7n0hCjCiZBtd5IOaJKRwdwX3+ApzMs0kBafxCdxKFrc73LaXzWy5ViY s89TDZXocU7NXe9VpP/TvkEw0nMcG05I/ZP7Up2D4viFPWDld/l8xSGMAIflt5SsAGjuDCO17SX MuM0+mG3mEu8IrgGrecEiDU1i69P4Jcda4KnUMMflUJjuEoSM91hEpv1uoHDLAQewIYsArQNEcE doDDRNGafgRSCOhvVr X-Google-Smtp-Source: AGHT+IFLQTbUBqhbviST+aLzVBfuK122baymilqjCIubF+LDGDx7YhlvOqt5ygHFSM4u1MhxEB127Q== X-Received: by 2002:a05:600c:1c1c:b0:475:dc5c:3a89 with SMTP id 5b1f17b1804b1-477b8aa35dcmr29976335e9.34.1763642737032; Thu, 20 Nov 2025 04:45:37 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:f372:8d1a:399f:e8a2]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-477b1025707sm103050495e9.6.2025.11.20.04.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Nov 2025 04:45:36 -0800 (PST) From: luca.boccassi@gmail.com To: Emma Finn Cc: dpdk stable Subject: patch 'crypto/qat: fix CCM request descriptor hash state size' has been queued to stable release 22.11.11 Date: Thu, 20 Nov 2025 12:44:41 +0000 Message-ID: <20251120124514.757933-9-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251120124514.757933-1-luca.boccassi@gmail.com> References: <20251112165308.1618107-49-luca.boccassi@gmail.com> <20251120124514.757933-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.11 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/22/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/e58603cc7f6f78b83b2f91d4b132646fa432ee1c Thanks. Luca Boccassi --- >From e58603cc7f6f78b83b2f91d4b132646fa432ee1c Mon Sep 17 00:00:00 2001 From: Emma Finn Date: Wed, 12 Nov 2025 10:19:10 +0000 Subject: [PATCH] crypto/qat: fix CCM request descriptor hash state size [ upstream commit 3ffcfc48040a076643ec58c5f53b77069305afda ] The hash_state_sz field in the QAT request descriptor for AES-CCM operations was incorrectly set to the digest length. According to the QAT firmware specification, this field should contain the length of AAD in quadwords for CCM operations. Fixes: ab56c4d9ed9a ("crypto/qat: support AES-CCM") Signed-off-by: Emma Finn --- drivers/crypto/qat/qat_sym_session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c index 52ed921db2..dcd611ad71 100644 --- a/drivers/crypto/qat/qat_sym_session.c +++ b/drivers/crypto/qat/qat_sym_session.c @@ -2384,7 +2384,8 @@ int qat_sym_cd_auth_set(struct qat_sym_session *cdesc, hash->auth_counter.counter = 0; hash_cd_ctrl->outer_prefix_sz = digestsize; - auth_param->hash_state_sz = digestsize; + auth_param->hash_state_sz = (RTE_ALIGN_CEIL(auth_param->u2.aad_sz, + ICP_QAT_HW_CCM_AAD_ALIGNMENT) >> 3); memcpy(cdesc->cd_cur_ptr + state1_size, authkey, authkeylen); break; -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-11-20 12:44:13.112488212 +0000 +++ 0009-crypto-qat-fix-CCM-request-descriptor-hash-state-siz.patch 2025-11-20 12:44:12.782088080 +0000 @@ -1 +1 @@ -From 3ffcfc48040a076643ec58c5f53b77069305afda Mon Sep 17 00:00:00 2001 +From e58603cc7f6f78b83b2f91d4b132646fa432ee1c Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 3ffcfc48040a076643ec58c5f53b77069305afda ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 98ab82ffb3..2ba4fc0a3a 100644 +index 52ed921db2..dcd611ad71 100644 @@ -23 +24 @@ -@@ -2774,7 +2774,8 @@ static int qat_sym_cd_auth_set(struct qat_sym_session *cdesc, +@@ -2384,7 +2384,8 @@ int qat_sym_cd_auth_set(struct qat_sym_session *cdesc,