Deadlock between ast_cel_report_event and ast_do_masquerade
authorDavid Vossel <dvossel@digium.com>
Thu, 8 Oct 2009 22:04:41 +0000 (22:04 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 8 Oct 2009 22:04:41 +0000 (22:04 +0000)
commitc0ee60419d622ca87d097b314c5b2741a8b94ce0
tree9e5485a576857325978f94aa0386f249eb0b874c
parentb764544641bdb439a8f2b15e0ab5a3c64f00b52c
Deadlock between ast_cel_report_event and ast_do_masquerade

chan_sip calls pbx_exec on a pvt's owner channel while only the
pvt lock is held.  Since pbx_exec calls ast_cel_report_event which
attempts to lock the channel, invalid locking order occurs.  Channels
should be locked before pvt's.

(closes issue #15512)
Reported by: lmsteffan
Patches:
      ast_cel_deadlock_15512.diff uploaded by dvossel (license 671)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@222981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c