summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2026-03-03 22:08:06 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-03-07 00:34:06 +0300
commit28cacaace5cde8318b7da967b3955a73cc6de91a (patch)
tree2643bf408dc5ce75697179263ab4293e8eb1125b /scripts/checkstack.pl
parent421c0f19043337a553e802b2dfe4b56d538ef4d6 (diff)
downloadlinux-28cacaace5cde8318b7da967b3955a73cc6de91a.tar.xz
drm/amdgpu/userq: defer queue publication until create completes
The userq create path publishes queues to global xarrays such as userq_doorbell_xa and userq_xa before creation was fully complete. Later on if create queue fails, teardown could free an already visible queue, opening a UAF race with concurrent queue walkers. Also calling amdgpu_userq_put in such cases complicates the cleanup. Solution is to defer queue publication until create succeeds and no partially initialized queue is exposed. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions