From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [PATCH 1/2] oom: don't ignore rss in nascent mm Date: Fri, 10 Sep 2010 00:05:04 +0200 Message-ID: <20100909220504.GA6273@redhat.com> References: <20100908023417.8B055401AF@magilla.sf.frob.com> <20100909134842.C93F.A69D9226@jp.fujitsu.com> <20100909140219.C942.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Roland McGrath , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, oss-security@lists.openwall.com, Solar Designer , Kees Cook , Al Viro , Neil Horman , linux-fsdevel@vger.kernel.org, pageexec@freemail.hu, "Brad Spengler , Eugene Teo" , KAMEZAWA Hiroyuki To: KOSAKI Motohiro Return-path: Content-Disposition: inline In-Reply-To: <20100909140219.C942.A69D9226@jp.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 09/09, KOSAKI Motohiro wrote: > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1226,6 +1226,7 @@ struct task_struct { > int pdeath_signal; /* The signal sent when the parent dies */ > /* ??? */ > unsigned int personality; > + struct mm_struct *in_exec_mm; Oh, yes, this has to be per-thread (unlike ->mm, btw). I wonder if it makes sense to move ->cred_guard_mutex from task_struct to signal_struct and thus make multiple-threads-inside-exec impossible. Only one thread can win anyway. Oleg.