Re: Bug#787227: broken on armel due to broken RUNPATH: /usr/lib/ghc/bin/ghc: error while loading shared libraries: libHShaskeline-0.7.1.2-ghc7.8.4.so: cannot open shared object file: No such file or d

2015-05-30 Thread Helmut Grohne
Control: severity -1 wishlist
Control: reassign -1 libc6
Control: retitle -1 ld-linux.so loads libraries from . when /proc is not mounted
Control: affects -1 + ghc
Control: summary -1 0

When /proc is not mounted, a relative RPATH causes ld-linux.so to fall
back to using the working directory as the base directory for RPATH
resolution instead of using the (unknown) location of the executed
binary. This issue is hard to diagnose, because the error message does
not make it clear that fallback code is in use due to readlink
/proc/self/exe failing. Furthermore, it may pose a security risk by
loading libraries from unintended locations.

On Sat, May 30, 2015 at 11:54:26AM -0400, Joey Hess wrote:
 Sorry, I meant the linker should be fixed, not ghc.

Let's codify that in the bts.

Steps to reproduce (for glibc maintainers):

Create an unstable chroot. Install ghc. Do not mount /proc in that
chroot. Execute /usr/bin/ghc. You shall see that it fails loading
libraries.

I assume that any binary with a relative RPATH is affected.

Helmut


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150530165603.ga7...@alf.mars



Processed (with 1 errors): Re: Bug#787227: broken on armel due to broken RUNPATH: /usr/lib/ghc/bin/ghc: error while loading shared libraries: libHShaskeline-0.7.1.2-ghc7.8.4.so: cannot open shared obj

2015-05-30 Thread Debian Bug Tracking System
Processing control commands:

 severity -1 wishlist
Bug #787227 [ghc] broken on armel due to broken RUNPATH: /usr/lib/ghc/bin/ghc: 
error while loading shared libraries: libHShaskeline-0.7.1.2-ghc7.8.4.so: 
cannot open shared object file: No such file or directory
Severity set to 'wishlist' from 'important'
 reassign -1 libc6
Bug #787227 [ghc] broken on armel due to broken RUNPATH: /usr/lib/ghc/bin/ghc: 
error while loading shared libraries: libHShaskeline-0.7.1.2-ghc7.8.4.so: 
cannot open shared object file: No such file or directory
Bug reassigned from package 'ghc' to 'libc6'.
No longer marked as found in versions ghc/7.8.4-8.
Ignoring request to alter fixed versions of bug #787227 to the same values 
previously set
 retitle -1 ld-linux.so loads libraries from . when /proc is not mounted
Bug #787227 [libc6] broken on armel due to broken RUNPATH: 
/usr/lib/ghc/bin/ghc: error while loading shared libraries: 
libHShaskeline-0.7.1.2-ghc7.8.4.so: cannot open shared object file: No such 
file or directory
Changed Bug title to 'ld-linux.so loads libraries from . when /proc is not 
mounted' from 'broken on armel due to broken RUNPATH: /usr/lib/ghc/bin/ghc: 
error while loading shared libraries: libHShaskeline-0.7.1.2-ghc7.8.4.so: 
cannot open shared object file: No such file or directory'
 affects -1 + ghc
Bug #787227 [libc6] ld-linux.so loads libraries from . when /proc is not mounted
Added indication that 787227 affects ghc
 summary -1 0
Failed to give 787227 a summary: Can't use string (Received: (at 787227) by 
bugs.de...) as an ARRAY ref while strict refs in use.


-- 
787227: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787227
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b787227.143300498223312.transcr...@bugs.debian.org