Merge tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux

Pull crypto library fixes from Eric Biggers:

 - Fix a performance issue with the scoped_ksimd() macro (new in 6.19)
   where it unnecessarily initialized the entire fpsimd state.

 - Add a missing gitignore entry for a generated file added in 6.18.

* tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
  lib/crypto: riscv: Add poly1305-core.S to .gitignore
  arm64/simd: Avoid pointless clearing of FP/SIMD buffer
This commit is contained in:
Linus Torvalds
2025-12-19 08:39:48 +12:00
2 changed files with 10 additions and 1 deletions

View File

@@ -48,6 +48,13 @@ DEFINE_LOCK_GUARD_1(ksimd,
kernel_neon_begin(_T->lock),
kernel_neon_end(_T->lock))
#define scoped_ksimd() scoped_guard(ksimd, &(struct user_fpsimd_state){})
#define __scoped_ksimd(_label) \
for (struct user_fpsimd_state __uninitialized __st; \
true; ({ goto _label; })) \
if (0) { \
_label: break; \
} else scoped_guard(ksimd, &__st)
#define scoped_ksimd() __scoped_ksimd(__UNIQUE_ID(label))
#endif

2
lib/crypto/riscv/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# SPDX-License-Identifier: GPL-2.0-only
poly1305-core.S