RE: [PATCH] guard page for stacks that grow upwards

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luck, Tony
Date: Tuesday, August 24, 2010 - 11:04 am

>  - that "else" looks wrong. At least conceptually, both could happen -

Conceptually yes we could - I don't suppose we ever will as keeping
separate vmas for stack and RSE stack defends against underflow in
a program that has totally messed up.  But I can save 4 bytes of
source code and drop the "else".


This mask might be redundant ... I didn't look at the call
sequence, but I've observed that "address" happens to be page
aligned in all my tests.


Yes, that works too.

Coding revised version now.

-Tony
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] guard page for stacks that grow upwards, Luck, Tony, (Tue Aug 24, 9:31 am)
Re: [PATCH] guard page for stacks that grow upwards, Linus Torvalds, (Tue Aug 24, 9:53 am)
RE: [PATCH] guard page for stacks that grow upwards, Luck, Tony, (Tue Aug 24, 10:33 am)
Re: [PATCH] guard page for stacks that grow upwards, Linus Torvalds, (Tue Aug 24, 10:51 am)
RE: [PATCH] guard page for stacks that grow upwards, Luck, Tony, (Tue Aug 24, 11:04 am)