This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9832] New: LD_POINTER_GUARD does not fully work


gdb has some automatic support for nexting over longjmp.
It relies on the user setting LD_POINTER_GUARD=0 to avoid
pointer mangling.

This code does not work on glibc 2.8 (Fedora 9).
I believe the problem is that on x86 (and x86-64), 
LD_POINTER_GUARD=0 still does a transformation.

>From libc/sysdeps/unix/sysv/linux/i386/sysdep.h:

#  define PTR_MANGLE(reg)	xorl %gs:POINTER_GUARD, reg;		      \
				roll $9, reg

The rotate is done unconditionally.
(x86-64 is similar)

-- 
           Summary: LD_POINTER_GUARD does not fully work
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: tromey at redhat dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9832

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]