lkml.org 
[lkml]   [2014]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH 3/6] uprobes/x86: Introduce sizeof_long(), cleanup adjust_ret_addr() and arch_uretprobe_hijack_return_addr()
From
Date
On Mon, 2014-04-07 at 13:34 -0700, Jim Keniston wrote:
> On Sun, 2014-04-06 at 22:16 +0200, Oleg Nesterov wrote:
> > 1. Add the trivial sizeof_long() helper and change other callers of
> > is_ia32_task() to use it.
> >
> ...
>
> This hunk #3 doesn't apply for me. I can't find in your patch sets
> where you added the lines being replaced (and they weren't there
> originally).

False alarm, I think. I didn't have your patch #9 v3 from Saturday.
Jim

>
> After I fixed up this hunk, this patch and the rest applied OK.
>
> > @@ -450,10 +448,7 @@ static int default_post_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs
> >
> > if (auprobe->fixups & UPROBE_FIX_CALL) {
> > if (adjust_ret_addr(regs->sp, correction)) {
> > - if (is_ia32_task())
> > - regs->sp += 4;
> > - else
> > - regs->sp += 8;
> > + regs->sp += sizeof_long();
> > return -ERESTART;
> > }
> > }
> > @@ -738,23 +733,21 @@ if (ret) pr_crit("EMULATE: %lx -> %lx\n", ip, regs->ip);
> ...
>
> This modified hunk worked for me.
> @@ -450,7 +448,9 @@ static int default_post_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs
>
> if (auprobe->fixups & UPROBE_FIX_CALL) {
> - if (adjust_ret_addr(regs->sp, correction))
> + if (adjust_ret_addr(regs->sp, correction)) {
> + regs->sp += sizeof_long();
> return -ERESTART;
> + }
> }
>
> return 0;
>
> Jim




\
 
 \ /
  Last update: 2014-04-07 23:21    [W:0.092 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site