[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two issues with stack overflow protection

From: Daniel Colascione
Subject: Re: Two issues with stack overflow protection
Date: Wed, 29 Jul 2015 04:27:21 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

On 07/29/2015 12:06 AM, Paul Eggert wrote:
> Daniel Colascione wrote:
>> What's wrong with just mprotecting a guard page at the end of the stack,
>> and on overflow, giving that region normal protection, unwinding as
>> normal, then, at top level, restoring the guard page?
> Unwinding can grow the stack.

Sure. That's why you open up more stack to do the unwinding. Having done
that, if you still overflow, just abort. At that point, you can't
guarantee correct program semantics.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]