[asterisk-bugs] [Asterisk 0009208]: [patch] Memory Corruption on SMP systems causes Kernel Panic

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 12:49:50 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=9208 
====================================================================== 
Reported By:                Adomo
Assigned To:                mattf
====================================================================== 
Project:                    Asterisk
Issue ID:                   9208
Category:                   Core/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           I did not set the version :( 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 2289 
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 fixed
Fixed in Version:           1.2.14
====================================================================== 
Date Submitted:             03-05-2007 14:13 CST
Last Modified:              06-07-2008 12:49 CDT
====================================================================== 
Summary:                    [patch] Memory Corruption on SMP systems causes
Kernel Panic
Description: 
On SMP systems interrupts can change chan->outreadbuf and chan->inwritebuf
while zt_chan_read() and zt_chan_write() are using them.
This leads to memory corruptions that show up as strange errors
on the d-channel and sometimes kernel panics.

Here is a patch to fix the problem.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 12:49  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 2396

U   trunk/zaptel.c

------------------------------------------------------------------------
r2396 | mattf | 2008-06-07 12:49:49 -0500 (Sat, 07 Jun 2008) | 3 lines

chan variables are accessed without a lock, so they could change
underneath us.  
Make sure we use a local variable for access to them. 
(http://bugs.digium.com/view.php?id=9208)

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=2396 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 12:49  svnbot         Checkin                                      
06-07-08 12:49  svnbot         Note Added: 0088279                          
======================================================================




More information about the asterisk-bugs mailing list