[asterisk-bugs] [DAHDI-linux 0009379]: [patch] zt_specchan_open race because ZT_FLAG_OPEN testing and setting is not atomic
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Sep 29 17:23:24 CDT 2010
The following issue has been ASSIGNED.
======================================================================
https://issues.asterisk.org/view.php?id=9379
======================================================================
Reported By: Matti
Assigned To: sruffell
======================================================================
Project: DAHDI-linux
Issue ID: 9379
Category: zaptel (the module)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: assigned
JIRA:
Reviewboard Link:
======================================================================
Date Submitted: 2007-03-26 07:55 CDT
Last Modified: 2010-09-29 17:23 CDT
======================================================================
Summary: [patch] zt_specchan_open race because ZT_FLAG_OPEN
testing and setting is not atomic
Description:
Function zt_specchan_open in file zaptel.c can have a race condition
because ZT_FLAG_OPEN testing and setting is not atomic. The function should
check and set the flag holding the spin lock continuously in and between
the following lines:
if (chans[unit]->flags & ZT_FLAG_OPEN)
chans[unit]->flags |= ZT_FLAG_OPEN;
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0010806 Channel opening and unregistering race
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-09-29 17:23 sruffell Assigned To mattf => sruffell
======================================================================
More information about the asterisk-bugs
mailing list