[Intel-xe] ✓ CI.checkpatch: success for drm/xe: Fix unreffed ptr leak on engine lookup

Patchwork patchwork at emeril.freedesktop.org
Fri Jun 2 17:29:52 UTC 2023


== Series Details ==

Series: drm/xe: Fix unreffed ptr leak on engine lookup
URL   : https://patchwork.freedesktop.org/series/118793/
State : success

== 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
c7d32770e3cd31d9fc134ce41f329b10aa33ee15
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 71f2ba074b69124ead53f8ee22c02c5caa75ad12
Author: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Date:   Fri Jun 2 20:27:32 2023 +0300

    drm/xe: Fix unreffed ptr leak on engine lookup
    
    The engine xarray holds a ref to engine, guarded by the lock.
    While we do lookup for engine, we need to take the ref inside
    the lock to prevent unreffed pointer escaping and
    causing potential use-after-free after.
    
    v2: remove branch prediction hint (Thomas)
    
    Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
    Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
+ /mt/dim checkpatch 241c03cc415b25000bdf0031349ea79f9b556297 drm-intel
71f2ba074 drm/xe: Fix unreffed ptr leak on engine lookup




More information about the Intel-xe mailing list