Skip to contentSkip to conversation

Question - non-exec stack

DISCUSSION Breno 3 participants 4 messages Nov 28, 2003

lore
Share & tools
lore

Breno

author
#0 lore raw

Hi,

I´d like to know how non-exec stack can run on 32 bits processor. On 32bits processor vm_exec and vm_read has the same flags . So your tasks will not run very well.

att,
Breno Silva Pinto

#1 lore raw
Quoted 3 lines · Breno

I´d like to know how non-exec stack can run on 32 bits processor. On 32bits processor vm_exec and vm_read has the same flags . So your tasks will not run very well.

This doesn't have anything to do with the CPU word size, does it? I guess you mean 32 bit Intel processors.

Signature · 2 lines
Måns Rullgård
[email protected]
author
#2 lore raw

Yes , 32 bit Intel processors

Breno
----- Original Message -----
From: "Måns Rullgård" <[email protected]>
To: <[email protected]>
Sent: Friday, November 28, 2003 11:44 AM
Subject: Re: Question - non-exec stack

Quoted 1 line · Breno

I´d like to know how non-exec stack can run on 32 bits processor. On

32bits

Quoted 2 lines

processor vm_exec and vm_read has the same flags . So your tasks will not run very well.

This doesn't have anything to do with the CPU word size, does it? I guess you mean 32 bit Intel processors.

--
Måns Rullgård
[email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
Quoted 1 line · Breno

Yes , 32 bit Intel processors

Due to the really hard drugs the processor designers must have been on, the only way to implement this is via the particularly nasty flavor of segmentation on Intel processors (sane forms just use bits in pointers).

c.f. pax and exec-shield for examples of how to do it in Linux (please do not start that debate; the only relevant point here is they use the segmentation stuff). I suspect OpenBSD might also implement it.

-- wli