Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3858020imm; Tue, 29 May 2018 15:25:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLsvTPBbX9qA6qu7yIOHhzD/fjEMwojz8G6Y9BY/7zW3TPMjgKmbbUduiQ8VjFj2u/kQnmE X-Received: by 2002:a62:c4dd:: with SMTP id h90-v6mr247720pfk.86.1527632704188; Tue, 29 May 2018 15:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527632704; cv=none; d=google.com; s=arc-20160816; b=HYw/9xO9FoVJSB+4fdOin0ujXl2M9wpVQ9icIS6OqD4eUAHyh8ALH3guQLf5cAVJIt m2S4s9dPc8dUSc77vHvBZUV5q7yEh5T8GxHXnNgfgQZ7AYFpdIstz/7fjl96UnQgJByV C5YMgpTx/LKtt6mF0Ve43uxTBJrEgVY2t9qHCRiCIarR51HocID2CJ5EPK5W5B7dkL3I /cW3WBh5nXD4k5qHm/V7W2lKE93+KhazZ3I9P2phBAtCrtu6+OZ42jQnkOPfKQZKKi1Y L90sTlfZPKFqYkDxIqY94Hoycz2yqPlnikyDNc0baT2yrQC7H/quiSV22a0CC1RiQze6 kKTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=FkgBrqjaxySnb/T3c2nfDLlpi5HRvkA08r+jhNToquY=; b=R0fnzy6RlBBHJsJrNcUIXFGdGNf7mcEj3C6E0a+QCnmpF0faxL0+Iv5fPNMivUQQIL 6+BDJHCr5OlauZ8dQBWZ5z3RWOM4Ys2iY8Wmg7s7rTPi/mlbpJw6R0b+NAcFZY6TgdW8 mJB9AZtd6EIBGMyQzP7LX6I9oLtDqGBv4oDrnc7qjXg9Cvbaajhjm8U94p4IXX4IYSte G54zBrP9QWqAx8F84WSMR2Qzlx/FSv5zuoZ+h8KeHsCRTsaVFVbEr6krqK6EQhW5jEri FAwWWeLhkNOcjqVjknenNdaCwwpvlNl6i6kb2NQM9kxNFmfTMiqzKqWlsujP/JzaG+Mb d/2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FEqMCxQw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k70-v6si26508980pgd.22.2018.05.29.15.24.50; Tue, 29 May 2018 15:25:04 -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=pass header.i=@google.com header.s=20161025 header.b=FEqMCxQw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968427AbeE2WXd (ORCPT + 99 others); Tue, 29 May 2018 18:23:33 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35650 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966322AbeE2WQ5 (ORCPT ); Tue, 29 May 2018 18:16:57 -0400 Received: by mail-pl0-f66.google.com with SMTP id i5-v6so9770148plt.2 for ; Tue, 29 May 2018 15:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FkgBrqjaxySnb/T3c2nfDLlpi5HRvkA08r+jhNToquY=; b=FEqMCxQwma785pIFU2cxh5/nPo2cqs/AZAcn57cmSxfAALpM/LgrHMltJ1O35+XqVr VteMgrIe/qrnmUR9jLyzRsEdlqkrFg8vgJlKPtJPgz+6oOMFMEiEMj51PrNA6h3+o7eF HDVR6gVbVtYQoVTZA66YtH7lmPU9pUlQsinwKNIBFPbmqgc80x4euEN/YL18795DPvuv tQ6LTHidciJHt8XmUmZMSUTkiPAr90VkD40gWq8dIPTCsBoS2/p0PIeKXmemOKrsQUOW 18RVFBqZSlayDhTVNf3ZUmhPTy4FGobVzM1elpudUlDD46OvUMKYvaKYnxepaeOoOf/p 2cJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FkgBrqjaxySnb/T3c2nfDLlpi5HRvkA08r+jhNToquY=; b=n5ndpdqj0SBJCC3jIWNmapgt0GtgAQVqetZAVIvtghqN9MR/aI91lY/3/j1UO7JiqB Co+t7dtELEe8pvlGQGS3q/+KL9AmtbykNMrJWASC2tCpVo/5zWA+g0u4CYJhdqSFCuRM fE8I4BglqFQTpDc/F3F/qtQSAtt1Ym99Ybq+KcbZZX/k+2GyKg+8WDEy6Fgb3AYbkeUp Vfo51vIds80UXTCk1X9NI2kOtmyzSFC9uVdnPbDtZETm6ZnZTpl6Urn4mURA1fcoaoJe OtTgC8Jt1gX09lQKpTYeMd3vcPXqat7RAt1n7Qe4NWAImfus5GU7EvJkR5mw+kgrXrPD yhLg== X-Gm-Message-State: ALKqPwdnHsf7Pxe1Gdd28ez7VXiJ1swXif7Uh2JbiHm7wNugXXAZV3yn riraZDcvSqZcAPHK0lm72+lpnQ== X-Received: by 2002:a17:902:5382:: with SMTP id c2-v6mr198396pli.335.1527632216897; Tue, 29 May 2018 15:16:56 -0700 (PDT) Received: from skynet.sea.corp.google.com ([2620:15c:17:4:29de:3bb1:1270:e679]) by smtp.gmail.com with ESMTPSA id o84-v6sm78767935pfi.27.2018.05.29.15.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 15:16:56 -0700 (PDT) From: Thomas Garnier To: kernel-hardening@lists.openwall.com Cc: Thomas Garnier , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH v4 07/27] x86: pm-trace - Adapt assembly for PIE support Date: Tue, 29 May 2018 15:15:08 -0700 Message-Id: <20180529221625.33541-8-thgarnie@google.com> X-Mailer: git-send-email 2.17.0.921.gf22659ad46-goog In-Reply-To: <20180529221625.33541-1-thgarnie@google.com> References: <20180529221625.33541-1-thgarnie@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change assembly to use the new _ASM_MOVABS macro instead of _ASM_MOV for the assembly to be PIE compatible. Position Independent Executable (PIE) support will allow to extend the KASLR randomization range 0xffffffff80000000. Signed-off-by: Thomas Garnier --- arch/x86/include/asm/pm-trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/pm-trace.h b/arch/x86/include/asm/pm-trace.h index bfa32aa428e5..972070806ce9 100644 --- a/arch/x86/include/asm/pm-trace.h +++ b/arch/x86/include/asm/pm-trace.h @@ -8,7 +8,7 @@ do { \ if (pm_trace_enabled) { \ const void *tracedata; \ - asm volatile(_ASM_MOV " $1f,%0\n" \ + asm volatile(_ASM_MOVABS " $1f,%0\n" \ ".section .tracedata,\"a\"\n" \ "1:\t.word %c1\n\t" \ _ASM_PTR " %c2\n" \ -- 2.17.0.921.gf22659ad46-goog