[GIT PULL] string fixes for v6.15-rc1

From: Kees Cook
Date: Sun Apr 06 2025 - 13:54:26 EST


Hi Linus,

Please pull this pair of string API fixes for v6.15-rc1.

Thanks!

-Kees

The following changes since commit b688f369ae0d5d25865f5441fa62e54c7d5d0de6:

compiler_types: Introduce __nonstring_array (2025-03-12 13:21:09 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.15-rc1-fix1

for you to fetch changes up to 48ac25ef250da7478ea54afbb1aced40c342e78d:

kasan: Add strscpy() test to trigger tag fault on arm64 (2025-04-03 10:19:26 -0700)

----------------------------------------------------------------
string fixes for v6.15-rc1

- Add wcslen() to support more Clang libcalls (Nathan Chancellor)

- Fix KASAN MTE exceptions during strscpy() (Peter Collingbourne,
Vincenzo Frascino)

----------------------------------------------------------------
Nathan Chancellor (2):
include: Move typedefs in nls.h to their own header
lib/string.c: Add wcslen()

Peter Collingbourne (1):
string: Add load_unaligned_zeropad() code path to sized_strscpy()

Vincenzo Frascino (1):
kasan: Add strscpy() test to trigger tag fault on arm64

include/linux/nls.h | 19 +------------------
include/linux/nls_types.h | 26 ++++++++++++++++++++++++++
include/linux/string.h | 2 ++
lib/string.c | 24 +++++++++++++++++++++---
mm/kasan/kasan_test_c.c | 20 ++++++++++++++++++++
5 files changed, 70 insertions(+), 21 deletions(-)
create mode 100644 include/linux/nls_types.h

--
Kees Cook