linux/arch/powerpc/lib
Kees Cook 7eda356658 powerpc: Remove arch-specific strncpy() implementation
strncpy() has no remaining callers in the kernel[1]. Remove the
powerpc-specific assembly implementation from both the kernel
(arch/powerpc/lib/string.S) and the boot wrapper
(arch/powerpc/boot/string.S), along with the __HAVE_ARCH_STRNCPY
define and declaration, falling back to the generic version in
lib/string.c.

The boot wrapper's strncpy had no callers in arch/powerpc/boot/.

Link: https://github.com/KSPP/linux/issues/90 [1]
Signed-off-by: Kees Cook <kees@kernel.org>
2026-06-18 16:37:13 -07:00
..
checksum_32.S
checksum_64.S
code-patching.c powerpc/code-patching: Avoid r/w mapping of the zero page 2026-06-02 16:29:16 +01:00
copy_32.S
copy_mc_64.S
copypage_64.S
copypage_power7.S
copyuser_64.S powerpc: fix KUAP warning in VMX usercopy path 2026-03-12 11:03:47 +05:30
copyuser_power7.S powerpc: fix KUAP warning in VMX usercopy path 2026-03-12 11:03:47 +05:30
crtsavres.S
div64.S
error-inject.c
feature-fixups-test.S
feature-fixups.c
hweight_64.S
ldstfp.S
locks.c
Makefile mm.git review status for linus..mm-nonmm-stable 2026-04-16 20:11:56 -07:00
mem_64.S
memcmp_32.S
memcmp_64.S
memcpy_64.S
memcpy_power7.S
pmem.c x86-64/arm64/powerpc: clean up and rename __copy_from_user_flushcache 2026-03-30 15:05:57 -07:00
qspinlock.c powerpc/qspinlock: Add spinlock contention tracepoint 2025-09-01 13:38:12 +05:30
quad.S
restart_table.c
rheap.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
sstep.c powerpc/sstep: Convert to scoped user access 2026-04-01 09:21:07 +05:30
string_32.S
string_64.S
string.S powerpc: Remove arch-specific strncpy() implementation 2026-06-18 16:37:13 -07:00
strlen_32.S
test_emulate_step_exec_instr.S
test_emulate_step.c
test-code-patching.c
vmx-helper.c powerpc/vmx: avoid KASAN instrumentation in enter_vmx_ops() for kexec 2026-05-06 07:31:28 +05:30