Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 89877e42827f16fa5f86b1df0c2860b1 > files > 481

kernel-2.6.18-128.1.10.el5.src.rpm

From: Larry Woodman <lwoodman@redhat.com>
Subject: [RHEL5 patch]fix OOM killing processes wrongly thought MPOL_BIND
Date: Fri, 18 May 2007 08:30:10 -0400
Bugzilla: 222491
Message-Id: <1179491411.14174.16.camel@dhcp83-56.boston.redhat.com>
Changelog: [mm]fix OOM wrongly killing processes through MPOL_BIND


constrained_alloc() doesnt initialize the node mask so it actions are
random!  Attached upstream patch fixes this and BZ 222491



--- linux-2.6.18.noarch/mm/oom_kill.c.orig
+++ linux-2.6.18.noarch/mm/oom_kill.c
@@ -176,6 +176,7 @@ static inline int constrained_alloc(stru
 	nodemask_t nodes;
 	int node;
 
+	nodes_clear(nodes);
 	/* node has memory ? */
 	for_each_online_node(node)
 		if (NODE_DATA(node)->node_present_pages)