git: drm/linux: Fix potential ww mutex induced panics

Francois Tigeot ftigeot at crater.dragonflybsd.org
Mon Oct 15 13:39:05 PDT 2018


commit 169b6cefef9b3d56097dad138b3d0af6d1bd8312
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Mon Oct 15 22:17:54 2018 +0200

    drm/linux: Fix potential ww mutex induced panics
    
    ww mutex locking functions can be called with a NULL ctx and were
    happily setting both lock->acquired to non-zero and lock->ctx to
    NULL, a combination which other parts of our ww mutex implementation
    assume is not possible.
    
    Obtained-from: OpenBSD

Summary of changes:
 sys/dev/drm/include/linux/ww_mutex.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/169b6cefef9b3d56097dad138b3d0af6d1bd8312


-- 
DragonFly BSD source repository



More information about the Commits mailing list