✓ CI.checkpatch: success for drm/xe/vm: don't ignore error when in_kthread

Patchwork patchwork at emeril.freedesktop.org
Fri Feb 2 17:51:31 UTC 2024


== Series Details ==

Series: drm/xe/vm: don't ignore error when in_kthread
URL   : https://patchwork.freedesktop.org/series/129480/
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
35591fb8b4d5305b37ce31483f85ac0956eaa536
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 01c09bfdeddf4708aead513304e0c43da3340237
Author: Matthew Auld <matthew.auld at intel.com>
Date:   Fri Feb 2 17:14:36 2024 +0000

    drm/xe/vm: don't ignore error when in_kthread
    
    If GUP fails and we are in_kthread, we can have pinned = 0 and ret = 0.
    If that happens we call sg_alloc_append_table_from_pages() with n_pages
    = 0, which is not well behaved and can trigger:
    
    kernel BUG at include/linux/scatterlist.h:115!
    
    depending on if the pages array happens to be zeroed or not. Even if we
    don't hit that it crashes later when trying to dma_map the returned
    table.
    
    Signed-off-by: Matthew Auld <matthew.auld at intel.com>
    Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
    Cc: Matthew Brost <matthew.brost at intel.com>
+ /mt/dim checkpatch 1dd92467500a5ead3e44bbdfe15e064dd79b65ef drm-intel
01c09bfde drm/xe/vm: don't ignore error when in_kthread




More information about the Intel-xe mailing list