diff options
author | Linus Torvalds <[email protected]> | 2022-09-09 08:54:47 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-09-25 14:15:03 -0400 |
commit | 6022f210461fef67e6e676fd8544ca02d1bcfa7a (patch) | |
tree | d334e4da26edc6f9681f97957862fc814a813bdb /lib/memory-notifier-error-inject.c | |
parent | f616efbee9d64cbd3b7b955914fea01cbdd95710 (diff) |
scsi: stex: Properly zero out the passthrough command structure
The passthrough structure is declared off of the stack, so it needs to be
set to zero before copied back to userspace to prevent any unintentional
data leakage. Switch things to be statically allocated which will fill the
unused fields with 0 automatically.
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: Dan Carpenter <[email protected]>
Reported-by: hdthky <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions