[asterisk-bugs] [DAHDI-linux 0014808]: [patch] ioctls from 32bit userspace on 64bit kernel

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 6 13:02:18 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14808 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14808
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2009-04-01 18:38 CDT
Last Modified:              2010-01-06 13:02 CST
====================================================================== 
Summary:                    [patch] ioctls from 32bit userspace on 64bit kernel
Description: 
Create a 32bit system on (chroot_dir/ , for this example) of a 64bit
system. 
Connect a DAHDI device and load its drivers.

On Debian/Ubuntu amd64:

  debootstrap --arch=i386
--insclude=build-essential,subversion,libreadline5-dev,libssl-dev,libnewt-dev
SUITE chroot_dir
  chroot chroot_dir
  # and build asterisk

(SUITE is the name of the distro to install: lenny, sid, testing,
unstable, jaunty, hardy, etc.)

Now run:

  mount -o bind /dev chroot_dir/dev
  chroot chroot_dir
  mount /proc
  mount /sys
  dahdi_genconf
  dahdi_cfg

The last command will generate errors:

DAHDI_CHANCONFIG failed on channel 1: Invalid argument (22)

Such a case should probably be handled through a compat_ioctl
(linux/compat.h). More reading is needed :-)
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0015884 MeetMe conference does break immediatel...
====================================================================== 

---------------------------------------------------------------------- 
 (0116143) svnbot (reporter) - 2010-01-06 13:02
 https://issues.asterisk.org/view.php?id=14808#c116143 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 7768

U   linux/trunk/drivers/dahdi/dahdi-base.c

------------------------------------------------------------------------
r7768 | tzafrir | 2010-01-06 13:02:17 -0600 (Wed, 06 Jan 2010) | 7 lines

Remove some unused 'struct inode *' function parameters.

Patch 0001 from issue https://issues.asterisk.org/view.php?id=14808 (initial
cleanup)

0001-dahdi-base-Remove-some-unused-struct-inode-function-.patch uploaded
by sruffell (license 456)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-06 13:02 svnbot         Checkin                                      
2010-01-06 13:02 svnbot         Note Added: 0116143                          
======================================================================




More information about the asterisk-bugs mailing list