public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] string.c: Add wcslen()
@ 2025-03-25 15:45 Nathan Chancellor
  2025-03-25 15:45 ` [PATCH 1/2] lib/string.c: " Nathan Chancellor
  2025-03-25 15:45 ` [PATCH RFC 2/2] wcslen() prototype in string.h Nathan Chancellor
  0 siblings, 2 replies; 12+ messages in thread
From: Nathan Chancellor @ 2025-03-25 15:45 UTC (permalink / raw)
  To: Kees Cook
  Cc: Andy Shevchenko, Nick Desaulniers, Bill Wendling, Justin Stitt,
	Ard Biesheuvel, linux-kernel, linux-hardening, llvm, linux-efi,
	stable, Nathan Chancellor

Hi all,

A recent LLVM change [1] introduces a call to wcslen() in
fs/smb/client/smb2pdu.c through UniStrcat() via
alloc_path_with_tree_prefix(). Similar to the bcmp() and stpcpy()
additions that happened in 5f074f3e192f and 1e1b6d63d634, add wcslen()
to fix the linkage failure.

The second change is RFC because it makes the first change a little more
convoluted for the sake of making it externally available, which may or
may not be desirable. See the commit message for more details.

[1]: https://github.com/llvm/llvm-project/commit/9694844d7e36fd5e01011ab56b64f27b867aa72d

---
Nathan Chancellor (2):
      lib/string.c: Add wcslen()
      [RFC] wcslen() prototype in string.h

 drivers/firmware/efi/libstub/printk.c |  4 ++--
 include/linux/string.h                |  2 ++
 lib/string.c                          | 11 +++++++++++
 3 files changed, 15 insertions(+), 2 deletions(-)
---
base-commit: 78ab93c78fb31c5dfe207318aa2b7bd4e41f8dba
change-id: 20250324-string-add-wcslen-for-llvm-opt-705791db92c0

Best regards,
-- 
Nathan Chancellor <nathan@kernel.org>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-03-26 15:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 15:45 [PATCH 0/2] string.c: Add wcslen() Nathan Chancellor
2025-03-25 15:45 ` [PATCH 1/2] lib/string.c: " Nathan Chancellor
2025-03-25 15:45 ` [PATCH RFC 2/2] wcslen() prototype in string.h Nathan Chancellor
2025-03-25 16:17   ` Andy Shevchenko
2025-03-25 16:58     ` Nathan Chancellor
2025-03-25 17:05       ` Andy Shevchenko
2025-03-25 21:45         ` Nathan Chancellor
2025-03-26  0:33           ` Nathan Chancellor
2025-03-26  8:59             ` Andy Shevchenko
2025-03-26 15:37               ` Nathan Chancellor
2025-03-26 15:43                 ` Andy Shevchenko
2025-03-26  8:52           ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox