Bug 162683 - [RHEL3 and RHEL2.1] ps command core dump
[RHEL3 and RHEL2.1] ps command core dump
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Anderson
Brian Brock
:
Depends On:
Blocks: 168424
  Show dependency treegraph
 
Reported: 2005-07-07 12:46 EDT by Issue Tracker
Modified: 2007-11-30 17:07 EST (History)
5 users (show)

See Also:
Fixed In Version: RHSA-2006-0144
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-15 11:12:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Issue Tracker 2005-07-07 12:46:29 EDT
Escalated to Bugzilla from IssueTracker
Comment 11 Karel Zak 2005-09-14 16:50:08 EDT
This is a kernel problem. See new versions of kernel (e.g 2.6.13) -- there's
spin lock for access to task->comm and routines don't use the task->comm field
directly, but there's API (set_task_comm() and get_task_comm()).

See: linux-2.4.21/fs/proc/array.c: proc_pid_stat() where is sprintf("%s",
task->comm).
Comment 12 Karel Zak 2005-09-14 17:05:34 EDT
Note: the kernel task_struct->comm race condition causes ps core dump, because
the ps command doesn't check for format of /proc/*/stat data. A possible
workaround could be detect and ignore processes with corrupted /proc/*/stat. But
I vote for real bug fix in RHEL3 kernel :-)
Comment 13 Ernie Petrides 2005-10-03 21:33:31 EDT
This is a dup of bug 138730, but I won't yet close it as such because
of current access restrictions.  A patch to fix this has been posted
for internal review and is expected to committed to the next U7 build.
Comment 14 Ernie Petrides 2005-10-04 16:24:33 EDT
Access restrictions on bug 138730 have now been lifted.

*** This bug has been marked as a duplicate of 138730 ***
Comment 16 Ernie Petrides 2005-10-07 22:18:01 EDT
A fix for this problem has just been committed to the RHEL3 U7
patch pool this evening (in kernel version 2.4.21-37.5.EL).
Comment 17 Red Hat Bugzilla 2006-03-15 11:12:21 EST
An advisory 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/RHSA-2006-0144.html

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