Justin Tee
13df229677
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>
(cherry picked from commit 273700c2b94ffe7da97cee356f826d1d3f525b1d)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-03-08 08:21:31 +00:00
..
2024-03-08 08:21:30 +00:00
2023-09-23 10:46:59 +02:00
2024-02-02 11:33:45 +00:00
2023-12-08 08:41:58 +01:00
2023-12-20 15:32:32 +01:00
2024-03-08 08:21:28 +00:00
2023-11-08 11:21:09 +01:00
2023-10-25 11:13:31 +02:00
2023-02-22 12:46:01 +01:00
2024-03-06 11:04:05 +00:00
2024-02-02 11:33:36 +00:00
2023-11-28 16:45:42 +00:00
2023-09-23 10:46:54 +02:00
2023-01-18 09:26:09 +01:00
2024-02-02 11:33:40 +00:00
2023-09-23 10:46:59 +02:00
2023-01-18 09:26:22 +01:00
2023-11-20 10:27:35 +01:00
2023-08-30 16:35:16 +02:00
2024-02-02 11:33:37 +00:00
2023-08-11 11:33:39 +02:00
2024-01-10 14:45:41 +01:00
2024-02-02 11:33:41 +00:00
2024-03-08 08:21:29 +00:00
2024-03-08 08:21:29 +00:00
2024-02-02 11:33:46 +00:00
2023-01-18 09:26:26 +01:00
2023-06-28 10:14:19 +02:00
2023-12-13 16:46:16 +01:00
2024-02-02 11:33:37 +00:00
2024-02-02 11:33:46 +00:00
2023-08-11 11:33:32 +02:00
2022-11-01 19:14:45 +01:00
2024-01-08 11:25:03 +01:00
2024-02-02 11:33:42 +00:00
2024-02-02 11:33:44 +00:00
2023-01-18 09:26:38 +01:00
2023-11-08 11:21:08 +01:00
2023-01-18 09:26:28 +01:00
2023-05-17 11:11:44 +02:00
2023-08-11 11:33:40 +02:00
2023-11-28 16:45:45 +00:00
2024-01-08 11:25:04 +01:00
2024-02-02 11:33:44 +00:00
2023-08-11 11:33:34 +02:00
2023-05-30 12:38:35 +01:00
2023-11-20 10:27:34 +01:00
2023-11-20 10:27:34 +01:00
2024-01-10 14:45:41 +01:00
2024-02-02 11:33:39 +00:00
2024-03-08 08:21:28 +00:00
2023-06-28 10:14:20 +02:00
2023-09-23 10:47:00 +02:00
2023-03-22 13:26:14 +01:00
2023-09-23 10:46:56 +02:00
2023-10-10 21:43:39 +02:00
2023-12-13 16:46:17 +01:00
2024-03-06 11:04:00 +00:00
2023-11-20 10:27:35 +01:00
2023-05-30 12:38:36 +01:00
2023-12-08 08:41:59 +01:00
2023-12-20 15:32:36 +01:00
2024-03-08 08:21:30 +00:00
2023-06-21 15:38:57 +02:00
2023-11-20 10:27:35 +01:00
2023-01-18 09:26:12 +01:00
2023-06-21 15:38:57 +02:00
2024-02-02 11:33:36 +00:00
2024-03-06 11:04:05 +00:00
2023-09-23 10:46:52 +02:00
2024-02-02 11:33:37 +00:00
2024-03-08 08:21:31 +00:00
2023-08-11 11:33:37 +02:00
2023-09-23 10:46:54 +02:00
2023-05-17 11:11:44 +02:00
2023-08-11 11:33:32 +02:00
2023-08-11 11:33:53 +02:00
2023-10-10 21:43:41 +02:00
2023-11-20 10:27:33 +01:00
2023-04-05 11:14:16 +02:00
2024-03-06 11:04:04 +00:00
2024-02-02 11:33:37 +00:00
2024-02-02 11:33:45 +00:00
2023-01-18 09:26:23 +01:00
2023-08-11 11:33:32 +02:00
2024-02-02 11:33:45 +00:00
2023-11-08 11:21:05 +01:00
2023-01-18 09:26:25 +01:00
2023-08-11 11:33:38 +02:00
2024-02-02 11:33:44 +00:00
2023-10-10 21:43:42 +02:00