linux/arch/mips
Jason Wang 906c6bc6e8 MIPS: BCM47XX: Replace strlcpy with strscpy
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: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2021-12-16 15:56:25 +01:00
..
alchemy mips: alchemy: remove historic comment on gpio build constraints 2021-12-16 15:48:32 +01:00
ar7 mips: ar7: convert to CONFIG_COMMON_CLK 2021-06-08 17:00:09 +02:00
ath25 mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
ath79 MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
bcm47xx MIPS: BCM47XX: Replace strlcpy with strscpy 2021-12-16 15:56:25 +01:00
bcm63xx mips: bcm63xx: add support for clk_get_parent() 2021-11-16 09:27:28 +01:00
bmips MIPS: bmips: include <linux/dma-direct.h> for phys_to_dma 2021-03-06 08:43:40 +01:00
boot MIPS: DTS: Ingenic: adjust register size to available registers 2021-12-09 18:10:00 +01:00
cavium-octeon - added printing of CPU options for /proc/cpuinfo 2021-11-05 08:13:19 -07:00
cobalt
configs MIPS: defconfig: CI20: configure for DRM_DW_HDMI_JZ4780 2021-12-09 18:09:34 +01:00
crypto asm-generic: unaligned always use struct helpers 2021-05-10 17:50:47 +02:00
dec mips: dec: provide the correctly capitalized config CPU_R4X00 in init error message 2021-12-16 15:47:37 +01:00
fw
generic MIPS: generic/yamon-dt: fix uninitialized variable error 2021-11-16 09:27:01 +01:00
include mips: kgdb: adjust the comment to the actual ifdef condition 2021-12-16 15:47:58 +01:00
ingenic MIPS: Kconfig: ingenic: Ensure MACH_INGENIC_GENERIC selects all SoCs 2021-06-01 11:44:47 +02:00
jazz MIPS/jazzdma: return error code from jazz_dma_map_sg() 2021-08-09 17:13:05 +02:00
kernel MIPS: CPC: Use bitfield helpers 2021-11-29 12:42:57 +01:00
kvm KVM: MIPS: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS 2021-11-18 02:12:14 -05:00
lantiq MIPS: lantiq: Fix typo in a comment 2021-12-14 10:03:31 +01:00
lib arch: remove compat_alloc_user_space 2021-09-08 15:32:35 -07:00
loongson2ef MIPS: Loongson2ef: Remove unnecessary {as,cc}-option calls 2021-12-09 10:27:14 +01:00
loongson32
loongson64 Merge branch 'akpm' (patches from Andrew) 2021-11-06 14:08:17 -07:00
math-emu
mm MIPS: Fix typo in a comment 2021-12-14 10:03:04 +01:00
mti-malta - converted Pistachio platform to use MIPS generic kernel 2021-09-03 11:11:54 -07:00
n64 mips: Add N64 machine type 2021-01-22 11:40:00 +01:00
net bpf, mips: Fix comment on tail call count limiting 2021-10-11 15:29:38 +02:00
pci MIPS: TXX9: Remove rbtx4938 board support 2021-12-09 10:29:03 +01:00
pic32 clkdev: remove CONFIG_CLKDEV_LOOKUP 2021-06-08 17:00:09 +02:00
power
ralink mips: ralink: add missing of_node_put() call in ill_acc_of_setup() 2021-12-14 10:05:12 +01:00
rb532 arch: remove spurious blkdev.h includes 2021-10-18 06:17:01 -06:00
sgi-ip22 MIPS: SGI-IP22: Remove unnecessary check of GCC option 2021-12-14 10:02:40 +01:00
sgi-ip27 - Config updates for BMIPS platform 2021-11-13 09:11:33 -08:00
sgi-ip30 memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
sgi-ip32 MIPS: Allow modules to set board_be_handler 2021-11-09 16:07:26 +01:00
sibyte - Config updates for BMIPS platform 2021-11-13 09:11:33 -08:00
sni MIPS: sni: Fix the build 2021-10-18 18:09:54 +02:00
tools
txx9 mips: txx9: remove left-over for removed TXX9_ACLC configs 2021-12-16 15:53:21 +01:00
vdso MIPS: VDSO: remove -nostdlib compiler flag 2021-11-09 16:09:37 +01:00
vr41xx
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kbuild.platforms MIPS: fix duplicated slashes for Platform file path 2021-11-09 16:11:52 +01:00
Kconfig mips: fix Kconfig reference to PHYS_ADDR_T_64BIT 2021-12-16 15:53:51 +01:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile MIPS: Makefile: Remove "ifdef need-compiler" for Kbuild.platforms 2021-12-14 10:02:48 +01:00
Makefile.postlink