From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: ACJfBot0btoIst3iQGRxIIfqcepUFo4MS4twJXneLTZ2e6937aa/xMydelUtxinJz01p/9SSjBSs ARC-Seal: i=1; a=rsa-sha256; t=1516289815; cv=none; d=google.com; s=arc-20160816; b=uN4RzRIsQ0Z3zCHSbDn2LJktf2PIJrPU/S2S+mSw+x15lkquhzQaxx73yl99ewVZkF /McaxcvMsrBEuhkfQ/X8b5zZuPNvaJro1xP45aXd5WDZiktnwm+0m/venGB0bqE03o5z DNbkkMP/vv63CrRZa42Dt8BzWUhSne7220qwI9H5+e/57UOB193r8IQuaFpzL6bFEWHX vxS3mtVIstDEZdVUEteu1iOrJ+fobZm9r/0Mu0WAF6AF/uFBJuASRm0+EiWlx+Sz43yg V0m7zk9/8vaFz/ASi2qd19BGnax/9G34/LBTU70R5YCMzsE6UmiquQbOUUkQypTtGuUx 0sPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=DoRd3zwCxoQk8nFH3xPUvnw+ETbQYZun5KGGo6Z3RRIxFqwx/5qH1tGeXA1YjDu5My JpwYunPImPLZf2Lktq3UYKQJs69W50RfV1tkW43mscs9fdcRD1SKCW8X1msT4FuPcl66 IPZFo61PA/BsyJtjGG6vLTAV9jaCgMCPbvfFLkkUAht3lcoCXvIngPfSbjDbfYBsSZ6K cn6tcsV/QGNN9m+fde285QWiBewN0y9ZepHMNLMXB+EH8iJ+Vnjov2OlhN93TlfIZuuJ VE0fYvL1wNfk6e5W6B/w67uNSUpiKaGW1L++cjRWyA950FgnRzMspj3Igr0zZ+HebHxT oYyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of mhiramat@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=mhiramat@kernel.org Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of mhiramat@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=mhiramat@kernel.org 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1589931539308254743?= X-GMAIL-MSGID: =?utf-8?q?1589945109949566601?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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