diff options
author | Matthew Auld <matthew.auld@intel.com> | 2024-09-25 10:14:28 +0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2024-10-03 09:22:50 +0300 |
commit | 67801fa67b94ebd0e4da7a77ac2d9f321b75fbe0 (patch) | |
tree | 615407fffc6f3c45240fb2c0667584803f5ff12e /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 74231870cf4976f69e83aa24f48edb16619f652f (diff) | |
download | linux-67801fa67b94ebd0e4da7a77ac2d9f321b75fbe0.tar.xz |
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
(cherry picked from commit 16536582ddbebdbdf9e1d7af321bbba2bf955a87)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions