Red Hat Bugzilla – Bug 123251
LTC5420 ioctl TIOCGICOUNT not implemented in 32bit for 64bit kernel
Last modified: 2007-11-30 17:07:01 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1)
Description of problem:
IBM reports that the RHEL 3 ppc64 is missing two ioctls - TIOCMIWAIT
and TIOCGICOUNT via IT#29785. The IT ticket also includes their kernel
--- ioctl32.c.orig 2003-06-12 12:27:26.000000000 -0500
+++ ioctl32.c 2003-06-19 12:40:16.000000000 -0500
@@ -3709,6 +3709,8 @@
/* Big F */
Version-Release number of selected component (if applicable):
Steps to Reproduce:
On IBM p-series machine:
1. Download attached testcase (serialtest.c)
2. compile & run as 32bit executable
3. compile & run as 64bit executable
Actual Results: When run as a 32 bit executable, testcase fails with:
ioctl(TIOCGICOUNT) error 22!
fd = 3, &oldIcount = 0xfffff018, stateP->rc = -1
When run as a 64bit executable the testcase runs as expected.
Expected Results: Test should exit, with no errors.
The kernel generates the following message:
kernel: sys32_ioctl(serialtest:12732): Unknown cmd fd(3) cmd(0000545d)
when it is run. This corresponds with the error message in in
The 32bit emulation layer doesn't implement the ioctl we are wanting
Created attachment 100235 [details]
Attach customer's test case.
A fix for this problem has just been committed to the RHEL3 U3
patch pool this evening (in kernel version 2.4.21-15.7.EL).
An errata has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.