All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] elf: fixup error path in PT_INTERP case
@ 2019-03-30 11:19 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2019-03-30 11:19 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

Fix broken error path if PT_INTERP filename can't be opened for execution.

Reported-by: syzbot+0d1fcd7268b21baced4a@syzkaller.appspotmail.com
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

	fold into elf-free-pt_interp-filename-asap.patch

 fs/binfmt_elf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -777,7 +777,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
 			kfree(elf_interpreter);
 			retval = PTR_ERR(interpreter);
 			if (IS_ERR(interpreter))
-				goto out_free_dentry;
+				goto out_free_ph;
 
 			/*
 			 * If the binary is not readable then enforce

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-30 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-30 11:19 [PATCH -mm] elf: fixup error path in PT_INTERP case Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.