✗ CI.checkpatch: warning for drm/xe/tracing: Fix a potential TP_printk UAF

Patchwork patchwork at emeril.freedesktop.org
Mon Dec 23 13:49:02 UTC 2024


== Series Details ==

Series: drm/xe/tracing: Fix a potential TP_printk UAF
URL   : https://patchwork.freedesktop.org/series/142919/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 33a1f06ba214b9aa206d3eefd1fb67ff7b34747e
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Mon Dec 23 14:42:50 2024 +0100

    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 <gustavo.sousa at intel.com>
    Cc: Lucas De Marchi <lucas.demarchi at intel.com>
    Cc: Radhakrishna Sripada <radhakrishna.sripada at intel.com>
    Cc: Matt Roper <matthew.d.roper at intel.com>
    Cc: "Thomas Hellström" <thomas.hellstrom at linux.intel.com>
    Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
    Cc: intel-xe at lists.freedesktop.org
    Cc: <stable at vger.kernel.org> # v6.11+
    Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
+ /mt/dim checkpatch 57cbd7d762d4dccb8784836a6a12bbb4122c1695 drm-intel
33a1f06ba214 drm/xe/tracing: Fix a potential TP_printk UAF
-:10: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#10: 
afd2627f727b ("tracing: Check "%s" dereference via the field and not the TP_printk format")

total: 0 errors, 1 warnings, 0 checks, 29 lines checked




More information about the Intel-xe mailing list