VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Kees Cook <keescook@chromium.org> 2018-04-10 16:34:57 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2018-04-11 10:28:37 -0700 commit: b83838313386f617d6bd8201be7f5b532059bba1 parent: 8f2af155b513583e8b149a384551f13e1ac5dc72
Commit Summary:
exec: introduce finalize_exec() before start_thread()
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 5d6b94475f27..82a48e830018 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -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);