summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-09-01 09:01:29 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-09-01 10:42:22 -0700
commit6a1f6cb7593aebcdb4f9022410622128fb23b1a1 (patch)
tree9d215d732649a3202a3be019b8eefd126e868d8e /tools/perf/scripts/python/stackcollapse.py
parent445d20910429b41e88768624b914344658991a5b (diff)
downloadlinux-6a1f6cb7593aebcdb4f9022410622128fb23b1a1.tar.gz
linux-6a1f6cb7593aebcdb4f9022410622128fb23b1a1.zip
accel/amdxdna: Fix possible use-after-free when freeing device BO
When the DRM file descriptor is closed, amdxdna_client_cleanup() frees the client structure. If device BOs are still alive, freeing them may access abo->client and result in a use-after-free. Move amdxdna_gem_heap_free(), which accesses abo->client, before clearing abo->client in the BO close callback. Also track the heap BOs referenced by device BOs so they can be accessed without dereferencing abo->client. Fixes: dbc8fd7a03cb ("accel/amdxdna: Add expandable device heap support") Reviewed-by: Max Zhen <max.zhen@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260901160129.3812405-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions