Re: [PATCH] x86: fix a bug introduced by "allocate full pt_regs" commit

From: Andy Lutomirski
Date: Thu Feb 26 2015 - 10:10:52 EST


On Thu, Feb 26, 2015 at 6:08 AM, Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:
> If syscall_trace_enter_phase1 returns 0,
> code restores %rax from pt_regs->ax, but should restore it from
> pt_regs->orig_ax.
>
> The bug crept in because LOAD_ARGS macro was very sublty different
> from RESTORE_ARGS, it had only two callsites and only this one
> was using that difference.

I folded this in to the original patch to avoid breaking bisection. I
put the missing -ARGOFFSET in and then removed it again in the
appropriate place later in the series.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/