kernel_samsung_a53x/drivers/scsi/lpfc
Justin Tee 46c74cc6f5 scsi: lpfc: Fix possible file string name overflow when updating firmware
[ Upstream commit f5779b529240b715f0e358489ad0ed933bf77c97 ]

Because file_name and phba->ModelName are both declared a size 80 bytes,
the extra ".grp" file extension could cause an overflow into file_name.

Define a ELX_FW_NAME_SIZE macro with value 84.  84 incorporates the 4 extra
characters from ".grp".  file_name is changed to be declared as a char and
initialized to zeros i.e. null chars.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20231031191224.150862-3-justintee8345@gmail.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:12 +01:00
..
lpfc.h scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_attr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_attr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_bsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_crtn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ct.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_disc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_els.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hbadisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_hw4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_ids.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_init.c scsi: lpfc: Fix possible file string name overflow when updating firmware 2024-11-18 12:13:12 +01:00
lpfc_logmsg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nportdisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvme.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvme.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_nvmet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_scsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_scsi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_sli4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_version.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpfc_vport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00