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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user