Kees Cook
704f83928c
scsi: Check sense buffer size at build time
...
To avoid introducing problems like those fixed in commit f7068114d4
("sr: pass down correctly sized SCSI sense buffer"), this creates a macro
wrapper for scsi_execute() that verifies the size of the sense buffer
similar to what was done for command string sizes in commit 3756f6401c
("exec: avoid gcc-8 warning for get_task_comm").
Another solution could be to add a length argument to scsi_execute(),
but this function already takes a lot of arguments and Jens was not fond
of that approach.
Additionally, this moves the SCSI_SENSE_BUFFERSIZE definition into
scsi_device.h, and removes a redundant include for scsi_device.h from
scsi_cmnd.h.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-08-02 15:23:51 -06:00
..
fc
fc_encode.h
fc_frame.h
fcoe_sysfs.h
iscsi_if.h
iscsi_proto.h
iser.h
libfc.h
libfcoe.h
libiscsi.h
libiscsi_tcp.h
libsas.h
SCSI misc on 20180131
2018-01-31 11:23:28 -08:00
osd_attributes.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
osd_initiator.h
scsi/osd: remove the gfp argument to osd_start_request
2018-05-14 08:55:09 -06:00
osd_ore.h
osd_protocol.h
osd_sec.h
osd_sense.h
osd_types.h
sas.h
sas_ata.h
scsi.h
scsi: core: Make SCSI Status CONDITION MET equivalent to GOOD
2018-03-12 21:55:24 -04:00
scsi_bsg_iscsi.h
scsi_cmnd.h
scsi: Check sense buffer size at build time
2018-08-02 15:23:51 -06:00
scsi_common.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_dbg.h
scsi: core: remove reference to scsi_show_extd_sense()
2018-04-18 23:37:39 -04:00
scsi_device.h
scsi: Check sense buffer size at build time
2018-08-02 15:23:51 -06:00
scsi_devinfo.h
scsi: devinfo: BLIST_RETRY_ASC_C1 for Fujitsu ETERNUS
2018-04-20 19:14:36 -04:00
scsi_dh.h
scsi_driver.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_eh.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_host.h
block: rename BLK_EH_NOT_HANDLED to BLK_EH_DONE
2018-05-29 08:59:21 -06:00
scsi_ioctl.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_proto.h
scsi: core: Add VENDOR_SPECIFIC sense code definitions
2018-01-22 20:04:02 -05:00
scsi_request.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_tcq.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsi_transport.h
scsi_transport_fc.h
scsi: scsi_transport_fc: fix typos on 64/128 GBit define names
2018-01-03 22:51:02 -05:00
scsi_transport_iscsi.h
scsi_transport_sas.h
scsi: libsas: direct call probe and destruct
2018-01-10 23:24:02 -05:00
scsi_transport_spi.h
scsi_transport_srp.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
scsicam.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sg.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
srp.h
IB/srp: Add RDMA/CM support
2018-01-23 11:35:04 -05:00
viosrp.h