DragonFly BSD
DragonFly commits List (threaded) for 2011-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix signal delivery races


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Jul 2011 01:23:44 -0700 (PDT)

commit fc509460adef494b5b84b40cf6fbdd498d5a9a8b
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Fri Jul 29 01:19:29 2011 -0700

    kernel - Fix signal delivery races
    
    * The send side was using p->p_token but the processing code from trap
      was still using the mp_lock.  Fix the trap processing code to use
      p->p_token.
    
    * This fixes several nasty races that can cause signals to be lost and
      vkernels to freeze, and possibly other programs which depend on signals
      between threads.

Summary of changes:
 sys/kern/kern_sig.c                  |    2 ++
 sys/platform/pc32/i386/trap.c        |    8 ++++----
 sys/platform/pc64/x86_64/trap.c      |    8 ++++----
 sys/platform/vkernel/i386/trap.c     |    8 ++++----
 sys/platform/vkernel64/x86_64/trap.c |    8 ++++----
 5 files changed, 18 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fc509460adef494b5b84b40cf6fbdd498d5a9a8b


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]