|
@@ -28,6 +28,7 @@
|
|
|
#include <linux/tick.h>
|
|
|
#include <linux/utsname.h>
|
|
|
#include <linux/uaccess.h>
|
|
|
+#include <linux/random.h>
|
|
|
|
|
|
#include <asm/leds.h>
|
|
|
#include <asm/processor.h>
|
|
@@ -421,3 +422,9 @@ unsigned long get_wchan(struct task_struct *p)
|
|
|
} while (count ++ < 16);
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+unsigned long arch_randomize_brk(struct mm_struct *mm)
|
|
|
+{
|
|
|
+ unsigned long range_end = mm->brk + 0x02000000;
|
|
|
+ return randomize_range(mm->brk, range_end, 0) ? : mm->brk;
|
|
|
+}
|