Skip to content

Commit

Permalink
s390/mm: limit STACK_RND_MASK for compat tasks
Browse files Browse the repository at this point in the history
For compat tasks the mmap randomization does not use the maximum
randomization value from mmap_rnd_mask but the fixed value of 0x7ff.
This needs to be respected in the definition of STACK_RND_MASK as
well.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Mar 13, 2015
1 parent 20e76ee commit e143fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ do { \

extern unsigned long mmap_rnd_mask;

#define STACK_RND_MASK (mmap_rnd_mask)
#define STACK_RND_MASK (test_thread_flag(TIF_31BIT) ? 0x7ff : mmap_rnd_mask)

#define ARCH_DLINFO \
do { \
Expand Down

0 comments on commit e143fa9

Please sign in to comment.