aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorJustin Stitt <[email protected]>2024-03-21 20:04:08 +0000
committerKees Cook <[email protected]>2024-03-22 03:20:52 +0000
commit5248f4097308c1cdcf163314a6ea3c8c88c98cd9 (patch)
tree6fd97c82c9c44632250854d393a2d73df47da027 /drivers/net/ethernet/intel/igc/igc_main.c
parentexec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack() (diff)
downloadkernel-5248f4097308c1cdcf163314a6ea3c8c88c98cd9.tar.gz
kernel-5248f4097308c1cdcf163314a6ea3c8c88c98cd9.zip
binfmt: 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. There is a _nearly_ identical implementation of fill_psinfo present in binfmt_elf.c -- except that one uses get_task_comm over strncpy(). Let's mirror that in binfmt_elf_fdpic.c 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: <[email protected]> Signed-off-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/20240321-strncpy-fs-binfmt_elf_fdpic-c-v2-1-0b6daec6cc56@google.com Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions