Received: by 10.223.148.5 with SMTP id 5csp7898103wrq; Thu, 18 Jan 2018 10:51:39 -0800 (PST) X-Google-Smtp-Source: ACJfBovIdSL36owzaiQkE1ZdSrv+o1ZKNgOYjzn8ejvORSCePSjICXtPMAYs0+SfPsuXHyEI5wJL X-Received: by 2002:a17:902:8544:: with SMTP id d4-v6mr253363plo.167.1516301499495; Thu, 18 Jan 2018 10:51:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516301499; cv=none; d=google.com; s=arc-20160816; b=h+1Q1TEVkoK4U8g5xG+xwjJgkAMt6okkW+ZRdvXWxly0ES9bcdQc5kHxOMMX8FxU6+ gRA2RaS6hrp1+aqVZZ458NoUdXpvtTEVJ8+SkxnPLFbuy7SHouo/E9yQkNibgFw4YW7y bypR8JN47U3PRUi52B/65Se8kX8zaWYMm1ezGxyLJbkrT6wNe+0WomX3Ut7TlLVZsz+R TVLghDWG53FUx2uej7rcimv8UmP22VyZudAvJVHkQmK9Pp+TJlkMsE7TNG2J4pRLcs/u QnPFYoCeYXhAV0goOKjp9vdScn9xokW0iZ1hNXD/npfXb8s/HHmLWYwUfqmNrfjghch/ QYoQ== 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:arc-authentication-results; bh=lsChI44dFmOE/aG+bWx4rtYpFRdRUewNKKaYcF31/To=; b=r6GhrIyeQEpJV4R4p994eOC59E9qQQ1250XSntxIlKhb8+vQA00+EIih457NZXnjAz lhabcTpw0ilTkdMI/K4NcgqPDGLzAzdMHFaLjeyLv5NaCllIu5yiwQZpCu9njqmbsrG5 kHkFNTr/BuDhv85MBUrK76Q9tZtQnH4nZhNenJPMkuaBJmbxho/8tlRbb1qKkxbUdLv3 W7D6qNjJ4/ieRfq+KFtAEMwqXA5/uO5MwtitMCqM/fvxRnaWEeppgX3q8+XrhMg5KoRk Ql59jmxCmCF0qYZ/Hj+LnqCug5w3N1w3iy11VNOgC+I4lUrdC8ZChdCuxZ/UfpLBvNyk u9jA== ARC-Authentication-Results: i=1; mx.google.com; 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 68si7414864pfx.384.2018.01.18.10.51.25; Thu, 18 Jan 2018 10:51:39 -0800 (PST) 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; 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 S1755804AbeARSu0 (ORCPT + 99 others); Thu, 18 Jan 2018 13:50:26 -0500 Received: from mga09.intel.com ([134.134.136.24]:36520 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbeARSuY (ORCPT ); Thu, 18 Jan 2018 13:50:24 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jan 2018 10:50:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,378,1511856000"; d="scan'208";a="11659057" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.35]) by orsmga006.jf.intel.com with ESMTP; 18 Jan 2018 10:50:23 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 4F690300352; Thu, 18 Jan 2018 10:50:15 -0800 (PST) Date: Thu, 18 Jan 2018 10:50:15 -0800 From: Andi Kleen To: David Woodhouse Cc: Masami Hiramatsu , Ingo Molnar , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Arjan van de Ven , Peter Zijlstra , Ananth N Mavinakayanahalli , Thomas Gleixner , "H . Peter Anvin" Subject: Re: [PATCH v1 tip/master 0/3] kprobes/x86: retpoline: Fix kprobes for retpoline Message-ID: <20180118185015.GF7844@tassilo.jf.intel.com> References: <151627684798.24682.2979775081582774869.stgit@devbox> <20180118130157.GE7844@tassilo.jf.intel.com> <1516280587.4937.128.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516280587.4937.128.camel@infradead.org> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 02:03:07PM +0100, David Woodhouse wrote: > On Thu, 2018-01-18 at 05:01 -0800, Andi Kleen wrote: > > > > > > Side effect: [1/3] will move __x86_indirect_thunk_* functions > > > in kernel text area. Of course those functions were in the > > > .text area, but placed in right after _etext. This just moves > > > it right before the _etext. > > I assume you tested that with page table isolation on? > > > > The thunks need to be accessible from the trampoline. > > I thought we put it inline in the trampoline. Yes we did, just want to make sure everything still works. If it's tested that's fine -Andi