diff options
author | Matthew Auld <matthew.auld@intel.com> | 2024-09-25 08:14:28 +0100 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2024-09-27 09:28:59 +0100 |
commit | 16536582ddbebdbdf9e1d7af321bbba2bf955a87 (patch) | |
tree | e6084c07c64b4472e1629361fbd183d082a69153 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dcfd3971327f3ee92765154baebbaece833d3ca9 (diff) |
drm/xe/queue: move xa_alloc to prevent UAF
Evil user can guess the next id of the queue before the ioctl completes
and then call queue destroy ioctl to trigger UAF since create ioctl is
still referencing the same queue. Move the xa_alloc all the way to the end
to prevent this.
v2:
- Rebase
Fixes: 2149ded63079 ("drm/xe: Fix use after free when client stats are captured")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240925071426.144015-4-matthew.auld@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions