Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 112573 - [PATCH] taskset redefines sched_get/setaffinity syscall numbers, resulting in error
[PATCH] taskset redefines sched_get/setaffinity syscall numbers, resulting in...
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: schedutils (Show other bugs)
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:
Last Closed: 2004-09-01 22:20:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:247 normal SHIPPED_LIVE Updated schedutils package fixes taskset utility on x86_64 2004-09-01 00:00:00 EDT

  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:

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.


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