From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with ESMTP id 8FD65600803 for ; Mon, 23 Aug 2010 19:16:27 -0400 (EDT) Date: Mon, 23 Aug 2010 16:16:20 -0700 From: Andrew Morton Subject: Re: [patch 3/3 v3] oom: kill all threads sharing oom killed task's mm Message-Id: <20100823161620.7a46f2e1.akpm@linux-foundation.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: David Rientjes Cc: KAMEZAWA Hiroyuki , KOSAKI Motohiro , Rik van Riel , linux-mm@kvack.org List-ID: On Fri, 20 Aug 2010 16:52:38 -0700 (PDT) David Rientjes wrote: > + pr_err("Kill process %d (%s) sharing same memory\n", > + task_pid_nr(q), q->comm); We're really supposed to use get_task_comm() when accessing another tasks's comm[] to avoid races with that task altering its comm[] in prctl(). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org