This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11100] New: sysdeps/unix/sysv/linux/ptrace.c PTRACE_SETOPTIONS inappropriate pointer check
- From: "chris2k01 at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 16 Dec 2009 22:11:17 -0000
- Subject: [Bug libc/11100] New: sysdeps/unix/sysv/linux/ptrace.c PTRACE_SETOPTIONS inappropriate pointer check
- Reply-to: sourceware-bugzilla at sourceware dot org
In sysdeps/unix/sysv/linux/ptrace.c, on line 102, if __BOUNDED__POINTERS__ is
true, checks are done that pointers point at appropriate locations. Such a
check is done on the "data" argument to ptrace() if the "request" argument is
PTRACE_SETOPTIONS. However, according to ptrace(2) (and, indeed, according to
the gdb sources and the kernel sources), the PTRACE_SETOPTIONS request accepts
a bitmask of PTRACE_O_* values as its "data" argument, *not* a pointer.
--
Summary: sysdeps/unix/sysv/linux/ptrace.c PTRACE_SETOPTIONS
inappropriate pointer check
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: chris2k01 at hotmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11100
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.