Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753118AbbBYR6X (ORCPT ); Wed, 25 Feb 2015 12:58:23 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:36910 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbbBYR6V (ORCPT ); Wed, 25 Feb 2015 12:58:21 -0500 From: Davidlohr Bueso X-Google-Original-From: Davidlohr Bueso Message-ID: <1424885948.9419.2.camel@stgolabs.net> Subject: Re: [PATCH v3 3/3] tomoyo: reduce mmap_sem hold for mm->exe_file To: Tetsuo Handa Cc: jmorris@namei.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, takedakn@nttdata.co.jp, linux-security-module@vger.kernel.org, tomoyo-dev-en@lists.sourceforge.jp In-Reply-To: <201502252040.IHB78651.OQFSLtFFHOOJMV@I-love.SAKURA.ne.jp> References: <1424370153.18191.12.camel@stgolabs.net> <201502200711.EIH87066.HSOJLFFOtFVOQM@I-love.SAKURA.ne.jp> <1424449696.2317.0.camel@stgolabs.net> <201502242035.GCI75431.LHQFOOJMFVSFtO@I-love.SAKURA.ne.jp> <1424806966.6539.84.camel@stgolabs.net> <201502252040.IHB78651.OQFSLtFFHOOJMV@I-love.SAKURA.ne.jp> Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Feb 2015 09:39:08 -0800 Mime-Version: 1.0 X-Mailer: Evolution 3.12.9 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1206 Lines: 30 On Wed, 2015-02-25 at 20:40 +0900, Tetsuo Handa wrote: > Davidlohr Bueso wrote: > > The mm->exe_file is currently serialized with mmap_sem (shared) in order > > to both safely (1) read the file and (2) compute the realpath by calling > > tomoyo_realpath_from_path, making it an absolute overkill. Good users will, > > on the other hand, make use of the more standard get_mm_exe_file(), requiring > > only holding the mmap_sem to read the value, and relying on reference > > > > Signed-off-by: Davidlohr Bueso > > Acked-by: Tetsuo Handa > > James, will you apply to linux-security.git#next ? > I'm not using publicly accessible git tree for sending pull requests. I'm actually trying to route these through Andrew. Because there will be lock conversions, I'm afraid that if such patches are merged in different order to Linus' tree, it will break bisectibility as you'd have races. Thanks, Davidlohr -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/