Skip to contentSkip to conversation

lib/crypto: nh: Restore dependency of arch code on !KMSAN

PATCH Applied Eric Biggers 1 participant 2 messages Jan 5 – Jan 7

Subsystems (2)
lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

PATCH 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")
---
 lib/crypto/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crypto/Kconfig +1 -1
index 33cf46bbadc8..781a42c5c572 100644
@@ -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
author maintainer Applied
#1 lore raw
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")
---
 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