Linus Torvalds 6022f21046 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/YxrjN3OOw2HHl9tx@kroah.com
Cc: stable@kernel.org
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: hdthky <hdthky0@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-09-25 14:15:03 -04:00
..
2022-08-04 19:47:37 -07:00
2022-08-04 19:47:37 -07:00
2022-05-23 23:24:10 -04:00
2022-08-04 19:47:37 -07:00
2021-01-22 21:14:08 -05:00
2022-02-22 21:11:02 -05:00
2021-01-22 21:14:08 -05:00
2022-07-26 22:13:29 -04:00
2022-08-13 13:41:48 -07:00
2022-02-22 21:11:02 -05:00
2021-04-13 00:20:48 -04:00
2022-06-27 22:56:21 -04:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2021-03-24 23:03:43 -04:00
2022-01-22 08:33:37 +02:00
2022-05-08 14:28:18 -04:00
2022-08-06 10:56:45 -07:00
2021-12-22 23:41:13 -05:00
2022-06-28 06:30:26 -06:00
2021-04-13 00:20:48 -04:00