linux-stable/drivers/scsi/lpfc
James Smart f8191d40aa scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input
Malformed user input to debugfs results in buffer overflow crashes.  Adapt
input string lengths to fit within internal buffers, leaving space for NULL
terminators.

Link: https://lore.kernel.org/r/20220701211425.2708-3-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-07-07 17:21:43 -04:00
..
lpfc.h scsi: lpfc: Rework FDMI initialization after link up 2022-05-10 22:12:04 -04:00
lpfc_attr.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix additional reference counting in lpfc_bsg_rport_els() 2022-05-02 16:59:11 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Resolve some cleanup issues following abort path refactoring 2022-06-07 21:38:17 -04:00
lpfc_ct.c scsi: lpfc: Correct BDE type for XMIT_SEQ64_WQE in lpfc_ct_reject_event() 2022-06-07 21:38:17 -04:00
lpfc_debugfs.c scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input 2022-07-07 17:21:43 -04:00
lpfc_debugfs.h scsi: lpfc: Adjust CMF total bytes and rxmonitor 2021-12-06 22:35:37 -05:00
lpfc_disc.h scsi: lpfc: Allow fabric node recovery if recovery is in progress before devloss 2021-10-20 23:33:46 -04:00
lpfc_els.c scsi: lpfc: Resolve NULL ptr dereference after an ELS LOGO is aborted 2022-06-07 21:38:18 -04:00
lpfc_hbadisc.c scsi: lpfc: Rework FDMI initialization after link up 2022-05-10 22:12:04 -04:00
lpfc_hw.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_hw4.h scsi: lpfc: Allow reduced polling rate for nvme_admin_async_event cmd completion 2022-06-07 21:38:18 -04:00
lpfc_ids.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_init.c scsi: lpfc: Resolve some cleanup issues following SLI path refactoring 2022-06-07 21:38:17 -04:00
lpfc_logmsg.h scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mbox.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mem.c scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix port stuck in bypassed state after LIP in PT2PT topology 2022-06-07 21:38:18 -04:00
lpfc_nvme.c scsi: lpfc: Fix uninitialized cqe field in lpfc_nvme_cancel_iocb() 2022-07-07 17:21:42 -04:00
lpfc_nvme.h scsi: lpfc: Copyright updates for 14.2.0.0 patches 2022-03-15 13:51:50 -04:00
lpfc_nvmet.c scsi: lpfc: Use memset_startat() helper in lpfc_nvmet_xmt_fcp_op_cmp() 2022-06-16 21:23:18 -04:00
lpfc_scsi.c scsi: lpfc: Address NULL pointer dereference after starget_to_rport() 2022-06-07 21:38:17 -04:00
lpfc_scsi.h scsi: lpfc: Copyright updates for 14.0.0.0 patches 2021-07-27 00:06:41 -04:00
lpfc_sli.c scsi: lpfc: Resolve some cleanup issues following SLI path refactoring 2022-06-07 21:38:17 -04:00
lpfc_sli.h scsi: lpfc: Refactor cleanup of mailbox commands 2022-04-18 22:48:47 -04:00
lpfc_sli4.h scsi: lpfc: Change FA-PWWN detection methodology 2022-04-18 22:48:47 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 14.2.0.4 2022-06-07 21:38:18 -04:00
lpfc_vmid.c scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00
lpfc_vport.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_vport.h
Makefile scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00