public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC
@ 2012-01-23 20:24 ppluzhnikov at google dot com
2012-01-24 12:21 ` [Bug libc/13618] " aj at suse dot de
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-23 20:24 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Bug #: 13618
Summary: elf_machine_rela may call unrelocated address while
resolving IFUNC
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: ppluzhnikov@google.com
Classification: Unclassified
The test is reduced from
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/919202
Reproduces with current git trunk.
// foo.c
#include <math.h>
int foo (double d) { return floor (d) != 0; }
// bar.c
int bar () { return foo (); }
// main.c
#include <dlfcn.h>
#include <stdio.h>
int
main (int argc, char *argv[])
{
const char *lib = "./bar.so";
if (argc > 1) lib = argv[1];
void *h = dlopen (lib, RTLD_NOW); // RTLD_LAZY -> no bug
if (h == 0)
{
puts (dlerror ());
return 1;
}
return 0;
}
gcc -fPIC -shared -fno-builtin -o foo.so foo.c -lm &&
gcc -fPIC -shared -o bar.so -Wl,--no-as-needed -lm ./foo.so bar.c &&
gcc -g main.c -ldl
gdb -q ./a.out
Program received signal SIGSEGV, Segmentation fault.
0x0000000000005446 in ?? ()
(gdb) bt
#0 0x0000000000005446 in ?? ()
#1 0x00007ffff7351005 in floor () at
../sysdeps/x86_64/fpu/multiarch/s_floor.S:26
#2 0x00007ffff7de738f in elf_machine_rela (sym=0x7ffff7338c88,
skip_ifunc=<optimized out>, reloc_addr_arg=0x7ffff7336008, version=<optimized
out>, map=0x602af0,
reloc=<optimized out>) at ../sysdeps/x86_64/dl-machine.h:302
#3 elf_dynamic_do_Rela (skip_ifunc=<optimized out>, lazy=<optimized out>,
nrelative=<optimized out>, relsize=<optimized out>, reladdr=<optimized out>,
map=0x602af0)
at do-rel.h:146
#4 _dl_relocate_object (scope=0x602e48, reloc_mode=<optimized out>,
consider_profiling=0) at dl-reloc.c:265
#5 0x00007ffff7deda23 in dl_open_worker (a=0x7fffffffd400) at dl-open.c:338
#6 0x00007ffff7de9686 in _dl_catch_error (objname=0x7fffffffd3f0,
errstring=0x7fffffffd3f8, mallocedp=0x7fffffffd3ef, operate=0x7ffff7ded7c0
<dl_open_worker>,
args=0x7fffffffd400) at dl-error.c:178
#7 0x00007ffff7ded36c in _dl_open (file=0x40080c "./bar.so", mode=-2147483646,
caller_dlopen=<optimized out>, nsid=-2, argc=1, argv=0x7fffffffd748,
env=0x7fffffffd758)
at dl-open.c:575
#8 0x00007ffff7bd7f26 in dlopen_doit (a=0x7fffffffd610) at dlopen.c:67
#9 0x00007ffff7de9686 in _dl_catch_error (objname=0x7ffff7dda0d0,
errstring=0x7ffff7dda0d8, mallocedp=0x7ffff7dda0c8, operate=0x7ffff7bd7ec0
<dlopen_doit>, args=0x7fffffffd610)
at dl-error.c:178
#10 0x00007ffff7bd84dc in _dlerror_run (operate=0x7ffff7bd7ec0 <dlopen_doit>,
args=0x7fffffffd610) at dlerror.c:164
#11 0x00007ffff7bd7fc1 in __dlopen (file=<optimized out>, mode=<optimized out>)
at dlopen.c:88
#12 0x00000000004006f1 in main (argc=1, argv=0x7fffffffd748) at main.c:8
What appears to be happening is that __floor (IFUNC) jumps to *unrelocated*
GOT entry for __get_cpu_features.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
@ 2012-01-24 12:21 ` aj at suse dot de
2012-01-24 12:21 ` aj at suse dot de
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aj at suse dot de @ 2012-01-24 12:21 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |2.15
Severity|normal |critical
--- Comment #2 from Andreas Jaeger <aj at suse dot de> 2012-01-24 12:19:42 UTC ---
Thanks for the testcase.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
2012-01-24 12:21 ` [Bug libc/13618] " aj at suse dot de
@ 2012-01-24 12:21 ` aj at suse dot de
2012-01-24 12:22 ` idoenmez at suse dot de
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aj at suse dot de @ 2012-01-24 12:21 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aj at suse dot de
--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2012-01-24 12:18:44 UTC ---
*** Bug 13580 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
2012-01-24 12:21 ` [Bug libc/13618] " aj at suse dot de
2012-01-24 12:21 ` aj at suse dot de
@ 2012-01-24 12:22 ` idoenmez at suse dot de
2012-01-24 12:23 ` allan at archlinux dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: idoenmez at suse dot de @ 2012-01-24 12:22 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
idoenmez at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |idoenmez at suse dot de
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (2 preceding siblings ...)
2012-01-24 12:22 ` idoenmez at suse dot de
@ 2012-01-24 12:23 ` allan at archlinux dot org
2012-01-24 17:59 ` vapier at gentoo dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: allan at archlinux dot org @ 2012-01-24 12:23 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Allan McRae <allan at archlinux dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |allan at archlinux dot org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (3 preceding siblings ...)
2012-01-24 12:23 ` allan at archlinux dot org
@ 2012-01-24 17:59 ` vapier at gentoo dot org
2012-01-27 2:03 ` law at redhat dot com
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: vapier at gentoo dot org @ 2012-01-24 17:59 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |toolchain at gentoo dot org
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (4 preceding siblings ...)
2012-01-24 17:59 ` vapier at gentoo dot org
@ 2012-01-27 2:03 ` law at redhat dot com
2012-01-27 20:06 ` drepper.fsp at gmail dot com
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: law at redhat dot com @ 2012-01-27 2:03 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
law at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (5 preceding siblings ...)
2012-01-27 2:03 ` law at redhat dot com
@ 2012-01-27 20:06 ` drepper.fsp at gmail dot com
2012-01-27 21:05 ` vapier at gentoo dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: drepper.fsp at gmail dot com @ 2012-01-27 20:06 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2012-01-27 20:05:52 UTC ---
I added a patch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (6 preceding siblings ...)
2012-01-27 20:06 ` drepper.fsp at gmail dot com
@ 2012-01-27 21:05 ` vapier at gentoo dot org
2012-01-31 3:50 ` ppluzhnikov at google dot com
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: vapier at gentoo dot org @ 2012-01-27 21:05 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
--- Comment #4 from Mike Frysinger <vapier at gentoo dot org> 2012-01-27 21:04:28 UTC ---
i suspect this is said commit:
http://sourceware.org/git/?p=glibc.git;a=commit;h=6ee65ed6ddbf04402fad0bec6aa9c73b9d982ae4
seems to fix my known failing test case (svn)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (7 preceding siblings ...)
2012-01-27 21:05 ` vapier at gentoo dot org
@ 2012-01-31 3:50 ` ppluzhnikov at google dot com
2012-05-23 3:22 ` ppluzhnikov at google dot com
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-31 3:50 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pcpa at mandriva dot com.br
--- Comment #5 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-01-31 03:49:05 UTC ---
*** Bug 13633 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (8 preceding siblings ...)
2012-01-31 3:50 ` ppluzhnikov at google dot com
@ 2012-05-23 3:22 ` ppluzhnikov at google dot com
2012-05-23 3:23 ` ppluzhnikov at google dot com
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppluzhnikov at google dot com @ 2012-05-23 3:22 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Marc-Antoine at Perennou
| |dot com
--- Comment #6 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-05-23 03:21:09 UTC ---
*** Bug 14133 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (9 preceding siblings ...)
2012-05-23 3:22 ` ppluzhnikov at google dot com
@ 2012-05-23 3:23 ` ppluzhnikov at google dot com
2014-02-16 16:56 ` jackie.rosen at hushmail dot com
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppluzhnikov at google dot com @ 2012-05-23 3:23 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=13618
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Marc-Antoine at Perennou
| |dot com
--- Comment #6 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-05-23 03:21:09 UTC ---
*** Bug 14133 has been marked as a duplicate of this bug. ***
--- Comment #7 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-05-23 03:23:19 UTC ---
(In reply to comment #6)
> *** Bug 14133 has been marked as a duplicate of this bug. ***
In PR13618, Marc-Antoine Perennou asks for the fix to be back-ported to 15.1
branch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (10 preceding siblings ...)
2012-05-23 3:23 ` ppluzhnikov at google dot com
@ 2014-02-16 16:56 ` jackie.rosen at hushmail dot com
2014-02-16 16:57 ` ismail at donmez dot ws
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 16:56 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13618
Jackie Rosen <jackie.rosen at hushmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jackie.rosen at hushmail dot com
--- Comment #8 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (11 preceding siblings ...)
2014-02-16 16:56 ` jackie.rosen at hushmail dot com
@ 2014-02-16 16:57 ` ismail at donmez dot ws
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-13 14:05 ` fweimer at redhat dot com
14 siblings, 0 replies; 16+ messages in thread
From: ismail at donmez dot ws @ 2014-02-16 16:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13618
ismail at donmez dot ws changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|ismail at donmez dot ws |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (12 preceding siblings ...)
2014-02-16 16:57 ` ismail at donmez dot ws
@ 2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-13 14:05 ` fweimer at redhat dot com
14 siblings, 0 replies; 16+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:43 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13618
Andreas Schwab <schwab at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|jackie.rosen at hushmail dot com |
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libc/13618] elf_machine_rela may call unrelocated address while resolving IFUNC
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
` (13 preceding siblings ...)
2014-05-28 19:43 ` schwab at sourceware dot org
@ 2014-06-13 14:05 ` fweimer at redhat dot com
14 siblings, 0 replies; 16+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 14:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=13618
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2014-06-13 14:05 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23 20:24 [Bug libc/13618] New: elf_machine_rela may call unrelocated address while resolving IFUNC ppluzhnikov at google dot com
2012-01-24 12:21 ` [Bug libc/13618] " aj at suse dot de
2012-01-24 12:21 ` aj at suse dot de
2012-01-24 12:22 ` idoenmez at suse dot de
2012-01-24 12:23 ` allan at archlinux dot org
2012-01-24 17:59 ` vapier at gentoo dot org
2012-01-27 2:03 ` law at redhat dot com
2012-01-27 20:06 ` drepper.fsp at gmail dot com
2012-01-27 21:05 ` vapier at gentoo dot org
2012-01-31 3:50 ` ppluzhnikov at google dot com
2012-05-23 3:22 ` ppluzhnikov at google dot com
2012-05-23 3:23 ` ppluzhnikov at google dot com
2014-02-16 16:56 ` jackie.rosen at hushmail dot com
2014-02-16 16:57 ` ismail at donmez dot ws
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-13 14:05 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).