]> git.ipfire.org Git - thirdparty/linux.git/commit
x86: Remove arch-specific strncpy() implementation
authorKees Cook <kees@kernel.org>
Mon, 23 Mar 2026 01:17:59 +0000 (01:17 +0000)
committerKees Cook <kees@kernel.org>
Thu, 18 Jun 2026 23:37:13 +0000 (16:37 -0700)
commitdfe05fcca83d794cd76da1b6deb2dcd082aa1174
treedd5b6f8dd8a4f4b364326717c18a023bbd16c119
parent7eda356658cbfba9aea48bddd12b97e562c21188
x86: Remove arch-specific strncpy() implementation

strncpy() has no remaining callers in the kernel[1]. Remove the
x86-32-specific inline assembly implementation and __HAVE_ARCH_STRNCPY
define, falling back to the generic version in lib/string.c.

Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Kees Cook <kees@kernel.org>
arch/x86/include/asm/string_32.h
arch/x86/lib/string_32.c