This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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 tapsets/11444] Check that no pt_regs*-processing functions are /* unprivileged */


------- 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.


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