Bug 112573 - [PATCH] taskset redefines sched_get/setaffinity syscall numbers, resulting in error
[PATCH] taskset redefines sched_get/setaffinity syscall numbers, resulting in...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: schedutils (Show other bugs)
3.0
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jim Paradis
:
Depends On:
Blocks: 107562
  Show dependency treegraph
 
Reported: 2003-12-23 08:54 EST by Neil Horman
Modified: 2013-08-05 21:03 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-01 22:20:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to remove redifinition of get/set affinity syscalls for x86_64 (585 bytes, patch)
2003-12-23 08:57 EST, Neil Horman
no flags Details | Diff

  None (edit)
Description Neil Horman 2003-12-23 08:54:51 EST
Description of problem:
Running taskset on a RHEL3 x86_64 platform results in ENOSYS codes
being returned from calls to sched_getaffinity and sched_setaffinity.
 The prevents taskset from working properly

Version-Release number of selected component (if applicable):
All RHEL3 x86_64 platforms

How reproducible:
always

Steps to Reproduce:
1.run taskset -p 1 <choose a pid>

  
Actual results:
ENOSYS returned from get/set affinity calls

Expected results:
cpu affinity set to 0x1 for selected process

Additional info:
stracing this binary shows that instead of actually calling
sched_getaffinity and sched_setaffinity, syscall_241 and syscall_242
are called, which are unimplemented in the syscall table (causing the
aforementioned ENOSYS).  The values for __NR_sched_getaffinity and
__NR_sched_setaffinity are redefined in the schedultils pacakge to the
241 and 242 values, which is the root of the problem (also causing a
compilation warining about a redefinition of these symbols from their
correct values of 204 and 205 in /usr/include/asm-x86_64/unistd.h.
Comment 1 Neil Horman 2003-12-23 08:57:07 EST
Created attachment 96678 [details]
patch to remove redifinition of get/set affinity syscalls for x86_64

This patch removes the get/set affinity syscall redefinitions from the
schedutils package, allowing the correct values from unistd.h to be used during
the build.
Comment 3 Jim Paradis 2004-01-15 15:52:27 EST
Patch tested and checked in.
Comment 7 Jim Paradis 2004-06-12 02:04:34 EDT
FYI, this is errata # RHBA-2004:247-02
Comment 8 Jay Turner 2004-09-01 22:20:52 EDT
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.

http://rhn.redhat.com/errata/RHBA-2004-247.html

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