git: drm/radeon - Attempt to fix data structure corruption on exit

Matthew Dillon dillon at crater.dragonflybsd.org
Sat May 4 14:21:30 PDT 2019


commit 806701601c739b4859577ac1ea18ec1098df8052
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat May 4 14:18:34 2019 -0700

    drm/radeon - Attempt to fix data structure corruption on exit
    
    * Attempt to fix data structure corruption in the radeon driver
      when X exits.  This was causing X to lockup due to an attempt
      to double-remove vm->va from its interval tree.
    
    * Validation operations based on field state.  In particular,
      do not try to issue the interval tree removal unless
      it.start or it.last are non-zero.
    
      Also, in radeon_vm_fini() do not issue the interval tree removal
      unless the bo can be successfully reserved.  Otherwise the
      structure might be placed in a bad state while it is still in use.

Summary of changes:
 sys/dev/drm/radeon/radeon_vm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/806701601c739b4859577ac1ea18ec1098df8052


-- 
DragonFly BSD source repository


More information about the Commits mailing list