Subject: Re: non-executable mappings clarification
To: Pavel Cahyna <pavel.cahyna@st.ms.mff.cuni.cz>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 10/12/2004 19:15:40
On Tue, Oct 12, 2004 at 09:35:21PM +0200, Pavel Cahyna wrote:
> Hello,
> 
> The NetBSD guide in
> http://www.netbsd.org/guide/en/chap-whatsnew.html#chap-whatsnew-2-0 states
> that "If enabled, parts of the stack and heap are made non-executable when
> they are marked writable."
> 
> I guess this feature is permanently enabled. Also, is it true that
> non-executability has any relationship with writability?

right, this feature is not optional.  that sentence is a little confusing.

netbsd (as of 2.0) supports virtual memory execute permission and
write permission independently on architectures that support it.
some architectures have special restrictions, see
	http://www.netbsd.org/Documentation/kernel/non-exec.html
for details.

-Chuck