]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/exec.c
y2038: remove unused time32 interfaces
[linux.git] / fs / exec.c
index 74d88dab98dd58282f3e08b82ff9dd388f195846..db17be51b11271966898784e6b0d57692aa5575c 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -272,7 +272,6 @@ 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;
@@ -761,6 +760,11 @@ int setup_arg_pages(struct linux_binprm *bprm,
                goto out_unlock;
        BUG_ON(prev != vma);
 
+       if (unlikely(vm_flags & VM_EXEC)) {
+               pr_warn_once("process '%pD4' started with executable stack\n",
+                            bprm->file);
+       }
+
        /* Move stack pages down in memory. */
        if (stack_shift) {
                ret = shift_arg_pages(vma, stack_shift);