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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 1 18:40:13 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14808 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14808
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-04-01 18:38 CDT
Last Modified:              2009-04-01 18:40 CDT
====================================================================== 
Summary:                    ioctls from 32bit userspace on 64bit kernel
Description: 
Copy an installation of a 32bit system onto a subdirectory (chroot_dir/ ,
for this example) of a 64bit system. 
Connect a DAHDI device and load its drivers.

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 :-)

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-01 18:40 tzafrir        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list