git: drm - Fix system lockup bug in signal_pending_state()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jun 17 15:48:36 PDT 2019


commit 536555aba12298470a11fd08ce255f3c62812162
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Jun 17 15:45:59 2019 -0700

    drm - Fix system lockup bug in signal_pending_state()
    
    * Fix a system lockup bug in signal_pending_state().  It was
      possible for the routine to indicate that no signal was pending
      for an interruptible state when a signal was in fact pending,
      causing a live-lock in a lksleep() loop.
    
    * The proper API is to allow any signal to interrupt when the
      thread is in an interruptible state and to only allow a KILL
      signal to interrupt when the thread is in a non-interruptible
      state.
    
    Testing-by: dillon, tuxillo
    Reviewed-by: ftigeot

Summary of changes:
 sys/dev/drm/include/linux/sched.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/536555aba12298470a11fd08ce255f3c62812162


-- 
DragonFly BSD source repository



More information about the Commits mailing list