OSDN Git Service

mac80211: rx: avoid RCU list traversal under mutex
[tomoyo/tomoyo-test1.git] / fs / exec.c
index 74d88da..db17be5 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);