Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-18 21:58:11 +07:00
kernel_a52xq/drivers/scsi/qedf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chad Dupuis af59f7fdfa scsi: qedf: Fix crash when MFW calls for protocol stats while function is still probing
[ Upstream commit ad40f5256095c68dc17c991eb976261d5ea2daaa ]

The MFW may make a call to qed and then to qedf for protocol statistics
while the function is still probing.  If this happens it's possible that
some members of the struct qedf_ctx may not be fully initialized which can
result in a NULL pointer dereference or general protection fault.

To prevent this, add a new flag call QEDF_PROBING and set it when the
__qedf_probe() function is active. Then in the qedf_get_protocol_tlv_data()
function we can check if the function is still probing and return
immediantely before any uninitialized structures can be touched.

Link: https://lore.kernel.org/r/20200416084314.18851-9-skashyap@marvell.com
Signed-off-by: Chad Dupuis <cdupuis@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-25 15:32:53 +02:00
..
drv_fcoe_fw_funcs.c scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
drv_fcoe_fw_funcs.h scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
drv_scsi_fw_funcs.c scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
drv_scsi_fw_funcs.h scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
Kconfig
Makefile
qedf.h scsi: qedf: Fix crash when MFW calls for protocol stats while function is still probing 2020-06-25 15:32:53 +02:00
qedf_attr.c scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
qedf_dbg.c scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
qedf_dbg.h scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
qedf_debugfs.c SCSI misc on 20180610 2018-06-10 13:01:12 -07:00
qedf_els.c scsi: qedf: Do not retry ELS request if qedf_alloc_cmd fails 2020-01-09 10:19:07 +01:00
qedf_fip.c SCSI misc on 20180610 2018-06-10 13:01:12 -07:00
qedf_hsi.h scsi: qedf: Update copyright for 2018 2018-05-08 00:57:11 -04:00
qedf_io.c scsi: qedf: Add missing return in qedf_post_io_req() in the fcport offload check 2019-05-31 06:46:29 -07:00
qedf_main.c scsi: qedf: Fix crash when MFW calls for protocol stats while function is still probing 2020-06-25 15:32:53 +02:00
qedf_version.h scsi: qedf: Update version number to 8.33.16.20 2018-05-08 00:57:11 -04:00