Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2009 10:10:39 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_sig.c src/sys/sys signalvar.h
Message-ID:  <200910301012.n9UAC6w2050998@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-10-30 10:10:39 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sig.c 
    sys/sys              signalvar.h 
  Log:
  SVN rev 198670 on 2009-10-30 10:10:39Z by kib
  
  Trapsignal() and postsig() call kern_sigprocmask() with both process
  lock and curproc->p_sigacts->ps_mtx. Reschedule_signals may need to have
  ps_mtx locked to decide and wakeup a thread, causing recursion on the
  mutex.
  
  Inform kern_sigprocmask() and reschedule_signals() about lock state
  of the ps_mtx by new flag SIGPROCMASK_PS_LOCKED to avoid recursion.
  
  Reported and tested by: keramida
  MFC after:      1 month
  
  Revision  Changes    Path
  1.381     +16 -20    src/sys/kern/kern_sig.c
  1.82      +1 -0      src/sys/sys/signalvar.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910301012.n9UAC6w2050998>