Project

General

Profile

Actions

Bug #14242

open

programs that lack PT_PHDR are not properly loaded

Added by Andy Fiddaman 17 days ago. Updated 17 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

This is an upstream of https://smartos.org/bugview/OS-4128 from illumos-joyent

Without this, malicious, broken or fuzzed ELF binaries can be misinterpreted and lead to excessive kernel memory consumption.

From the original Joyent ticket:

Apparently, on some conditions (yet to be determined), Linux (or Ubuntu 14.10 or some version of gcc or something else in the toolchain) will generate a binary that lacks the PT_PHDR program header. According to ELF, this is an optional program header, but our binaries have always had it. When this program header is not found, the system annoyingly stops further loading but otherwise returns success -- practically fating the program to die a horrible death in the linker. These binaries are peculiar but they aren't corrupt; we should be able to accommodate them.


Related issues

Related to illumos gate - Bug #14236: signed math leads getelfshdr astrayIn ProgressAndy Fiddaman

Actions
Actions #1

Updated by Andy Fiddaman 17 days ago

  • Related to Bug #14236: signed math leads getelfshdr astray added
Actions #2

Updated by Electric Monk 17 days ago

  • Gerrit CR set to 1805
Actions

Also available in: Atom PDF