Re: [PATCH] crypto: eip93 - return request validation errors synchronously

From: Herbert Xu

Date: Fri Nov 27 2026 - 00:17:41 EST


On Fri, Nov 20, 2026 at 07:37:18PM +0000, Gleb Pesin via B4 Relay wrote:
> From: Gleb Pesin <dormancygrace@xxxxxxxxx>
>
> The skcipher and AEAD paths validate requests before submitting them
> to the hardware. On validation failure they invoke the completion
> callback and return the same error. Callers handle that return value
> as a synchronous failure and can complete the request a second time.
>
> Return the validation error directly in both paths. Keep completion
> callbacks in the hardware result handlers.
>
> Codex (gpt-6.2-sol) assisted with comparing the two paths, preparing the
> change and writing the changelog. The corresponding OpenWrt 6.18.64
> driver object was cross-compiled on MIPS.
>
> Fixes: 9739f5f93b78 ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")
> Reported-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/linux-crypto/aXxmIuU9PKJiDs7n@xxxxxxxxxxxxxxxxxxx/
> Signed-off-by: Gleb Pesin <dormancygrace@xxxxxxxxx>
> ---
> drivers/crypto/inside-secure/eip93/eip93-aead.c | 4 +---
> drivers/crypto/inside-secure/eip93/eip93-cipher.c | 4 +---
> 2 files changed, 2 insertions(+), 6 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt