Re: Whizzy New Feature: Paged segmented memory

Jacques Gelinas (jack@solucorp.qc.ca)
Tue, 8 Jan 2002 08:42:35 -0500


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
-
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/