]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
lib/crypto: nh: Restore dependency of arch code on !KMSAN
authorEric Biggers <ebiggers@kernel.org>
Mon, 5 Jan 2026 05:36:52 +0000 (21:36 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 12 Jan 2026 19:07:50 +0000 (11:07 -0800)
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")
Link: https://lore.kernel.org/r/20260105053652.1708299-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/Kconfig

index 33cf46bbadc89e43a769d147ea75091bee5a27f5..781a42c5c572975341ae81427aca08d6738de5e7 100644 (file)
@@ -116,7 +116,7 @@ config CRYPTO_LIB_NH
 
 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