Received: by 10.223.148.5 with SMTP id 5csp7693592wrq; Thu, 18 Jan 2018 08:26:25 -0800 (PST) X-Google-Smtp-Source: ACJfBotfCkts9ndEIWdeJomatbySwk8RPbzAzCoCkrkiKLK5YzrWQG6bGo8UAetD+aVNz7F53WM1 X-Received: by 10.101.93.17 with SMTP id e17mr29899426pgr.352.1516292784943; Thu, 18 Jan 2018 08:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516292784; cv=none; d=google.com; s=arc-20160816; b=q9nBmX/N9w5/vZMCfBBq5haP+jBdjzDYerPLdTW9Ho1sNsvThwdnZYKm831ZLa/b9/ uOMULMuTDruKTir0gXdOgFw/OplAL+ubkEqJErbXw+Rg2PfJGpbXTKh8oYqzOUMXkqrf FuBEvhq3RG+IRIgj5zs0dNqGny8+U/ZmKQ8cxHN1jtKAplwCsOz0+EaF5PHbOnDDzqaq YOdKJ04+munQQ35owO9P0QOt3+jSU8bpEVFuV7vAlQ3LU9AEvHVnW5ZihzMnDfIpnEwf ZCU/6jy636mTpo04xJE7hIaYsdDLJkQba2wIT9BP08BUqxPuAw3KG4B4+NgnwJZ7VVur eyAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=tBgA2Umiv7/h2j/4ZY0/gOe1jkIatn5bZ3TJArqjGJ8=; b=WzwD747QU0UyWh/CatvItskk5zhh873QafWxRjapp7ZtJDtoJoJL8UvL4SvqrgZ3OM 1dcAi1sGL2ZJOVbXACSh1K+vpHHJUQdZ7Lh4dABtgv0g6k1BWL3UCv2EWXgLr+3fmyfs MGb5MgglekfXoTvp3RIpEb1NM5YL2yshuTdTCL6oblXdQ4fLbYkZVVn2qDuUmUhKlq4d mkbWjfHPwmWWyhq9woStkqcC1Uy+Inn0XL8VurlOJXQEfo1gHkCSb1/W9ESHn6MFDBA1 RL6GE7N9U1VccTYkxKX4wKtrKl7k0qvjDcQ89gfDvaB4eZaapW3I0fRXfbpQ/MmG3b1r hWHQ== 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 y77si7342117pfj.328.2018.01.18.08.26.10; Thu, 18 Jan 2018 08:26:24 -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 S932728AbeARPg5 (ORCPT + 99 others); Thu, 18 Jan 2018 10:36:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:45826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932640AbeARPg4 (ORCPT ); Thu, 18 Jan 2018 10:36:56 -0500 Received: from devbox (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 ECC9320836; Thu, 18 Jan 2018 15:36:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECC9320836 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org Date: Fri, 19 Jan 2018 00:36:52 +0900 From: Masami Hiramatsu To: Andi Kleen Cc: mhiramat@kernel.org, Ingo Molnar , David Woodhouse , 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: <20180119003652.9842ce209b3b4aa72eb0c79e@kernel.org> In-Reply-To: <20180118130157.GE7844@tassilo.jf.intel.com> References: <151627684798.24682.2979775081582774869.stgit@devbox> <20180118130157.GE7844@tassilo.jf.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Jan 2018 05:01:57 -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. Yes, I've tested the kernel with CONFIG_PAGE_TABLE_ISOLATION=y. As David pointed, maybe all those points are using JMP/CALL_NOSPEC macro directly? Thanks, > > -Andi -- Masami Hiramatsu