acrn-kernel/net/smc
Guvenc Gulce 8a44653689 net/smc: use memcpy instead of snprintf to avoid out of bounds read
Using snprintf() to convert not null-terminated strings to null
terminated strings may cause out of bounds read in the source string.
Therefore use memcpy() and terminate the target string with a null
afterwards.

Fixes: a3db10efcc ("net/smc: Add support for obtaining SMCR device list")
Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-12 20:22:01 -08:00
..
Kconfig
Makefile net/smc: Introduce generic netlink interface for diagnostic purposes 2020-12-01 17:56:12 -08:00
af_smc.c net/smc: Introduce generic netlink interface for diagnostic purposes 2020-12-01 17:56:12 -08:00
smc.h
smc_cdc.c
smc_cdc.h
smc_clc.c net/smc: Add support for obtaining system information 2020-12-01 17:56:13 -08:00
smc_clc.h net/smc: Add support for obtaining system information 2020-12-01 17:56:13 -08:00
smc_close.c
smc_close.h
smc_core.c net/smc: use memcpy instead of snprintf to avoid out of bounds read 2021-01-12 20:22:01 -08:00
smc_core.h net/smc: Add support for obtaining SMCD device list 2020-12-01 17:56:13 -08:00
smc_diag.c net/smc: Introduce SMCR get link command 2020-12-01 17:56:13 -08:00
smc_ib.c net/smc: use memcpy instead of snprintf to avoid out of bounds read 2021-01-12 20:22:01 -08:00
smc_ib.h net/smc: Add support for obtaining SMCR device list 2020-12-01 17:56:13 -08:00
smc_ism.c net/smc: use memcpy instead of snprintf to avoid out of bounds read 2021-01-12 20:22:01 -08:00
smc_ism.h net/smc: Add support for obtaining SMCD device list 2020-12-01 17:56:13 -08:00
smc_llc.c
smc_llc.h
smc_netlink.c net/smc: Add support for obtaining SMCR device list 2020-12-01 17:56:13 -08:00
smc_netlink.h net/smc: Add support for obtaining system information 2020-12-01 17:56:13 -08:00
smc_netns.h
smc_pnet.c net/smc: Add diagnostic information to smc ib-device 2020-12-01 17:56:12 -08:00
smc_pnet.h
smc_rx.c
smc_rx.h
smc_tx.c
smc_tx.h
smc_wr.c
smc_wr.h