From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584Ab3LFPwS (ORCPT ); Fri, 6 Dec 2013 10:52:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:63125 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596Ab3LFPwR (ORCPT ); Fri, 6 Dec 2013 10:52:17 -0500 Date: Fri, 6 Dec 2013 16:52:38 +0100 From: Oleg Nesterov To: David Rientjes Cc: Andrew Morton , Michal Hocko , William Dauchy , Johannes Weiner , "Ma, Xindong" , "rusty@rustcorp.com.au" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Peter Zijlstra , gregkh@linuxfoundation.org, "Tu, Xiaobing" , azurIt , Sameer Nanda Subject: Re: [PATCH] Fix race between oom kill and task exit Message-ID: <20131206155238.GA6676@redhat.com> References: <3917C05D9F83184EAA45CE249FF1B1DD0253093A@SHSMSX103.ccr.corp.intel.com> <20131128063505.GN3556@cmpxchg.org> <20131128120018.GL2761@dhcp22.suse.cz> <20131128183830.GD20740@redhat.com> <20131202141203.GA31402@redhat.com> <20131205172931.GA26018@redhat.com> <20131206151944.GC2674@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131206151944.GC2674@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/06, Oleg Nesterov wrote: > > And this is risky. For example, 1/4 depends on (at least) another patch > I sent in preparation for this change, commit 81907739851 > "kernel/fork.c:copy_process(): don't add the uninitialized > child to thread/task/pid lists", perhaps on something else. Hmm. not too much actually, I re-checked v3.10:kernel/copy_process.c. Yes, list_add(thread_node)) in copy_process() can add the new thread with the wrong pids, but somehow I forgot that list_add(thread_group) in v3.10 has the same problem, so this probably doesn't matter and we can safely backport this change. > So personally I'd prefer to simply send the workaround for stable. Yes, anyway, bacause I will sleep better ;) But OK, if you think it would be better to mark 1-4 series I sent for stable - I won't argue. Oleg.