All of lore.kernel.org
 help / color / mirror / Atom feed
* re: Whizzy New Feature: Paged segmented memory
@ 2002-01-08  3:45 Jacques Gelinas
  2002-01-08  7:17 ` Anthony DeRobertis
  0 siblings, 1 reply; 13+ messages in thread
From: Jacques Gelinas @ 2002-01-08  3:45 UTC (permalink / raw)
  To: linux-kernel

On Sun, 6 Jan 2002 14:14:30 -0500, Marcin Tustin wrote
>
> 	Any comments on how useful it would be to have paged, segmented,
> memory support for Pentium? I was thinking that by having separate
> segments for text, stack, and heap, buffer overrun exploits would be
> eliminated (I'm aware that this would require GCC patching as well).
> 	Obviously, I'm thinking that I (and any similar fools I could rope
> in) would try this (Probably delivering for a kernel at least a year out
> of date by the time we had a patch).

Another solution would be to have two stacks. One for variable (auto data)
and one for program execution (call). Beside cache effect, this would provide
mostly the same performance as we get now. Just wondering if someone had
toyed with this idea.


---------------------------------------------------------
Jacques Gelinas <jack@solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Whizzy New Feature: Paged segmented memory
@ 2002-01-08 13:42 Jacques Gelinas
  0 siblings, 0 replies; 13+ messages in thread
From: Jacques Gelinas @ 2002-01-08 13:42 UTC (permalink / raw)
  To: linux-kernel

On Tue, 8 Jan 2002 12:22:25 -0500, jtv wrote
> On Tue, Jan 08, 2002 at 02:17:14AM -0500, Anthony DeRobertis wrote:
> >
> > A nice thing about two stacks is that it can be a completely
> > userspace thing. No need to involve the kernel at all; just gcc
> > and friends.
>
> Doesn't it have ABI implications as well?

Yes, it might make the whole thing binary incompatible (so we could
have a new glibc major release :-) ) Not sure.

> If so, why not go all the way and have stacks grow upwards?  :-)

This won't help. It will change the attack pattern though (so it may help
a bit). If the stack grow upward, then the data from the caller, passed to the
callee will be used to create the overflow. Taking control this way is still
possible.

And the stack grow direction is controlled by the CPU stack operation and
we can't change it.

---------------------------------------------------------
Jacques Gelinas <jack@solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Whizzy New Feature: Paged segmented memory
@ 2002-01-06 14:14 Marcin Tustin
  2002-01-06 18:32 ` Gábor Lénárt
  2002-01-06 20:41 ` Kevin Krieser
  0 siblings, 2 replies; 13+ messages in thread
From: Marcin Tustin @ 2002-01-06 14:14 UTC (permalink / raw)
  To: linux-kernel


	Any comments on how useful it would be to have paged, segmented,
memory support for Pentium? I was thinking that by having separate
segments for text, stack, and heap, buffer overrun exploits would be
eliminated (I'm aware that this would require GCC patching as well).
	Obviously, I'm thinking that I (and any similar fools I could rope
in) would try this (Probably delivering for a kernel at least a year out
of date by the time we had a patch).


Sorry
if this is too userspace.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-01-08 19:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-08  3:45 Whizzy New Feature: Paged segmented memory Jacques Gelinas
2002-01-08  7:17 ` Anthony DeRobertis
2002-01-08 11:22   ` jtv
2002-01-08 14:05     ` Anthony DeRobertis
2002-01-08 14:14       ` Richard B. Johnson
2002-01-08 19:33         ` Anthony DeRobertis
2002-01-08 19:45           ` Richard B. Johnson
2002-01-08 17:11       ` jtv
2002-01-08 19:32         ` Anthony DeRobertis
  -- strict thread matches above, loose matches on Subject: below --
2002-01-08 13:42 Jacques Gelinas
2002-01-06 14:14 Marcin Tustin
2002-01-06 18:32 ` Gábor Lénárt
2002-01-06 20:41 ` Kevin Krieser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.