From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A2DD438482 for ; Tue, 7 Jul 2026 17:15:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783444560; cv=none; b=baccSsHWVO9CGJd7X3L8sLE0ZatGvbQAwDvNfhCF94QIAM1XhOHzyzrAVYtpVNH+o17Wh4x8g/6jwlwSbiFfHSHhOW1uGCFwSHV5hSIC5TSppfKFB4QY1GYUBimsHfOqUjhD/+jJbJi+963NO6yfp+wdSEFztLftUaF0YQYuDsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783444560; c=relaxed/simple; bh=10Mha+rr8r0djXqoM15tF2PmLDWsDMomIMO/5vW/vLk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U9x1b7EJ0UEViMtKJnkWkrpqOWV5YIeXsQDFYqgLcvXvhZN6gOjabHaYJVwd9ifa+p+4GLgfuqKMS2ZBqAG49BIBDIle6AIKZ8mIsAyqMn36eLbKIkzTW9l52hKW7333g7CedEXzOakqQLfIs469+a79xdSAcm8ydVWDw6Xgli4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LNP3ojpj; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LNP3ojpj" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-84794e800f4so2709231b3a.0 for ; Tue, 07 Jul 2026 10:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783444558; x=1784049358; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=PqhZWbzzy0RZ+tTYC5Zxee2buyxObsMSHIZeaXqnIUU=; b=LNP3ojpjssRn6UjOF0JG2m2JX+ox1jzKYL3IfgEOcJ+y22+Wgj0RbHZibzK0OYFAdS O2wCd/DZh0NYEetSdmMn6nNyF4nENrMTXeuTwGMG3jEGr0sfsxVZdNYwDMk63S2q/hQy Gb5A8qFspIG4S9JkVSR/2hlsRwGURYqtlXeL2JixyleS1DyLdzVyF14URMiRyMPGbH6C N0gp6ZbV25nJEh9PWoA53/AjsgcRf7U+SEOgibXnHyD7xy8fGzTwsBmTKb84s/BPKEfV 9GznG5j0XrTEJHR5hfCAFR0xCGOPUZP3GXYDy7ZMhRb/XkE+DheDFaKlhnCoeO8I2ePZ uZrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783444558; x=1784049358; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PqhZWbzzy0RZ+tTYC5Zxee2buyxObsMSHIZeaXqnIUU=; b=XJML+eXchpM0Jg+YyY/L/NcwWQREmLmtV2/wwFAy+7Zhty2Tre4aTD2r8bMAC1KNKu gXtMEZrLMiMr/lbkrknL8yC144VWqeWQddhJ5RBMX3O6czFlMN+19jI0O+dl+u3BOS0C zdOf4lk/CDX8t4kxkIJmjYf9ESsifbFDc67iRa7Ys2hys+Bm2kqAyy3LNLQW7OwdrxAB z5Hsi8sRqo8gegfzDjEOyeSlEW/n73ZEEDMD/rijb1a6Dp9A2kk2it+XPDnnwmq7jxkj vl6l3UvXTVEbgrKpAEZIohFSKSBhGs0KoysYF2WWYcmKnJZIBnIEFNCnqfuPJjaxQvir kH5A== X-Forwarded-Encrypted: i=1; AHgh+Rr1gafVSSOax1jMeXBYXHQB4G/mJKj0SR2hPwKE1qQQ1rDzK6Ed43Y3eW04eDK2bVHbRFNqp6LE++xWVqI=@vger.kernel.org X-Gm-Message-State: AOJu0Yz96r6u5GFUXBBIviu8j97/op88nAYtvG8omfh17Kn6Z09ELj2z 6jONpKlxQNGx105VYLuv4Xy6F7EmtVFLyarhA19TlIc3eflCffc30/NN X-Gm-Gg: AfdE7cl/BW9UaOFMAHY8phwWhFGyXdncIpzALnyZIGG3maEfsDWc3BlweYs5NA1SAiH eZ8tJMybLcJynhN9fSZ2qkGdLfYIdZDYPKUBQCkteafKffUmVxOzo3jyk0WrLCn4HcV0vgO9bO2 jVRpOubLog/+R1EQVpcw/NmYL0k/8ZmySZQPBKPvpc4ZAohoIwg1YS/xMk07Jah4Reyy9us1MUl CeafwtUE3bU13wruNintItXH+FQIY4/jGYWl9qTqEVdbygGmD6jC4w2u/9lEBzpQY/fmh9pge/1 zacLne80iwK/70z/y0lKiFWtXcabMMTGeIPigmLG+kM7awtPqdQsSSZWqJPk6KGmOdizDNXoTtJ /AE+e7S0taUFXyGIEpz3Qtu8t4f80F6UvUclP0y8uyCAuE3xSnVM6f2+pVp8jsZATKSL4fCDpfI Nz++UbR1e+ltuN X-Received: by 2002:a05:6a00:1821:b0:842:747f:c043 with SMTP id d2e1a72fcca58-84826be1c3fmr5799977b3a.1.1783444557468; Tue, 07 Jul 2026 10:15:57 -0700 (PDT) Received: from mincom1 ([175.235.236.90]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6b5e566sm5784602b3a.3.2026.07.07.10.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 10:15:57 -0700 (PDT) From: Jihong Min To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Antoine Tenart , Christian Marangi , Richard van Schagen , Benjamin Larsson , Mieczyslaw Nalewaj , Aleksander Jan Bajkowski , Jihong Min Subject: [PATCH v2 0/5] crypto: eip93: fix request lifetime and completion handling Date: Wed, 8 Jul 2026 02:15:32 +0900 Message-ID: <20260707171537.467608-1-hurryman2212@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is v2 of the EIP-93 fix series: https://lore.kernel.org/linux-crypto/20260524194528.3666383-1-hurryman2212@gmail.com/ This series keeps the remaining request lifetime and completion handling fixes from v1. Patch 1/6 from v1 is omitted because an equivalent devm_request_threaded_irq() failure handling fix is already in this tree as commit 85a61bf9145d ("crypto: inside-secure/eip93 - Add check for devm_request_threaded_irq"). The patches collect EIP-93 fixes that had been carried out-of-tree and rework them for the current driver. The original fixes came from work by multiple people; the individual commits carry provenance trailers where the original author, reporter or tester is known. Tested on a Lumen W1700K2 wireless AP running a Linux 6.18 based OpenWrt build, after verifying that the resulting driver changes match the corresponding OpenWrt patch diffs, modulo upstream context differences. Changes in v2: - Drop the IRQ request error patch; the equivalent fix is already present. - Rebase the remaining fixes onto cryptodev-2.6 master at e264401ce477. - Keep the remaining code changes unchanged from v1. Jihong Min (5): crypto: eip93: guard DMA cleanup on uninitialized mappings crypto: eip93: reject HMAC requests before setkey crypto: eip93: use request-local SA records for cipher requests crypto: eip93: order result descriptor reads after PE_READY crypto: eip93: handle request ID exhaustion .../crypto/inside-secure/eip93/eip93-aead.c | 34 +++++--- .../crypto/inside-secure/eip93/eip93-cipher.c | 34 +++++--- .../crypto/inside-secure/eip93/eip93-cipher.h | 3 +- .../crypto/inside-secure/eip93/eip93-common.c | 65 ++++++++++++--- .../crypto/inside-secure/eip93/eip93-common.h | 3 + .../crypto/inside-secure/eip93/eip93-hash.c | 79 +++++++++++++------ .../crypto/inside-secure/eip93/eip93-main.c | 19 +++-- .../crypto/inside-secure/eip93/eip93-main.h | 2 + 8 files changed, 174 insertions(+), 65 deletions(-) base-commit: e264401ce4776a288524e5b87593d4d864147115 -- 2.53.0