[asterisk-bugs] [DAHDI-linux 0015252]: procfs in dahdi can produce wrong (broken) data and warning

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 2 06:11:39 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15252 
====================================================================== 
Reported By:                biohumanoid
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   15252
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-06-02 06:11 CDT
Last Modified:              2009-06-02 06:11 CDT
====================================================================== 
Summary:                    procfs in dahdi can produce wrong (broken) data and
warning
Description: 
/* In Linux 2.6, this MUST NOT EXECEED 1024 bytes in one read! */
It's not truth...

/* In Linux 2.6, page is always PROC_BLOCK_SIZE=(PAGE_SIZE-1024) bytes.
 * 0<count<=PROC_BLOCK_SIZE . count=1 will produce an error in
 * vsnprintf ('head -c 1 /proc/dahdi/1', 'dd bs=1').*/

head -c 10 /proc/dahdi/1 or if you have a lot of channels, you will see
the following:
May 25 15:48:28 asteroid kernel: [  722.051812] WARNING: at
lib/vsprintf.c:609 vsnprintf+0x38/0x452()
and a broken output...

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-02 06:11 biohumanoid    New Issue                                    
======================================================================




More information about the asterisk-bugs mailing list