summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorJustin Tee <justin.tee@broadcom.com>2023-10-31 22:12:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-05 23:14:19 +0300
commit5b94b3a8e3399d92727594c93c603375be41f12c (patch)
tree553f16f800766c613f2fd79589c52b56aa4918c4 /arch/arm
parent61cc78be359d1f0031f65c0e94152d744f1ebec4 (diff)
downloadlinux-5b94b3a8e3399d92727594c93c603375be41f12c.tar.xz
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>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions