Skip to content
Snippets Groups Projects
  • Daniel Vetter's avatar
    7c510133
    drm: mark context support as a legacy subsystem · 7c510133
    Daniel Vetter authored
    
    So after a lot of digging around in git histories it looks like this
    has only ever be used by dri1 render clients. Hence we can fully
    disable the entire thing for modesetting drivers and so greatly reduce
    the attack surface for potential exploits (or at least tools like
    trinity ...).
    
    Also add the drm_legacy prefix for functions which are called from
    common code. To further reduce the impact on common code also extract
    all the ctx release handling into a function (instead of only
    releasing individual handles) and make ctxbitmap_cleanup return void -
    it can never fail.
    
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    7c510133
    History
    drm: mark context support as a legacy subsystem
    Daniel Vetter authored
    
    So after a lot of digging around in git histories it looks like this
    has only ever be used by dri1 render clients. Hence we can fully
    disable the entire thing for modesetting drivers and so greatly reduce
    the attack surface for potential exploits (or at least tools like
    trinity ...).
    
    Also add the drm_legacy prefix for functions which are called from
    common code. To further reduce the impact on common code also extract
    all the ctx release handling into a function (instead of only
    releasing individual handles) and make ctxbitmap_cleanup return void -
    it can never fail.
    
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.