lib/crypto: nh: Restore dependency of arch code on !KMSAN
Subsystems (2)
Eric Biggers
maintainerPATCH 1/1 lib/crypto: nh: Restore dependency of arch code on !KMSAN
Since the architecture-specific implementations of NH initialize memory in assembly code, they aren't compatible with KMSAN as-is.
Fixes 382de740759a ("lib/crypto: nh: Add NH library")
Signed-off-by Eric Biggers <[email protected]>
--- lib/crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crypto/Kconfig +1 -1
@@ -114,11 +114,11 @@ config CRYPTO_LIB_NH Implementation of the NH almost-universal hash function, specifically the variant of NH used in Adiantum. config CRYPTO_LIB_NH_ARCH bool - depends on CRYPTO_LIB_NH && !UML + depends on CRYPTO_LIB_NH && !UML && !KMSAN default y if ARM && KERNEL_MODE_NEON default y if ARM64 && KERNEL_MODE_NEON default y if X86_64 config CRYPTO_LIB_POLY1305
base-commit: e78a3142fa5875126e477fdfe329b0aeb1b0693f
Signature · 1 line
2.52.0
Quoted 8 lines · Eric Biggers
Since the architecture-specific implementations of NH initialize memory in assembly code, they aren't compatible with KMSAN as-is.
Fixes 382de740759a ("lib/crypto: nh: Add NH library")Signed-off-by Eric Biggers <[email protected]>--- lib/crypto/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next
- Eric