12 #include <linux/sched.h>
15 #include <linux/elf-fdpic.h>
26 unsigned long *start_brk)
28 *start_stack = 0x02200000
UL;
38 *start_brk = 0x80000000
UL;
60 unsigned long pgoff,
unsigned long flags)
77 (!vma || addr + len <= vma->
vm_start))
83 limit = (
current->mm->start_stack - 0x00200000);
84 if (addr + len <= limit) {
89 for (; vma; vma = vma->
vm_next) {
104 for (; vma; vma = vma->
vm_next) {
112 if (!vma && addr <= limit)
117 printk(
"[area] l=%lx (ENOMEM) f='%s'\n",
118 len, filp ? filp->
f_path.dentry->d_name.name :
"");
124 printk(
"[area] l=%lx ad=%lx f='%s'\n",
125 len, addr, filp ? filp->
f_path.dentry->d_name.name :
"");