git: kernel - Fix probable callout race

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Nov 24 23:46:01 PST 2018


commit 9292bb14b817ebffd31bc3d2a994d1b409987e54
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Nov 24 23:39:15 2018 -0800

    kernel - Fix probable callout race
    
    * Fix a probable callout race in kern/kern_event.c.  It is possible
      for the callout to be requeued during teardown and for the
      structure to subsequently become corrupted.
    
      Manifests as 'stuck' processes (still ^C'able if PCATCH is flagged),
      and sleeps which do not expire.  Can be triggered by synth bulk runs.
    
    * Increase maximum number of kqueue timers from 4096 to 65536.  This
      limit will have to be moved to uidinfo (but not in this commit).

Summary of changes:
 sys/kern/kern_event.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9292bb14b817ebffd31bc3d2a994d1b409987e54


-- 
DragonFly BSD source repository



More information about the Commits mailing list