Bug 700499 - [RHEL6] oom_kill.c : printk in __oom_kill_task no longer includes p->uid as it did in RHEL 5
Summary: [RHEL6] oom_kill.c : printk in __oom_kill_task no longer includes p->uid as i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Frantisek Hrbata
QA Contact: Caspar Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-28 14:35 UTC by Travis Gummels
Modified: 2018-11-14 13:09 UTC (History)
4 users (show)

Fixed In Version: kernel-2.6.32-182.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 13:20:23 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1530 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux 6 kernel security, bug fix and enhancement update 2011-12-06 01:45:35 UTC

Description Travis Gummels 2011-04-28 14:35:50 UTC
Description of problem:

The printk output in __oom_kill_task no longer includes p->uid as it did in RHEL 5.  LLNL relies on this data point to be able to identify the user causing the oom_kill.  This allows them to address the infraction with the user.

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

RHEL 6 All

How reproducible:

You don't need to reproduce it.  The code has been changed.  Just add p->uid back to the printk.

./mm/oom_kill.c

RHEL 5 

    264 static void __oom_kill_task(struct task_struct *p, const char *message)
...
    280         if (message)
    281                 printk(KERN_ERR "%s: Killed process %d, UID %d, (%s).\n",
    282                                 message, p->pid, p->uid, p->comm);


RHEL 6 

    348 static void __oom_kill_task(struct task_struct *p, int verbose)
...
    368         if (verbose)
    369                 printk(KERN_ERR "Killed process %d (%s) "
    370                                 "vsz:%lukB, anon-rss:%lukB, file-rss:%lukB\n",
    371                                 task_pid_nr(p), p->comm,
    372                                 K(p->mm->total_vm),
    373                                 K(get_mm_counter(p->mm, anon_rss)),
    374                                 K(get_mm_counter(p->mm, file_rss)));


Actual results:

No process uid in the output.

Expected results:

The process uid is in the output.

Additional info:

Comment 2 RHEL Program Management 2011-06-16 13:10:01 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 3 Aristeu Rozanski 2011-08-07 16:39:11 UTC
Patch(es) available on kernel-2.6.32-182.el6

Comment 8 errata-xmlrpc 2011-12-06 13:20:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1530.html


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