[PATCH v2] drm/amdgpu/pptable: Fix UBSAN array-index-out-of-bounds

2024-06-03 Thread Tasos Sahanidis
Flexible arrays used [1] instead of []. Replace the former with the latter to resolve multiple UBSAN warnings observed on boot with a BONAIRE card. In addition, use the __counted_by attribute where possible to hint the length of the arrays to the compiler and any sanitizers. Signed-off-by: Tasos

Re: [PATCH v2] drm/amdgpu/pptable: Fix UBSAN array-index-out-of-bounds

2024-05-31 Thread Alex Deucher
Applied. Thanks! On Fri, May 31, 2024 at 12:31 PM Tasos Sahanidis wrote: > > Flexible arrays used [1] instead of []. Replace the former with the latter > to resolve multiple UBSAN warnings observed on boot with a BONAIRE card. > > In addition, use the __counted_by attribute where possible to hin