linux/net/smc
Peilin Ye d429362b3d net/smc: Prevent kernel-infoleak in __smc_diag_dump()
[ Upstream commit ce51f63e63 ]

__smc_diag_dump() is potentially copying uninitialized kernel stack memory
into socket buffers, since the compiler may leave a 4-byte hole near the
beginning of `struct smcd_diag_dmbinfo`. Fix it by initializing `dinfo`
with memset().

Fixes: 4b1b7d3b30 ("net/smc: add SMC-D diag support")
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-03 11:26:40 +02:00
..
af_smc.c net/smc: transfer fasync_list in case of fallback 2020-03-05 16:43:44 +01:00
Kconfig
Makefile
smc_cdc.c
smc_cdc.h
smc_clc.c net/smc: no peer ID in CLC decline for SMCD 2020-03-05 16:43:47 +01:00
smc_clc.h
smc_close.c
smc_close.h
smc_core.c net/smc: increase device refcount for added link group 2019-12-31 16:43:53 +01:00
smc_core.h
smc_diag.c net/smc: Prevent kernel-infoleak in __smc_diag_dump() 2020-09-03 11:26:40 +02:00
smc_ib.c net/smc: cancel event worker during device removal 2020-03-18 07:17:59 +01:00
smc_ib.h
smc_ism.c
smc_ism.h
smc_llc.c
smc_llc.h
smc_netns.h
smc_pnet.c net/smc: fix ethernet interface refcounting 2019-11-06 17:44:32 -08:00
smc_pnet.h
smc_rx.c net/smc: receive pending data after RCV_SHUTDOWN 2019-10-10 19:08:41 -07:00
smc_rx.h
smc_tx.c
smc_tx.h
smc_wr.c
smc_wr.h
smc.h