x86[_64]: Randomize initial stack pointer on alternative signal stacks

If the alternate signal stack is used randomize the initial stack
pointer in the same way it is randomized on "normal" thread stacks.
Also, update MINSIGSTKSZ value so that regardless of where the new
stack pointer points to there is at least 4k of stack left.
This commit is contained in:
Pawel Dziepak
2013-09-21 21:52:13 +02:00
parent 18ad64f227
commit afaa6ed4b3
3 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ struct sigaction {
#define SS_ONSTACK 0x1
#define SS_DISABLE 0x2
#define MINSIGSTKSZ 4096
#define MINSIGSTKSZ 8192
#define SIGSTKSZ 16384
/* for signals using an alternate stack */