]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/exec.c
ext4: fix race between writepages and enabling EXT4_EXTENTS_FL
[linux.git] / fs / exec.c
index 3dd09e1e3e5eb154a1a92f775ecf65c1b4da0451..db17be51b11271966898784e6b0d57692aa5575c 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -760,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);