[OpenSIPS-Users] [OpenSIPS Security Alerts] [FIX] [Severity High] Dialog module
Vlad Paiu
vladpaiu at opensips.org
Tue Aug 14 13:44:49 CEST 2012
This message was generated by the Security Alerts service ( Free Trial 14th of August - 14th of September )
http://www.opensips.org/Resources/AlertsMain
*
SVN commit*:
http://opensips.svn.sourceforge.net/viewvc/opensips?view=revision&revision=9155
*Severity*: High
*Version* : 1.8, trunk
*Affected modules* : Dialog
*Effect* : Deadlock - 100% CPU Usage
*Affected scenarios*: When the Dialog module is configured to do in-dialog pinging,
there is a risk of a deadlock during dialog ending.
*Description:* This was due to different ordering of acquiring two locks ( the per
dialog lock and the per pinging list lock ).
When sending the ping out, the dialog module would first acquire the pinging list lock,
and then the per dialog lock.
When the dialog was terminated due to a BYE, the dialog module would first acquire the
per dialog lock and then the pinging list lock, thus leading to the deadlock if pinging
would have been attempted at the same time.
*Risks* : In high traffic OpenSIPS environments, the possibility of deadlocks would
dramatically increase. When the deadlock would happen, OpenSIPS would jump to 100% CPU usage
and no more traffic could be processed. Thus, updating is critical if you are using
in-dialog pinging.
*Update* :
- if you have an SVN checkout, 1.8 and trunk were fixed; so
update to a revision later than 9155 (trunk) or 9156 (1.8 branch)
- if you have OpenSIPS from sources, download and apply the patch from
http://opensips.svn.sourceforge.net/viewvc/opensips/branches/1.8/modules/dialog/dlg_timer.c?view=patch&r1=9156&r2=9155&pathrev=9156
or see the attached patch;
- if using tarballs, they were already regenerated (and include the fix)
- If using the official Debian package (apt.opensips.org), they are also
re-generated including the fix.
--
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120814/e736c07e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dialog_pinging-9156.patch
Type: text/x-diff
Size: 1223 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20120814/e736c07e/attachment.patch>
-------------- next part --------------
_______________________________________________
Alerts mailing list
Alerts at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/alerts
More information about the Users
mailing list