summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-08-20 20:35:43 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-08-24 09:29:41 -0700
commitb3709d354545e70388177500761f92d906c4dfd6 (patch)
treea5f2388203dc03d25de8eca5d2fe9758afd5cf99 /tools/lib/python/kdoc/python_version.py
parent8985cbc927fd3e23dfebaa099ae0b6d2b38d3258 (diff)
accel/amdxdna: Remove __counted_by from struct amdxdna_cmd_chain
struct amdxdna_cmd_chain contains a flexible array annotated with __counted_by(command_count). Since the structure is stored in shared AMDXDNA_BO_SHARE memory, userspace can modify command_count concurrently. If command_count is changed to zero, the bounds check generated from __counted_by may fail and trigger a kernel panic. Remove __counted_by to avoid relying on the userspace-controlled command_count for the flexible array bounds check. Fixes: aac243092b70 ("accel/amdxdna: Add command execution") Reviewed-by: Max Zhen <max.zhen@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260821033543.1839719-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions