This is a note to let you know that I've just added the patch titled binfmt: Fix error return code in load_elf_fdpic_binary() to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: binfmt-fix-error-return-code-in-load_elf_fdpic_binary.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From e7f703ff2507f4e9f496da96cd4b78fd3026120c Mon Sep 17 00:00:00 2001 From: Wang Yufen <wangyufen@xxxxxxxxxx> Date: Fri, 2 Dec 2022 09:41:01 +0800 Subject: binfmt: Fix error return code in load_elf_fdpic_binary() From: Wang Yufen <wangyufen@xxxxxxxxxx> commit e7f703ff2507f4e9f496da96cd4b78fd3026120c upstream. Fix to return a negative error code from create_elf_fdpic_tables() instead of 0. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Wang Yufen <wangyufen@xxxxxxxxxx> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/1669945261-30271-1-git-send-email-wangyufen@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/binfmt_elf_fdpic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/fs/binfmt_elf_fdpic.c +++ b/fs/binfmt_elf_fdpic.c @@ -434,8 +434,9 @@ static int load_elf_fdpic_binary(struct 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); Patches currently in stable-queue which might be from wangyufen@xxxxxxxxxx are queue-5.10/rdma-srp-fix-error-return-code-in-srp_parse_options.patch queue-5.10/binfmt-fix-error-return-code-in-load_elf_fdpic_binary.patch queue-5.10/pstore-ram-fix-error-return-code-in-ramoops_probe.patch queue-5.10/asoc-mediatek-mt8173-rt5650-rt5514-fix-refcount-leak.patch queue-5.10/wifi-brcmfmac-fix-error-return-code-in-brcmf_sdio_do.patch queue-5.10/asoc-audio-graph-card-fix-refcount-leak-of-cpu_ep-in.patch queue-5.10/rdma-hfi1-fix-error-return-code-in-parse_platform_co.patch