Re: [PATCH v2] drm/amdgpu: Fix snprintf usage in amdgpu_gfx_kiq_init_ring

2024-05-21 Thread Lazar, Lijo
On 5/21/2024 1:07 PM, Srinivasan Shanmugam wrote: > This commit fixes a format truncation issue arosed by the snprintf > function potentially writing more characters into the ring->name buffer > than it can hold, in the amdgpu_gfx_kiq_init_ring function > > The issue occurred because the

[PATCH v2] drm/amdgpu: Fix snprintf usage in amdgpu_gfx_kiq_init_ring

2024-05-21 Thread Srinivasan Shanmugam
This commit fixes a format truncation issue arosed by the snprintf function potentially writing more characters into the ring->name buffer than it can hold, in the amdgpu_gfx_kiq_init_ring function The issue occurred because the '%d' format specifier could write between 1 and 10 bytes into a