This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug uprobes/5274] uprobes: Handle longjmps
- From: "jkenisto at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 22 Aug 2008 02:06:46 -0000
- Subject: [Bug uprobes/5274] uprobes: Handle longjmps
- References: <20071105231655.5274.jkenisto@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jkenisto at us dot ibm dot com 2008-08-22 02:06 -------
Created an attachment (id=2921)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2921&action=view)
incomplete, untested fix
Here's that patch that I neglected to attach when I created this PR. It's
incomplete, in that it doesn't create arch_predict_ret_stack_ptr() for each
architecture (or add static/extern refs to it), and it doesn't add the
stack_ptr member to struct uretprobe_image.
For x86, it'd look something like this:
/* Upon return, the return address will have been popped off. */
unsigned long arch_predict_ret_stack_ptr(struct pt_regs *regs,
struct task_struct *tsk)
{
size_t rasize;
if (is_32bit_app(current))
rasize = 4;
else
rasize = 8;
return user_stack_ptr(regs) + rasize;
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5274
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.