crypto: api - Add crypto_request_clone and fb
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Apr 2025 09:22:28 +0000 (17:22 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2025 11:40:54 +0000 (19:40 +0800)
commit19da081a28c95fe9b03ce952a2bf4a6f6bf5112c
tree224f4fc987087caa04437c1c10b26256cb7b245d
parentaf9ce62783dd6acd595491badec08f1235c84739
crypto: api - Add crypto_request_clone and fb

Add a helper to clone crypto requests and eliminate code duplication.
Use kmemdup in the helper.

Also add an fb field to crypto_tfm.

This also happens to fix the existing implementations which were
buggy.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504230118.1CxUaUoX-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504230004.c7mrY0C6-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/acompress.c
crypto/ahash.c
crypto/api.c
include/crypto/acompress.h
include/crypto/hash.h
include/crypto/internal/acompress.h
include/crypto/internal/hash.h
include/linux/crypto.h