Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1132706pxb; Fri, 13 Nov 2020 05:13:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhlrir7m2Zrs7JqGJ8HsrNmL2o+r31pxPQsElrzrwkm8m25kafPUxd+g5PIDQMsPbHjflB X-Received: by 2002:a17:906:6a15:: with SMTP id o21mr1755852ejr.305.1605273229360; Fri, 13 Nov 2020 05:13:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605273229; cv=none; d=google.com; s=arc-20160816; b=d5IYGilnBrsWQTlGYdzDt9+gGUx2+MDsEZewlU3DGvjF4igQKBOOIDzIQJwo0RyTq7 a/lUMIwktKUULcx+xHH6DLAHF72NauYxnkNcre4ZlhIsChocQ24j8H37T62fosZ4/4ez 5w3S2HOlDPnKZ3M2AHtre00GfhFcAMoIlMG4TMuIRgTQFvl33VoyfB8hp8Fxc5+bEg5o mHPMTQYxWb6edi9Z1OMa4vG2XNh3R5Wsz5k940kSzqwD+YZOAZ3C3bL/Y0eAzWMPxPl2 6bCGxsXtrVLu7fpEcmnz3PJvTdxwZ4tLYapALvhWh0Q2HBYjZ458cwo+MxL4l3II+gOj WXTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Q7M+DxrO3rg2YjOYa315fOFRcOUadpolkfvfOqE0UMU=; b=ssP2zHZMtL+nkL88bwXSSOIGedsb9W0JQERa+qHXUV9+bCmi6ORZLLdV0Hrj1ctYoW nD54JzPFFAV82Hyy4JJmvOgQXQzovd9KfF0+hYLUwgL2raqFAMaFjfD4smLN7siVrnAx qPUygJg0A8x5bxpHzRdvkbAs/mVS6r+LVaAueZOmGXyStkswRFKqmrqEDJDvxtWXGjWJ nmNGHh9Bohjs4DjZfxlxO/RQxNLKaNO0JASGprAqcr6JC9sNhpz3xRaIszWerS0cB50T MroGy3AKmJfBct4TTYGHl30N1RG0b4c4GWNJyQalzdZ3rXXqj83LQ+Dnv0HGEifXDsXU Ge2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si5855042ejx.98.2020.11.13.05.13.26; Fri, 13 Nov 2020 05:13:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgKMNKL (ORCPT + 99 others); Fri, 13 Nov 2020 08:10:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:32890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgKMNKK (ORCPT ); Fri, 13 Nov 2020 08:10:10 -0500 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E7423208D5; Fri, 13 Nov 2020 13:10:08 +0000 (UTC) Date: Fri, 13 Nov 2020 08:10:06 -0500 From: Steven Rostedt To: Miroslav Benes Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Peter Zijlstra , Thomas Gleixner , Masami Hiramatsu , Josh Poimboeuf , Jiri Kosina , live-patching@vger.kernel.org Subject: Re: [PATCH 3/3 v6] livepatch: Use the default ftrace_ops instead of REGS when ARGS is available Message-ID: <20201113081006.00c350c7@oasis.local.home> In-Reply-To: References: <20201113020142.252688534@goodmis.org> <20201113020254.023201106@goodmis.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 13 Nov 2020 12:31:11 +0100 (CET) Miroslav Benes wrote: > > +++ b/arch/x86/include/asm/livepatch.h > > @@ -12,9 +12,9 @@ > > #include > > #include > > > > -static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) > > +static inline void klp_arch_set_pc(struct ftrace_regs *fregs, unsigned long ip) > > { > > - regs->ip = ip; > > + ftrace_regs_set_ip(fregs, ip); > > You forgot to update the call site :) Bah. This would have been caught via my full test suite, but I only ran the cross compiling tests :-P Thanks, will fix in v7. -- Steve