Bug 700499

Summary: [RHEL6] oom_kill.c : printk in __oom_kill_task no longer includes p->uid as it did in RHEL 5
Product: Red Hat Enterprise Linux 6 Reporter: Travis Gummels <tgummels>
Component: kernelAssignee: Frantisek Hrbata <fhrbata>
Status: CLOSED ERRATA QA Contact: Caspar Zhang <czhang>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: czhang, kzhang, pbenas, qcai
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-182.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 13:20:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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