]> git.baikalelectronics.ru Git - kernel.git/commit
binfmt_elf: load interpreter program headers earlier
authorPaul Burton <paul.burton@imgtec.com>
Thu, 11 Sep 2014 07:30:15 +0000 (08:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:02 +0000 (07:45 +0100)
commit9b518f9a94c64ff07c0ac502607241aff671a4ba
tree52eab4f9dbe6a56e3e43b83d2d9a837ec9dd493b
parentdd21dcb5c0708c05df6958b01f31d39fa45a1701
binfmt_elf: load interpreter program headers earlier

Load the program headers of an ELF interpreter early enough in
load_elf_binary that they can be examined before it's too late to return
an error from an exec syscall. This patch does not perform any such
checking, it merely lays the groundwork for a further patch to do so.

No functional change is intended.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7675/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
fs/binfmt_elf.c