* [PATCH] lib/crypto: nh: Restore dependency of arch code on !KMSAN
@ 2026-01-05 5:36 Eric Biggers
2026-01-07 4:10 ` Eric Biggers
0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2026-01-05 5:36 UTC (permalink / raw)
To: linux-crypto
Cc: linux-kernel, Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu,
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 <ebiggers@kernel.org>
---
lib/crypto/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
index 33cf46bbadc8..781a42c5c572 100644
--- a/lib/crypto/Kconfig
+++ b/lib/crypto/Kconfig
@@ -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
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] lib/crypto: nh: Restore dependency of arch code on !KMSAN
2026-01-05 5:36 [PATCH] lib/crypto: nh: Restore dependency of arch code on !KMSAN Eric Biggers
@ 2026-01-07 4:10 ` Eric Biggers
0 siblings, 0 replies; 2+ messages in thread
From: Eric Biggers @ 2026-01-07 4:10 UTC (permalink / raw)
To: linux-crypto
Cc: linux-kernel, Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu
On Sun, Jan 04, 2026 at 09:36:52PM -0800, Eric Biggers wrote:
> 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 <ebiggers@kernel.org>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-07 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-05 5:36 [PATCH] lib/crypto: nh: Restore dependency of arch code on !KMSAN Eric Biggers
2026-01-07 4:10 ` Eric Biggers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox