Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030560AbWJDNoL (ORCPT ); Wed, 4 Oct 2006 09:44:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030530AbWJDNoL (ORCPT ); Wed, 4 Oct 2006 09:44:11 -0400 Received: from [198.99.130.12] ([198.99.130.12]:9889 "EHLO saraswathi.solana.com") by vger.kernel.org with ESMTP id S1030531AbWJDNoK (ORCPT ); Wed, 4 Oct 2006 09:44:10 -0400 Date: Wed, 4 Oct 2006 09:41:22 -0400 From: Jeff Dike To: David Wagner Cc: linux-kernel@vger.kernel.org Subject: Re: [patch] remove MNT_NOEXEC check for PROT_EXEC mmaps Message-ID: <20061004134122.GA3789@ccure.user-mode-linux.org> References: <45150CD7.4010708@aknet.ru> <451E3C0C.10105@aknet.ru> <1159887682.2891.537.camel@laptopd505.fenrus.org> <45229A99.6060703@aknet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 19 On Wed, Oct 04, 2006 at 03:17:59AM +0000, David Wagner wrote: > To be honest, I still don't think you've answered Arjan's question. Ok, > so you say it is not a library and not a binary. So what is it that you > are maping in as executable, and why do you think it is reasonable to > ask the Linux kernel to allow you to execute it, if it lives on a noexec > partition? He mentioned UML as being one thing affected by this. In this case, you can think of it as generating code in a piece of shared memory and then executing it. In reality, the code is read from disk rather than being generated internally, and it's executed in a different process, so it needs to be MAP_SHARED. Jeff - 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/