git: DragonFly_RELEASE_4_6 kernel - Fix rare tsleep/callout race

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jul 29 10:28:50 PDT 2016


commit 5af4f5b2317c38cd5e4f333b413ee94c2b848b01
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jul 29 10:02:50 2016 -0700

    kernel - Fix rare tsleep/callout race
    
    * Fix a rare tsleep/callout race.  The callout timer can trigger before
      the tsleep() releases its lwp_token (or if someone else holds the
      calling thread's lwp_token).
    
      This case is detected, but failed to adjust lwp_stat before
      descheduling and switching away.  This resulted in an endless sleep.

Summary of changes:
 sys/kern/kern_synch.c | 3 +++
 1 file changed, 3 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5af4f5b2317c38cd5e4f333b413ee94c2b848b01


-- 
DragonFly BSD source repository


More information about the Commits mailing list