Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5291526yba; Wed, 8 May 2019 10:46:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbESCAJhLpdj5NInZ4BYB0Q4Wrl4Kx0aQEjVjllEgo6SyyM1KwwxzNSAm/WfZbD+vb+Ay1 X-Received: by 2002:a17:902:5a2:: with SMTP id f31mr48739655plf.119.1557337618587; Wed, 08 May 2019 10:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557337618; cv=none; d=google.com; s=arc-20160816; b=SK5FZ7S6V0dfDMHatQy5lgnVD4stQZYHTfGPFeY52bclxtjHNct7f7clCE0f9sBnEV /Z1UnQfFCLUjkSHbUPfOuehrgO4zI5cYw01C0MmDaJZC9GZBcLbfrqD6DgxyI/5c1hLK zj4A/LLi3qWSNFtH+H/vsQgbyEvz3m2L6jsaTSao5dRv2YnwrOYNhDQVMKWWuoKZTxkG tb2FaH04nOLsrfQ9RSE/K5RrhIL4T4LsewHLEHsbWh3XaLR32G2hNATJkRpOg8+f8kVI 85oSLvdv8CFlY8mQxVWw3FPCz0Vit+lEc/v/o5C6E8saSrphkxvhY4jqaO12B0GWHTcH c5HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k1/lM6ktqQzSWbUrYqk0UYWJVHJ+bpIMtuRzd2CzIks=; b=wJ+20nKIduqywBow87dRLxVMPcpJJb7NfPYg/05R4vt0tEjwE3x/RKHewUUlLSsqiV Wod6xVoJMHMJuvrvEp7//8Oqq9GbP+JOv3dU9BkbDLphxeWkWpXb+8DemrmEIg+mnAr2 enn+7ZCFFs/7SLmaBkr708VXO+LOxDDl+zH9njhe5KLSjLYOEc5vbgiKqCQSvsZskUrm Oe2MDH9zeYQgWBzuM+bg7Z5QL/NfhTlegINSnfdtKsmN/tUyyPGkXrDIfemGkItJ4EVo L+vAFYIBQIfVgAC25JU2YBqPOmBxiP+5HZYdvsFfT3rJkjouS1WlywgynGMk5cqHwDKc Dmzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZFktwume; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si11691741pgd.155.2019.05.08.10.46.43; Wed, 08 May 2019 10:46:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZFktwume; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727257AbfEHPjX (ORCPT + 99 others); Wed, 8 May 2019 11:39:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37526 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbfEHPjX (ORCPT ); Wed, 8 May 2019 11:39:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=k1/lM6ktqQzSWbUrYqk0UYWJVHJ+bpIMtuRzd2CzIks=; b=ZFktwumeG0jB3w3wR6cmfn4JA 1XnP3Fl7t0zBUdeNg0zpRYPdM1oz0ROABIRlp+utJpSq2zFcPO1vBV1j7qCywib5yvUMrA2AAhA/J 5rio3Y6X4xLxjaYm/5FKou70esWVOogOvKYtx8g2ad7HcHkwKSJVB14E8GLUf23Fj/3dfsUfbII1h +NV22Ro0+hXdnZfcoqJbPT0NUurtdrPFrQZ3Y+cSv8dDqa5nYSZd91/YzymOvCJaSSWZj+os/il4J 2xMb+CSvKLxduRspW4N0wThdLPlJo6ggqUGaq5aIOdcnDk2R3KqRslQJ4dVDwZuxYcW3Gl6xmkwtJ mTldAF8sA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hOOey-0007ct-UH; Wed, 08 May 2019 15:39:09 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 412492029F888; Wed, 8 May 2019 17:39:07 +0200 (CEST) Date: Wed, 8 May 2019 17:39:07 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , Andy Lutomirski , Nicolai Stange , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , linux-kselftest@vger.kernel.org, Masami Hiramatsu Subject: Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations Message-ID: <20190508153907.GM2589@hirez.programming.kicks-ass.net> References: <20190508074901.982470324@infradead.org> <20190508080612.721269814@infradead.org> <20190508115416.nblx7c2kocidpytm@treble> <20190508120416.GL2589@hirez.programming.kicks-ass.net> <20190508124248.u5ukpbhnh4wpiccq@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190508124248.u5ukpbhnh4wpiccq@treble> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 08, 2019 at 07:42:48AM -0500, Josh Poimboeuf wrote: > On Wed, May 08, 2019 at 02:04:16PM +0200, Peter Zijlstra wrote: > > Do the x86_64 variants also want some ORC annotation? > > Maybe so. Though it looks like regs->ip isn't saved. The saved > registers might need to be tweaked. I'll need to look into it. What all these sites do (and maybe we should look at unifying them somehow) is turn a CALL frame (aka RET-IP) into an exception frame (aka pt_regs). So regs->ip will be the return address (which is fixed up to be the CALL address in the handler).