linux-stable/include/scsi
Linus Torvalds 35db0282da scsi: stex: Properly zero out the passthrough command structure
commit 6022f21046 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:15:35 +02:00
..
fc fc_fip: Update to latest FC-BB-6 draft 2016-07-13 22:04:27 -04:00
fc_encode.h
fc_frame.h
fcoe_sysfs.h
iscsi_if.h scsi_transport_iscsi: Add 25G and 40G speed definition 2016-02-23 21:27:02 -05:00
iscsi_proto.h scsi: Revert "target: iscsi: Wait for all commands to finish before freeing a session" 2020-02-28 15:42:54 +01:00
iser.h IB/iser,isert: Create and use new shared header 2015-12-24 00:17:35 -05:00
libfc.h fcoe: implement FIP VLAN responder 2016-07-20 19:49:41 -04:00
libfcoe.h scsi: fcoe: Fix Wstringop-overflow warnings in fcoe_wwn_from_mac() 2022-06-14 16:52:33 +02:00
libiscsi.h scsi: libiscsi: Fix NOP race condition 2020-12-02 08:31:26 +01:00
libiscsi_tcp.h iscsi_tcp: Use ahash 2016-01-27 20:36:10 +08:00
libsas.h scsi: libsas: align sata_device's rps_resp on a cacheline 2017-12-14 09:28:11 +01:00
osd_attributes.h
osd_initiator.h
osd_ore.h
osd_protocol.h
osd_sec.h
osd_sense.h
osd_types.h
sas.h scsi: Centralise ssp frame information units 2015-11-25 22:12:50 -05:00
sas_ata.h
scsi.h lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c 2016-04-15 16:53:14 -04:00
scsi_bsg_iscsi.h
scsi_cmnd.h scsi: stex: Properly zero out the passthrough command structure 2022-10-26 13:15:35 +02:00
scsi_common.h scsi: target: core: Add CONTROL field for trace events 2020-10-29 09:05:43 +01:00
scsi_dbg.h scsi: core: Reduce memory required for SCSI logging 2019-10-07 18:53:15 +02:00
scsi_device.h scsi: Add STARGET_CREATED_REMOVE state to scsi_target_state 2017-07-27 15:07:59 -07:00
scsi_devinfo.h scsi_dh_alua: Add new blacklist flag 'BLIST_SYNC_ALUA' 2016-02-23 21:27:02 -05:00
scsi_dh.h scsi_dh: add 'rescan' callback 2016-02-23 21:27:02 -05:00
scsi_driver.h
scsi_eh.h libata: evaluate SCSI sense code 2016-04-04 12:07:41 -04:00
scsi_host.h scsi: Avoid that toggling use_blk_mq triggers a memory leak 2016-09-26 20:58:42 -04:00
scsi_ioctl.h
scsi_proto.h scsi-trace: define ZBC_IN and ZBC_OUT 2016-04-11 16:57:09 -04:00
scsi_tcq.h scsi: use host wide tags by default 2015-11-09 17:11:57 -08:00
scsi_transport.h
scsi_transport_fc.h scsi: fc: use get/put_unaligned64 for wwn access 2016-03-18 15:29:58 -04:00
scsi_transport_iscsi.h scsi: iscsi: Add iscsi_cls_conn refcount helpers 2021-07-20 16:21:11 +02:00
scsi_transport_sas.h scsi: sas: remove is_sas_attached() 2016-08-18 22:23:20 -04:00
scsi_transport_spi.h
scsi_transport_srp.h IB/srp: Avoid using uninitialized variable 2015-07-14 13:20:09 -04:00
scsicam.h
sg.h scsi: sg: disable SET_FORCE_LOW_DMA 2018-01-23 19:57:04 +01:00
srp.h
viosrp.h ibmvscsis: Initial commit of IBM VSCSI Tgt Driver 2016-07-20 01:15:43 -07:00