diff options
| author | Thomas Hellström <[email protected]> | 2024-12-23 13:42:50 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2024-12-23 17:28:50 +0000 |
| commit | 07089083a526ea19daa72a1edf9d6e209615b77c (patch) | |
| tree | 1e4e4b3772432a83a598a153c06ab3bfc1e54e1c /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c | |
| parent | drm/xe: Use q->xef for accessing xe file (diff) | |
| download | kernel-07089083a526ea19daa72a1edf9d6e209615b77c.tar.gz kernel-07089083a526ea19daa72a1edf9d6e209615b77c.zip | |
drm/xe/tracing: Fix a potential TP_printk UAF
The commit
afd2627f727b ("tracing: Check "%s" dereference via the field and not the TP_printk format")
exposes potential UAFs in the xe_bo_move trace event.
Fix those by avoiding dereferencing the
xe_mem_type_to_name[] array at TP_printk time.
Since some code refactoring has taken place, explicit backporting may
be needed for kernels older than 6.10.
Fixes: e46d3f813abd ("drm/xe/trace: Extract bo, vm, vma traces")
Cc: Gustavo Sousa <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Radhakrishna Sripada <[email protected]>
Cc: Matt Roper <[email protected]>
Cc: "Thomas Hellström" <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: [email protected]
Cc: <[email protected]> # v6.11+
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Jonathan Cavitt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions
