Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Gustavo A. R. Silva
On 7/12/23 08:12, Alex Deucher wrote: On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo wrote: UBSAN complains about out-of-bounds array indexes on all 1-element arrays defined on this driver: UBSAN: array-index-out-of-bounds in

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Ricardo Cañuelo
Hi Paulo, > I didn't review all struct changes but I reckon that you got the train > of thought to be followed by now. Please count on me for reviewing those > changes :-) Thanks for reviewing the patch. It turned out that making these changes properly isn't so trivial as I thought and I'll need

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-14 Thread Paulo Miguel Almeida
On Wed, Jul 12, 2023 at 10:12:08AM -0400, Alex Deucher wrote: > On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo > wrote: > > > > UBSAN complains about out-of-bounds array indexes on all 1-element > > arrays defined on this driver: > > > > UBSAN: array-index-out-of-bounds in > >

Re: [PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-12 Thread Alex Deucher
On Wed, Jul 12, 2023 at 8:04 AM Ricardo Cañuelo wrote: > > UBSAN complains about out-of-bounds array indexes on all 1-element > arrays defined on this driver: > > UBSAN: array-index-out-of-bounds in >

[PATCH] drm/amdgpu: replace 1-element arrays with flexible arrays

2023-07-12 Thread Ricardo Cañuelo
UBSAN complains about out-of-bounds array indexes on all 1-element arrays defined on this driver: UBSAN: array-index-out-of-bounds in /home/rcn/work/repos/kernelci/kernelci-core/linux_kernel_mainline/drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/processpptables.c:1249:61 Substitute them with