[asterisk-bugs] [DAHDI-linux 0014808]: [patch] ioctls from 32bit userspace on 64bit kernel
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Nov 4 11:43:24 CST 2009
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: confirmed
JIRA:
Reviewboard Link:
======================================================================
Date Submitted: 2009-04-01 18:38 CDT
Last Modified: 2009-11-04 11:43 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...
======================================================================
----------------------------------------------------------------------
(0113129) sruffell (administrator) - 2009-11-04 11:43
https://issues.asterisk.org/view.php?id=14808#c113129
----------------------------------------------------------------------
Saved off two patches that allow at least 32-bit dahdi_tool to work.
I believe the DAHDI_SFCONFIG ioctl is the only one that will need to be
adapted differently in the .compat_ioctl call since there are long members
in the attached structure (which would be different sizes in a 32-bit
userspace and 64-bit kernel).
Issue History
Date Modified Username Field Change
======================================================================
2009-11-04 11:43 sruffell Note Added: 0113129
======================================================================
More information about the asterisk-bugs
mailing list