freebsd-dev/sys/cam/scsi
Edward Tomasz Napierala 7818653fd6 cam: fix integer overflow during inquiry
From my understanding this could happen with iSCSI LUNs with
unusually long names.  The bug would make CAM fail to retrieve
the full inquiry data.  Instead of bumping the size of the local
variable, just use a macro.

Reviewed By:	imp, mav
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
X-NetApp-PR:	#50
Differential Revision:	https://reviews.freebsd.org/D29991
2021-05-03 15:20:17 +01:00
..
scsi_all.c cam: add new ASC and ASCQ values related to drive depopulation 2021-02-26 11:45:06 -07:00
scsi_all.h cam: remove redundant scsi_vpd_block_characteristics definition 2021-03-02 18:35:09 -07:00
scsi_cd.c cam: make sure to clear even more CCBs allocated on the stack 2021-04-11 15:24:22 +01:00
scsi_cd.h cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_ch.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_ch.h sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
scsi_da.c cam: make sure to clear CCBs allocated on the stack 2021-03-30 19:15:43 +01:00
scsi_da.h cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_enc_internal.h Make CAM use root_mount_hold_token() to delay boot. 2019-11-22 18:39:51 +00:00
scsi_enc_safte.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_enc_ses.c cam: make sure to clear even more CCBs allocated on the stack 2021-04-11 15:24:22 +01:00
scsi_enc.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_enc.h Improve AHCI Enclosure Management and SES interoperation. 2019-06-23 19:05:01 +00:00
scsi_iu.h
scsi_message.h cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_pass.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
scsi_pass.h sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
scsi_pt.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_pt.h sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
scsi_sa.c cam: make sure to clear even more CCBs allocated on the stack 2021-04-11 15:24:22 +01:00
scsi_sa.h cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_ses.h cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_sg.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
scsi_sg.h
scsi_targ_bh.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
scsi_target.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
scsi_targetio.h sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
scsi_xpt.c cam: fix integer overflow during inquiry 2021-05-03 15:20:17 +01:00
smp_all.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
smp_all.h sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00