]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: curve25519-hacl64: Fix older clang KASAN workaround for GCC
authorNathan Chancellor <nathan@kernel.org>
Mon, 3 Nov 2025 19:11:24 +0000 (12:11 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 4 Nov 2025 17:35:58 +0000 (09:35 -0800)
commit2b81082ad37cc3f28355fb73a6a69b91ff7dbf20
treee53222dc8701f3766087874b94dc9ab6c19ed4f5
parent1af424b15401d2be789c4dc2279889514e7c5c94
lib/crypto: curve25519-hacl64: Fix older clang KASAN workaround for GCC

Commit 2f13daee2a72 ("lib/crypto/curve25519-hacl64: Disable KASAN with
clang-17 and older") inadvertently disabled KASAN in curve25519-hacl64.o
for GCC unconditionally because clang-min-version will always evaluate
to nothing for GCC. Add a check for CONFIG_CC_IS_CLANG to avoid applying
the workaround for GCC, which is only needed for clang-17 and older.

Cc: stable@vger.kernel.org
Fixes: 2f13daee2a72 ("lib/crypto/curve25519-hacl64: Disable KASAN with clang-17 and older")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251103-curve25519-hacl64-fix-kasan-workaround-v2-1-ab581cbd8035@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/Makefile