git: DragonFly_RELEASE_2_10 kernel - Fix signal delivery races

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Sat Jul 30 04:07:40 PDT 2011


commit 025d695a653d667f8d06e460e9e0e625ded69efb
Author: Matthew Dillon <dillon at 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/025d695a653d667f8d06e460e9e0e625ded69efb


-- 
DragonFly BSD source repository





More information about the Commits mailing list