x86, mpx: On-demand kernel allocation of bounds tables
[linux-2.6-block.git] / fs / exec.c
index 7302b75a9820fa5c6342e098bb8757c31d884a4e..65d4f5c70ef4f8b3ee9f682fcf2ea99cdc5d7563 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -60,6 +60,7 @@
 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/tlb.h>
+#include <asm/mpx.h>
 
 #include <trace/events/task.h>
 #include "internal.h"
@@ -277,6 +278,7 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
                goto err;
 
        mm->stack_vm = mm->total_vm = 1;
+       arch_bprm_mm_init(mm, vma);
        up_write(&mm->mmap_sem);
        bprm->p = vma->vm_end - sizeof(void *);
        return 0;