This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/11444] Check that no pt_regs*-processing functions are /* unprivileged */
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 1 Jul 2010 14:47:43 -0000
- Subject: [Bug tapsets/11444] Check that no pt_regs*-processing functions are /* unprivileged */
- References: <20100329184948.11444.brolley@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2010-07-01 14:47 -------
(In reply to comment #2)
> What exactly is the problem with passing around CONTEXT->regs?
OK, I finally got a clue...
commit ec3c800b3556d90be2b2e810d2f0a496ddaba08b
Author: Mark Wielaard <mjw@redhat.com>
Date: Thu Jul 1 16:42:30 2010 +0200
PR11444 Don't leak CONTEXT->regs in unwind, explicitly use task_pt_regs.
CONTEXT->regs might be kernel regs, or not set at all, so check whether
we have a real task and grab the task_pt_regs before proceeding.
* tapset/ucontext-unwind.stp (print_ubacktrace): Check current->mm
and grab task_pt_regs.
(print_ubacktrace_brief): Likewise.
(ubacktrace): Likewise.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11444
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.