diff options
author | Nicolas Pitre <[email protected]> | 2017-08-16 16:05:13 -0400 |
---|---|---|
committer | Nicolas Pitre <[email protected]> | 2017-09-10 19:31:47 -0400 |
commit | 4755200b6b116dbf6d5545427e8a2cf58194ba6b (patch) | |
tree | 68886d0d774a06af916967474c7ecc45dde201bd /net/unix/sysctl_net_unix.c | |
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 <[email protected]>
Acked-by: Mickael GUENE <[email protected]>
Tested-by: Vincent Abriou <[email protected]>
Tested-by: Andras Szemzo <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions