Merge tag 'for_v4.17-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[sfrench/cifs-2.6.git] / fs / binfmt_flat.c
index 5d6b94475f272629dc3f8c252749aff08790766d..82a48e8300181423bd589e52e673c2576c3da32d 100644 (file)
@@ -994,6 +994,7 @@ static int load_flat_binary(struct linux_binprm *bprm)
        FLAT_PLAT_INIT(regs);
 #endif
 
+       finalize_exec(bprm);
        pr_debug("start_thread(regs=0x%p, entry=0x%lx, start_stack=0x%lx)\n",
                 regs, start_addr, current->mm->start_stack);
        start_thread(regs, start_addr, current->mm->start_stack);