Tasos Sahanidis
c6c4dd5401
drm/amdgpu/pptable: Fix UBSAN array-index-out-of-bounds
...
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 Sahanidis <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2024-06-05 13:43:34 -04:00
Alex Deucher
4953be13be
drm/amdgpu: convert some variable sized arrays to [] style
...
Replace [1] with []. Silences UBSAN warnings.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3107
Reviewed-by: Lijo Lazar <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2024-01-25 14:49:07 -05:00
Alex Deucher
693d4e8861
drm/amdgpu/pptable: convert some variable sized arrays to [] style
...
Replace [1] with []. Silences UBSAN warnings.
Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039926
Acked-by: Christian König <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2024-01-25 14:46:46 -05:00
Mario Limonciello
760efbca74
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
...
For pptable structs that use flexible array sizes, use flexible arrays.
Suggested-by: Felix Held <[email protected] >
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2874
Signed-off-by: Mario Limonciello <[email protected] >
Acked-by: Alex Deucher <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2023-10-09 16:46:54 -04:00
Rex Zhu
f4afe799cf
drm/amdgpu: add raven related define in pptable.h.
...
Signed-off-by: Rex Zhu <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
Reviewed-by: Hawking Zhang <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-05-24 17:41:50 -04:00
Jammy Zhou
fa9f1d4e86
drm/amdgpu: add some pptable definitions
...
Signed-off-by: Jammy Zhou <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
2015-08-17 16:50:21 -04:00
Alex Deucher
8e9198d069
drm/amdgpu: move some atombios definitions to common folder (v2)
...
the definitions can be shared by different IP components.
v2: fix include path
Signed-off-by: Jammy Zhou <[email protected] >
Reviewed-by: Alex Deucher <[email protected] >
2015-08-17 16:50:19 -04:00