Bug 156855 - semctl32 doesn't work on x86_64
semctl32 doesn't work on x86_64
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Martuccelli
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-05-04 14:19 EDT by Lev Makhlis
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-19 15:03:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lev Makhlis 2005-05-04 14:19:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Fedora/1.0.3-1.3.1 Firefox/1.0.3

Description of problem:
Unlike its siblings shmctl32 and msgctl32, semctl32 in arch/x84_64/ia32/ipc32.c does not properly convert between 32-bit and 64-bit semid_ds.  As a result, semctl(2) calls from a 32-bit application don't work properly.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Copy /usr/bin/ipcs from an IA32 system.
2. Create some semaphores.
3. Run ipcs -s.

Actual Results:  ------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00003039 0          lmakhlis  666        1
0x00003039 32769      lmakhlis  666        1
0x00003039 65538      lmakhlis  666        1
0x00003039 98307      lmakhlis  666        1
0x00003039 131076     lmakhlis  666        1
0x00003039 163845     lmakhlis  666        1

Expected Results:  Same as with native ipcs:

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00003039 0          lmakhlis  666        1
0x810940ac 32769      lmakhlis  666        2
0x820940fb 65538      lmakhlis  666        2
0xc1094102 98307      lmakhlis  666        2
0xc1094103 131076     lmakhlis  666        2
0xc1094104 163845     lmakhlis  666        2

Additional info:
Comment 1 Red Hat Bugzilla 2007-03-18 18:33:12 EDT
User jparadis@redhat.com's account has been closed
Comment 2 RHEL Product and Program Management 2007-10-19 15:03:08 EDT
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.

Note You need to log in before you can comment on or make changes to this bug.