linux/drivers/net/ethernet/brocade/bna
Kees Cook 4dc69c1c1f bna: ethtool: Avoid reading past end of buffer
Using memcpy() from a string that is shorter than the length copied means
the destination buffer is being filled with arbitrary data from the kernel
rodata segment. Instead, use strncpy() which will fill the trailing bytes
with zeros.

This was found with the future CONFIG_FORTIFY_SOURCE feature.

Cc: Daniel Micay <danielmicay@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-08 14:41:42 -04:00
..
bfa_cee.c
bfa_cee.h
bfa_cs.h
bfa_defs_cna.h
bfa_defs_mfg_comm.h
bfa_defs_status.h
bfa_defs.h
bfa_ioc_ct.c
bfa_ioc.c bna: Avoid reading past end of buffer 2017-05-08 14:41:41 -04:00
bfa_ioc.h
bfa_msgq.c
bfa_msgq.h
bfi_cna.h
bfi_enet.h
bfi_reg.h
bfi.h
bna_enet.c bna: use designated initializers 2016-12-17 11:56:57 -05:00
bna_hw_defs.h
bna_tx_rx.c bna: fix list corruption 2016-03-01 15:19:43 -05:00
bna_types.h
bna.h
bnad_debugfs.c bna: integer overflow bug in debugfs 2017-03-21 17:43:16 -07:00
bnad_ethtool.c bna: ethtool: Avoid reading past end of buffer 2017-05-08 14:41:42 -04:00
bnad.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
bnad.h bna: remove useless linked list 2016-08-08 15:41:27 -07:00
cna_fwimg.c
cna.h
Kconfig
Makefile