diff options
| author | Peilin Ye <[email protected]> | 2020-08-20 14:30:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-08-20 19:07:31 +0000 |
| commit | ce51f63e63c52a4e1eee4dd040fb0ba0af3b43ab (patch) | |
| tree | 75d0baf07941877876df7f4fb99e3bb73551be9d /lib/zstd/compress.c | |
| parent | sfc: fix build warnings on 32-bit (diff) | |
| download | kernel-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
