From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796094792; b=csZHeWZ0x61qJ3hPxzHBpMf7VtbCxJxG48gRzD1NjagAVkACl3AncSHWgOhb9mHlxA/D TDeSo8pFEh1Nqk8eEJ9uKNhSZXX4jMGJwvgzWZ5KxrpfWwkDmEwJtRdRT8OyQj3CFyID1 RnCVsZTblb05bCQ9u7GSVurA8ViYhNnwPzJ40dpO4HMcOQ5X4dTxQyoN8zcUNR0kTWdY3 ZFbMc8tVM7nb6gYGr+B7pG1c4SOP1KpSvfFYdcTLemsRr9raI1gfq/7F0ziYRfWkg6kTh kIgd9u8f0VpGU/bOL5y6glej19UacMBrCAjduQbWdZTGp0eAbDxqGl9ftgTY/B0lPag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796094792; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=pqWgQxT+HRpM97GdnwjXeeXeGQLD5v9L0ArHEGzMDm4=; b=NvLWvZhAnvssT/0NqCSzMycgYigrItKvx0jDOzV/CC35An+msaNoFkUA/E5I+VKgg+PU 0mm9KTxoULw390vJyyFJlqvAf/Z4oNk4Zb55gpdZgx1T39D2WlI3JAMpefsGVIn/oZTe3 clwZVKWrtcYHmpgGCc8t+7sYcI3VCLIeNgNHEkTNK/9Pl/XqtLBbtv5UQ2TxkTi9YOib+ V979/FhNUpTqrftRNOC44FGxTupv6mzMH+hScQKgQG1mXP9MIEQ77NYeB93i8FKyBY/OY G0I5j1XFu0J6Z2JNoDn5Un1vvx/6Zh/sB7WNFC0WBi62whBTr6Ff3e0feJLAWI96Hiw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="OBY/CYfR"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BDA7606A325 for ; Tue, 1 Dec 2026 03:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OBY/CYfR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205961F00897; Tue, 1 Dec 2026 03:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796094791; bh=pqWgQxT+HRpM97GdnwjXeeXeGQLD5v9L0ArHEGzMDm4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=OBY/CYfRfPF/tCXMrwRSKwKD39WqzKQYEn+PTSZo8dA04H3kwzeWio4L4aonY2r6U nkmfi0bPImZ+/Gru41Z2Ic/FfsdHVK2k4zHiLSbINVkHv6+SutaRvL2G6l2uSSXzyz Q6WqvpNbxOucWLLwkniItKkOvgHMGmykEb9bXl4Q5R9Lw6sPlQirtnDBJf3YfiYZlt vACfIboHpQ9S8ZW8ARJLIX9yK9TGTEIMExWi63LAFfv1pseC8D/FU+FZqsXlwtS6qr bZvdvY41h+wRYJ1OCgGjRu/pYIOpteKizGQBXUF6vh+bL2hOOXFJ1QtFemv7Q+2/EW FMonkey010i8Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/4] crypto: qce - Size CCM decrypt output DMA for the tag length Reply-To: sashiko-reviews@lists.linux.dev To: "Wenjia Zhang" , "Bartosz Golaszewski" , "Herbert Xu" , "David S. Miller" Cc: linux-crypto@vger.kernel.org, "Wenjia Zhang" In-Reply-To: <20261201-codex-qce-dma-bounds-upstream-20261201-v1-2-c15d01b45bce@oss.qualcomm.com> References: <20261201-codex-qce-dma-bounds-upstream-20261201-v1-0-c15d01b45bce@oss.qualcomm.com> <20261201-codex-qce-dma-bounds-upstream-20261201-v1-2-c15d01b45bce@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 03:13:10 +0000 X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] crypto: qce: missing Fixes trailer for CCM decrypt output DMA sizing fix -- commit 5f10f5fde7f214005300d6bdb48de54c32de881c Author: Wenjia Zhang > crypto: qce - Size CCM decrypt output DMA for the tag length > > In BAM mode, CCM decryption emits the plaintext followed by zero bytes > equal in length to the input authentication tag. The driver reserves a > full 64-byte burst for that tail. For a 32-byte payload and a 16-byte > tag, it requests 96 output bytes although the engine produces only 48. > Output DMA then waits for bytes that will never arrive. > > Use authsize for the CCM decryption tail instead of QCE_BAM_BURST_SIZE. > Keep the burst-sized tail for encryption, where the generated tag is > padded to a burst boundary. > > Validate the total mapped CCM output length before starting the request, > accounting for formatted associated data, the payload and the > direction-specific tag or padding length. > > Signed-off-by: Wenjia Zhang [Severity: Low] This looks like a bug fix for CCM decryption output DMA sizing. Should this include: Fixes: 9363efb4181c ("crypto: qce - Add support for AEAD algorithms") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-codex-qce-= dma-bounds-upstream-20261201-v1-0-c15d01b45bce@oss.qualcomm.com?part=3D2