From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965276AbbCPOub (ORCPT ); Mon, 16 Mar 2015 10:50:31 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44436 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964893AbbCPOuZ (ORCPT ); Mon, 16 Mar 2015 10:50:25 -0400 Message-ID: <1426517419.28068.118.camel@stgolabs.net> Subject: Re: [PATCH] mm: rcu-protected get_mm_exe_file() From: Davidlohr Bueso To: Oleg Nesterov Cc: Konstantin Khlebnikov , linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Al Viro Date: Mon, 16 Mar 2015 07:50:19 -0700 In-Reply-To: <20150316140720.GA1859@redhat.com> References: <20150316131257.32340.36600.stgit@buzz> <20150316140720.GA1859@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.9 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2015-03-16 at 15:07 +0100, Oleg Nesterov wrote: > 3. and we can remove down_write(mmap_sem) from prctl paths. > > Actually we can do this even without xchg() above, but we might > want to kill MMF_EXE_FILE_CHANGED and test_and_set_bit() check. Yeah I was waiting for security folks input about this, otherwise this still doesn't do it for me as we still have to deal with mmap_sem.