mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 11:44:11 +00:00
binfmt: Fix error return code in load_elf_fdpic_binary()
commite7f703ff25
upstream. Fix to return a negative error code from create_elf_fdpic_tables() instead of 0. Fixes:1da177e4c3
("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/1669945261-30271-1-git-send-email-wangyufen@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1addb6e150
commit
57dc5bb77f
1 changed files with 3 additions and 2 deletions
|
@ -434,8 +434,9 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm)
|
|||
current->mm->start_stack = current->mm->start_brk + stack_size;
|
||||
#endif
|
||||
|
||||
if (create_elf_fdpic_tables(bprm, current->mm,
|
||||
&exec_params, &interp_params) < 0)
|
||||
retval = create_elf_fdpic_tables(bprm, current->mm, &exec_params,
|
||||
&interp_params);
|
||||
if (retval < 0)
|
||||
goto error;
|
||||
|
||||
kdebug("- start_code %lx", current->mm->start_code);
|
||||
|
|
Loading…
Add table
Reference in a new issue