]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 28 May 2015 22:44:24 +0000 (15:44 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:00:57 +0000 (14:00 -0400)
commita2a3d75bc59265924869f15741cce2a8bcce398c
tree5190550997ccc600dc4a89b2a1987722b9048be6
parent0096d0ccb701079017f2ad698d56b89838251724
fs/binfmt_elf.c:load_elf_binary(): return -EINVAL on zero-length mappings

[ Upstream commit 073aba98f6a2235e2ac4a8402b1a131ab032876e ]

commit 2b1d3ae940acd11be44c6eced5873d47c2e00ffa upstream.

load_elf_binary() returns `retval', not `error'.

Fixes: a87938b2e246b81b4fb ("fs/binfmt_elf.c: fix bug in loading of PIE binaries")
Reported-by: James Hogan <james.hogan@imgtec.com>
Cc: Michael Davidson <md@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/binfmt_elf.c