Re: [PATCH] drm/amdgpu: Fix 'fw_name' buffer size to prevent truncations in amdgpu_mes_init_microcode

2024-03-21 Thread Lazar, Lijo
On 3/21/2024 11:16 AM, Srinivasan Shanmugam wrote: > The snprintf function is used to write a formatted string into fw_name. > The format of the string is "amdgpu/%s_mes%s.bin", where %s is replaced > by the string in ucode_prefix and the second %s is replaced by either > "_2" or "1" depending

[PATCH] drm/amdgpu: Fix 'fw_name' buffer size to prevent truncations in amdgpu_mes_init_microcode

2024-03-20 Thread Srinivasan Shanmugam
The snprintf function is used to write a formatted string into fw_name. The format of the string is "amdgpu/%s_mes%s.bin", where %s is replaced by the string in ucode_prefix and the second %s is replaced by either "_2" or "1" depending on the condition pipe == AMDGPU_MES_SCHED_PIPE. The length of