Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938277AbXFHHYl (ORCPT ); Fri, 8 Jun 2007 03:24:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S937965AbXFHHSD (ORCPT ); Fri, 8 Jun 2007 03:18:03 -0400 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:33275 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936729AbXFHHR7 (ORCPT ); Fri, 8 Jun 2007 03:17:59 -0400 Message-Id: <20070608071531.699545000@sous-sol.org> References: <20070608071511.159309000@sous-sol.org> User-Agent: quilt/0.46-1 Date: Fri, 08 Jun 2007 00:15:13 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Nick Piggin , David Rientjes , William Irwin , Christoph Lameter , Andrew Morton , Andi Kleen , Greg Kroah-Hartman Subject: [patch 02/32] oom: kill all threads that share mm with killed task Content-Disposition: inline; filename=oom-kill-all-threads-that-share-mm-with-killed-task.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1436 Lines: 42 -stable review patch. If anyone has any objections, please let us know. --------------------- From: David Rientjes oom_kill_task() calls __oom_kill_task() to OOM kill a selected task. When finding other threads that share an mm with that task, we need to kill those individual threads and not the same one. (Bug introduced by f2a2a7108aa0039ba7a5fe7a0d2ecef2219a7584) Acked-by: William Irwin Acked-by: Christoph Lameter Cc: Nick Piggin Cc: Andrew Morton Cc: Andi Kleen Signed-off-by: David Rientjes Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright Signed-off-by: Greg Kroah-Hartman --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.20.13.orig/mm/oom_kill.c +++ linux-2.6.20.13/mm/oom_kill.c @@ -335,7 +335,7 @@ static int oom_kill_task(struct task_str */ do_each_thread(g, q) { if (q->mm == mm && q->tgid != p->tgid) - force_sig(SIGKILL, p); + force_sig(SIGKILL, q); } while_each_thread(g, q); return 0; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/