From: Ursula Braun <[email protected]> Date: Thu, 20 Aug 2020 16:30:52 +0200
> From: Peilin Ye <[email protected]> > > __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(). > > Cc: [email protected] Please do not CC: stable for networking patches as per the netdev FAQ. > Fixes: 4b1b7d3b30a6 ("net/smc: add SMC-D diag support") > Suggested-by: Dan Carpenter <[email protected]> > Signed-off-by: Peilin Ye <[email protected]> > Signed-off-by: Ursula Braun <[email protected]> Applied and queued up for -stable, thank you.
