gdb lost the ptrace education patch

Bug #667815 reported by Kees Cook on 2010-10-28
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
Medium
Kees Cook
Maverick
Medium
Kees Cook
Natty
Medium
Kees Cook

Bug Description

Binary package hint: gdb

The 7.2 gdb merge lost the ptrace education patch that was added in https://edge.launchpad.net/ubuntu/+source/gdb/7.1-1ubuntu3 (and ubuntu4). The patch was well-tested in Maverick during the release cycle, so regression potential is very low.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gdb 7.2-1ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Thu Oct 28 10:16:13 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100406)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gdb

Kees Cook (kees) wrote :
Changed in gdb (Ubuntu Maverick):
milestone: none → maverick-updates
importance: Undecided → Medium
Changed in gdb (Ubuntu Natty):
importance: Undecided → Medium
Changed in gdb (Ubuntu Maverick):
status: New → In Progress
Changed in gdb (Ubuntu Natty):
status: New → In Progress
Changed in gdb (Ubuntu Maverick):
status: In Progress → Confirmed
assignee: nobody → Kees Cook (kees)
Changed in gdb (Ubuntu Natty):
assignee: nobody → Kees Cook (kees)
milestone: none → natty-alpha-2
Kees Cook (kees) wrote :
Changed in gdb (Ubuntu Maverick):
status: Confirmed → New
Kees Cook (kees) wrote :

Accepted into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Jean-Baptiste Lallement (jibel) wrote :

setting maverick task to committed as the fix is in -proposed.

Changed in gdb (Ubuntu Maverick):
status: New → Fix Committed
Steve Langasek (vorlon) wrote :

I have confirmed this fix. Before upgrade, trying to attach to a process with gdb as non-root fails with 'ptrace: Operation not permitted.' After upgrade, it instead outputs the full explanation:

 Could not attach to process. If your uid matches the uid of the target
 process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
 again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
 ptrace: Operation not permitted.

If I set kernel.yama.ptrace_scope=0, gdb still works correctly with no errors. Likewise, it works fine when attaching as root.

Marking verification-done, copying to -updates.

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdb - 7.2-1ubuntu3

---------------
gdb (7.2-1ubuntu3) maverick-proposed; urgency=low

  * Re-add debian/patches/ptrace-error-verbosity.patch that got
    accidentally dropped in the 7.2 merge: try to make PTRACE scope
    sysctl more discoverable (LP: #667815).
 -- Kees Cook <email address hidden> Thu, 28 Oct 2010 07:16:05 -0700

Changed in gdb (Ubuntu Maverick):
status: Fix Committed → Fix Released
Kees Cook (kees) on 2010-12-03
Changed in gdb (Ubuntu Natty):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers