aboutsummaryrefslogtreecommitdiffstats
path: root/lib/zstd/compress.c
diff options
context:
space:
mode:
authorPeilin Ye <[email protected]>2020-08-20 14:30:52 +0000
committerDavid S. Miller <[email protected]>2020-08-20 19:07:31 +0000
commitce51f63e63c52a4e1eee4dd040fb0ba0af3b43ab (patch)
tree75d0baf07941877876df7f4fb99e3bb73551be9d /lib/zstd/compress.c
parentsfc: fix build warnings on 32-bit (diff)
downloadkernel-ce51f63e63c52a4e1eee4dd040fb0ba0af3b43ab.tar.gz
kernel-ce51f63e63c52a4e1eee4dd040fb0ba0af3b43ab.zip
net/smc: Prevent kernel-infoleak in __smc_diag_dump()
__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: 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]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/zstd/compress.c')
0 files changed, 0 insertions, 0 deletions