diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-08-16 16:05:13 -0400 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-09-10 19:31:47 -0400 |
commit | 4755200b6b116dbf6d5545427e8a2cf58194ba6b (patch) | |
tree | 68886d0d774a06af916967474c7ecc45dde201bd /fs/proc | |
parent | 382e67aec6a7eea8ed4403e86950b468a191c468 (diff) |
binfmt_elf: don't attempt to load FDPIC binaries
On platforms where both ELF and ELF-FDPIC variants are available, the
regular ELF loader will happily identify FDPIC binaries as proper ELF
and load them without the necessary FDPIC fixups, resulting in an
immediate user space crash. Let's prevent binflt_elf from loading those
binaries so binfmt_elf_fdpic has a chance to pick them up. For those
architectures that don't define elf_check_fdpic(), a default version
returning false is provided.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Mickael GUENE <mickael.guene@st.com>
Tested-by: Vincent Abriou <vincent.abriou@st.com>
Tested-by: Andras Szemzo <szemzo.andras@gmail.com>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions