summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorXiang Liu <xiang.liu@amd.com>2026-08-21 17:41:57 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-08-25 18:19:30 -0400
commitb30900566642ceb2c9e12b56c2afec28d0fd91a0 (patch)
treecc5315a0dc8c8debe475fdb9c277a304d42ab946 /scripts/const_structs.checkpatch
parent40ba09e11188d1b7f79d51fc28aca5ea45e0c138 (diff)
downloadlinux-b30900566642ceb2c9e12b56c2afec28d0fd91a0.tar.gz
linux-b30900566642ceb2c9e12b56c2afec28d0fd91a0.zip
drm/amdgpu: clamp the isolation index for rings outside a partition
adev->isolation[] has one slot per partition, but a ring that is not assigned to one keeps AMDGPU_XCP_NO_PARTITION, which is ~0, so indexing the array with it is out of bounds. SDMA submissions hit this on both the isolation enforcement and the VM flush path and trip UBSAN. Fall back to the first slot the way the cleaner shader path already does, and stop taking the address before the ring type check that makes it relevant. Cc: stable@vger.kernel.org Signed-off-by: Xiang Liu <xiang.liu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions