Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932421AbbBZPKt (ORCPT ); Thu, 26 Feb 2015 10:10:49 -0500 Received: from mail-la0-f48.google.com ([209.85.215.48]:39755 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932191AbbBZPKs (ORCPT ); Thu, 26 Feb 2015 10:10:48 -0500 MIME-Version: 1.0 In-Reply-To: <1424959720-7628-1-git-send-email-dvlasenk@redhat.com> References: <1424959720-7628-1-git-send-email-dvlasenk@redhat.com> From: Andy Lutomirski Date: Thu, 26 Feb 2015 07:10:26 -0800 Message-ID: Subject: Re: [PATCH] x86: fix a bug introduced by "allocate full pt_regs" commit To: Denys Vlasenko Cc: Linus Torvalds , Steven Rostedt , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 19 On Thu, Feb 26, 2015 at 6:08 AM, Denys Vlasenko 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/