]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: algif_aead - Revert to operating out-of-place
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Apr 2026 06:35:58 +0000 (23:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Apr 2026 09:24:38 +0000 (11:24 +0200)
commit19d43105a97be0810edbda875f2cd03f30dc130c
tree7481cc9dfadb950399a49279e4d16ab89585caf6
parent17774d99bb4347c6b025ef80b637d6e3f94fe2f7
crypto: algif_aead - Revert to operating out-of-place

commit a664bf3d603dc3bdcf9ae47cc21e0daec706d7a5 upstream.

This mostly reverts commit 72548b093ee3 except for the copying of
the associated data.

There is no benefit in operating in-place in algif_aead since the
source and destination come from different mappings.  Get rid of
all the complexity added for in-place operation and just copy the
AD directly.

Fixes: 72548b093ee3 ("crypto: algif_aead - copy AAD from src to dst")
Reported-by: Taeyang Lee <0wn@theori.io>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/af_alg.c
crypto/algif_aead.c
crypto/algif_skcipher.c
include/crypto/if_alg.h