android_kernel_samsung_sm8650/arch/powerpc
Jason Wang a2ece1f512 powerpc: use strscpy to replace strlcpy
The strlcpy should not be used because it doesn't limit the source
length. As linus says, it's a completely useless function if you
can't implicitly trust the source string - but that is almost always
why people think they should use it! All in all the BSD function
will lead some potential bugs.

But the strscpy doesn't require reading memory from the src string
beyond the specified "count" bytes, and since the return value is
easier to error-check than strlcpy()'s. In addition, the implementation
is robust to the string changing out from underneath it, unlike the
current strlcpy() implementation.

Thus, We prefer using strscpy instead of strlcpy.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210807072154.64512-1-wangborong@cdjrlc.com
2022-05-04 19:37:44 +10:00
..
boot powerpc/boot: Build wrapper for an appropriate CPU 2022-04-27 13:03:16 +10:00
configs arch: Remove references to CONFIG_NFSD_V3 in the default configs 2022-03-11 10:25:16 -05:00
crypto powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
include powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic() 2022-05-04 19:37:43 +10:00
kernel powerpc/rtas: Replaced simple_strtoull() with kstrtoull() 2022-05-04 19:37:44 +10:00
kexec powerpc: Move C prototypes out of asm-prototypes.h 2022-03-08 22:06:25 +11:00
kvm powerpc/64: Fix build failure with allyesconfig in book3s_64_entry.S 2022-03-28 21:22:19 +11:00
lib powerpc/sstep: Use bitwise instead of arithmetic operator for flags 2022-05-02 23:02:15 +10:00
math-emu
mm powerpc/mm: Switch from __FUNCTION__ to __func__ 2022-05-04 19:37:44 +10:00
net powerpc updates for 5.18 2022-03-25 09:39:36 -07:00
perf powerpc/perf/24x7: use 'unsigned int' instead of 'unsigned' 2022-05-04 19:37:44 +10:00
platforms powerpc: use strscpy to replace strlcpy 2022-05-04 19:37:44 +10:00
purgatory
sysdev pci-v5.18-changes 2022-03-25 13:02:05 -07:00
tools powerpc/64: Add UADDR64 relocation support 2022-03-09 21:47:53 +11:00
xmon powerpc/xmon: Dump XIVE information for online-only processors. 2022-01-06 21:47:00 +11:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig powerpc updates for 5.18 2022-03-25 09:39:36 -07:00
Kconfig.debug powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP 2021-08-25 13:35:48 +10:00
Makefile Merge branch 'topic/func-desc-lkdtm' into next 2022-03-07 23:34:32 +11:00
Makefile.postlink