From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755990Ab3KFDAn (ORCPT ); Tue, 5 Nov 2013 22:00:43 -0500 Received: from mail-lb0-f175.google.com ([209.85.217.175]:37405 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753567Ab3KFDAm (ORCPT ); Tue, 5 Nov 2013 22:00:42 -0500 Date: Wed, 6 Nov 2013 04:00:04 +0100 From: Vladimir Murzin To: David Rientjes Cc: Luigi Semenzato , Sameer Nanda , Andrew Morton , mhocko@suse.cz, Johannes Weiner , rusty@rustcorp.com.au, linux-mm@kvack.org, linux-kernel@vger.kernel.org, oleg@redhat.com, dserrg@gmail.com Subject: Re: [PATCH] mm, oom: Fix race when selecting process to kill Message-ID: <20131106030000.GA1934@hp530> References: <1383693987-14171-1-git-send-email-snanda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ccing Oleg and Sergey On Tue, Nov 05, 2013 at 05:27:29PM -0800, David Rientjes wrote: > On Tue, 5 Nov 2013, Luigi Semenzato wrote: > > > It's not enough to hold a reference to the task struct, because it can > > still be taken out of the circular list of threads. The RCU > > assumptions don't hold in that case. > > > > Could you please post a proper bug report that isolates this at the cause? > Hi David! I think it has already been reported[1] and actively discussed. Oleg has confirmed that while_each_thread() is not safe under rcu_read_lock()[2]. Oleg, any news about your activity for fixing that? [1] http://www.spinics.net/lists/linux-mm/msg54836.html [2] http://marc.info/?l=linux-kernel&m=127688978121665 > Thanks. > > -- > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by kanga.kvack.org (Postfix) with ESMTP id E21016B00B6 for ; Tue, 5 Nov 2013 22:00:45 -0500 (EST) Received: by mail-pa0-f41.google.com with SMTP id rd3so9990236pab.28 for ; Tue, 05 Nov 2013 19:00:45 -0800 (PST) Received: from psmtp.com ([74.125.245.194]) by mx.google.com with SMTP id y7si15504645pbi.203.2013.11.05.19.00.43 for ; Tue, 05 Nov 2013 19:00:44 -0800 (PST) Received: by mail-lb0-f180.google.com with SMTP id y6so7073224lbh.25 for ; Tue, 05 Nov 2013 19:00:41 -0800 (PST) Date: Wed, 6 Nov 2013 04:00:04 +0100 From: Vladimir Murzin Subject: Re: [PATCH] mm, oom: Fix race when selecting process to kill Message-ID: <20131106030000.GA1934@hp530> References: <1383693987-14171-1-git-send-email-snanda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Luigi Semenzato , Sameer Nanda , Andrew Morton , mhocko@suse.cz, Johannes Weiner , rusty@rustcorp.com.au, linux-mm@kvack.org, linux-kernel@vger.kernel.org, oleg@redhat.com, dserrg@gmail.com Ccing Oleg and Sergey On Tue, Nov 05, 2013 at 05:27:29PM -0800, David Rientjes wrote: > On Tue, 5 Nov 2013, Luigi Semenzato wrote: > > > It's not enough to hold a reference to the task struct, because it can > > still be taken out of the circular list of threads. The RCU > > assumptions don't hold in that case. > > > > Could you please post a proper bug report that isolates this at the cause? > Hi David! I think it has already been reported[1] and actively discussed. Oleg has confirmed that while_each_thread() is not safe under rcu_read_lock()[2]. Oleg, any news about your activity for fixing that? [1] http://www.spinics.net/lists/linux-mm/msg54836.html [2] http://marc.info/?l=linux-kernel&m=127688978121665 > Thanks. > > -- > 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 -- 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