linux_dsm_epyc7002/drivers/net/ethernet/qlogic/qlge
Kees Cook df5303a8aa qlge: 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
..
Makefile
qlge_dbg.c qlge: Avoid reading past end of buffer 2017-05-08 14:41:42 -04:00
qlge_ethtool.c net: qlogic: qlge: use new api ethtool_{get|set}_link_ksettings 2017-02-20 11:22:19 -05:00
qlge_main.c qlge: avoid format string exposure in workqueue 2017-04-06 13:37:21 -07:00
qlge_mpi.c qlge: call ql_core_dump() only if dump memory was allocated. 2013-09-24 11:19:46 -04:00
qlge.h scripts/spelling.txt: add "overide" pattern and fix typo instances 2017-03-09 17:01:09 -08:00