Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266590AbUF3I2p (ORCPT ); Wed, 30 Jun 2004 04:28:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266593AbUF3I2o (ORCPT ); Wed, 30 Jun 2004 04:28:44 -0400 Received: from mx1.redhat.com ([66.187.233.31]:47237 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S266589AbUF3I2g (ORCPT ); Wed, 30 Jun 2004 04:28:36 -0400 Date: Wed, 30 Jun 2004 04:28:05 -0400 From: Jakub Jelinek To: Jamie Lokier Cc: "Keith M. Wesolowski" , sparclinux@vger.kernel.org, "David S. Miller" , ultralinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: A question about PROT_NONE on Sparc and Sparc64 Message-ID: <20040630082804.GS21264@devserv.devel.redhat.com> Reply-To: Jakub Jelinek References: <20040630030503.GA25149@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040630030503.GA25149@mail.shareable.org> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 23 On Wed, Jun 30, 2004 at 04:05:03AM +0100, Jamie Lokier wrote: > I'm doing a survey of the different architectural implementations of > PROT_* flags for mmap() and mprotect(). I'm looking at linux-2.6.5. > > The Sparc and Sparc64 implementations are very similar to plain x86: > read implies exec, exec implies read and write implies read. > > (Aside: A comment in include/asm-sparc/pgtsrmmu.h says that finer-grained > access is possible. Quite a few other architectures do implement > finer-grained access, and even x86 is getting it now, so you may want > to revisit that. The code is already available, and tested, if you > cut that part out of the PaX security patch). I believe R!X and X!R pages ought to be possible on sparc64 too, just use a different bit as "read" in the fast ITLB miss handler from the one fast DTLB miss uses. Jakub - 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/