linux/drivers/infiniband/hw/irdma
Justin Stitt f0cc82ca11 RDMA/irdma: Replace deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1]
and as such we should prefer more robust and less ambiguous string
interfaces.

A suitable replacement is `strscpy_pad` due to the fact that it
guarantees NUL-termination on the destination buffer.

It is unclear to me whether `i40iw_client.name` requires NUL-padding but
have opted to keep the NUL-padding behavior that strncpy provides to
ensure no functional change.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1]
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20230921-strncpy-drivers-infiniband-hw-irdma-i40iw_if-c-v1-1-22d87aef7186@google.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2023-09-22 13:27:27 +03:00
..
cm.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
cm.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ctrl.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
defs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
hmc.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
hmc.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
hw.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
i40iw_hw.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
i40iw_hw.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
i40iw_if.c RDMA/irdma: Replace deprecated strncpy 2023-09-22 13:27:27 +03:00
icrdma_hw.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
icrdma_hw.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
irdma.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
Kconfig RDMA/irdma: Use correct kconfig symbol for AUXILIARY_BUS 2021-08-19 10:28:49 -03:00
main.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
main.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
osdep.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
pble.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
pble.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
protos.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
puda.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
puda.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace_cm.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
trace.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
type.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
uda_d.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
uda.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
uda.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
uk.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
user.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
utils.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
verbs.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ws.c IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00
ws.h IB: Use capital "OR" for multiple licenses in SPDX 2023-09-11 14:14:00 +03:00