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 uprobes/5274] uprobes: Handle longjmps


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


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