Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230971
b: refs/heads/master
c: 9887a1f
h: refs/heads/master
i:
  230969: 0793f9b
  230967: c8ac429
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 12, 2011
1 parent 4d565c5 commit a9510b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df1ca53cba34b1d40a4ed47907d71397e4ee72c2
refs/heads/master: 9887a1fcddef1386d3387edf6497d08670460edb
2 changes: 1 addition & 1 deletion trunk/arch/s390/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ extern void (*_machine_restart)(char *command);
extern void (*_machine_halt)(void);
extern void (*_machine_power_off)(void);

#define arch_align_stack(x) (x)
extern unsigned long arch_align_stack(unsigned long sp);

static inline int tprot(unsigned long addr)
{
Expand Down
9 changes: 9 additions & 0 deletions trunk/arch/s390/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
#include <linux/tick.h>
#include <linux/elfcore.h>
#include <linux/kernel_stat.h>
#include <linux/personality.h>
#include <linux/syscalls.h>
#include <linux/compat.h>
#include <linux/kprobes.h>
#include <linux/random.h>
#include <asm/compat.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
Expand Down Expand Up @@ -332,3 +334,10 @@ unsigned long get_wchan(struct task_struct *p)
}
return 0;
}

unsigned long arch_align_stack(unsigned long sp)
{
if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space)
sp -= get_random_int() & ~PAGE_MASK;
return sp & ~0xf;
}

0 comments on commit a9510b6

Please sign in to comment.