Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2017 13:52:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 217610] ELF loader should have a special case for program headers with p_filesz == 0
Message-ID:  <bug-217610-8-NeVW3s2f0o@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217610-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217610-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217610

--- Comment #6 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kib
Date: Sun Mar 12 13:51:13 UTC 2017
New revision: 315157
URL: https://svnweb.freebsd.org/changeset/base/315157

Log:
  Accept linkers representation for ELF segments with zero on-disk length.

  For such segments, GNU bfd linker writes knowingly incorrect value
  into the the file offset field of the program header entry, with the
  motivation that file should not be mapped for creation of this segment
  at all.

  Relax checks for the ELF structure validity when on-disk segment
  length is zero, and explicitely set mapping length to zero for such
  segments to avoid validating rounding arithmetic.

  PR:   217610
  Reported by:  Robert Clausecker <fuz@fuz.su>
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Changes:
  head/sys/kern/imgact_elf.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217610-8-NeVW3s2f0o>