Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3307318imu; Mon, 19 Nov 2018 13:56:28 -0800 (PST) X-Google-Smtp-Source: AJdET5ddjEWwNYuYBi/9N+GiwGCLTsamGRwanfjXFoSby2RhOxwJzzD3K7GJ/GcWZzQIiNaOpGsC X-Received: by 2002:a17:902:b104:: with SMTP id q4-v6mr24299441plr.5.1542664588354; Mon, 19 Nov 2018 13:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542664588; cv=none; d=google.com; s=arc-20160816; b=Wla3+R43ZzEu1sQ1icFSsp/ungs1mgerkfWCpGtTq8pWH1mTsCMcwmmmvDxp+CYI4W ++8ZW2hft52Az/uR85f/X9chtbgzz2zjGkC/mxL+Lvyc7t6bjmWYL/1W6WJbxCCqYXpe 26NVgsRak5rsmy8j3PBlEFx2CqNRIVVDmRirYYZiqXzvJu3VRRFboNO4SMhznK9fcym8 uHg4by2xKxs0GlRLvf2V6aN/1HD+/S43IaCAT/hfiFLRslJStXTe1ueP59/3YTZB/kFL TM0wOqiOLlld2UiucurJG0rvRAU3mgTZZ/zSlBiP2NR0/k5Y8vVFvowU2M96+vCkz+Zx bTJw== 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:to:from; bh=3ugSYk0cuonbsBh5Oq+uwsNMoaUkt7zsjtm/OCNTtIE=; b=v6T5cuGNUDUxm2zWoQBNL85nW12HgN/BjKWj3JIrS9vAGW6J0Xf3dpZW8m1Dukmi/K KT90xsbpSck8R89a20HPORaD5Bhq/npEdHqRfJpWGLg9X8TNCPJ8bkc1d1OQvI7j8NTc dPlEOeAEVD4l/j/Pz4yW1VLs/J1ONl4lDF9gmZ3MFb/u8Wqq/f4TvcNi4YZrepz/TBV9 cWrOMVj80ya83bpfriyC7cpSadPdIe4QtTUy4flrdNs5bd1e5xevJVFUhN9EBxp9449M Cq+CxSICokkdZOjDZ1YTAl7igoS2iqyG8YMGkEapoh34uaQbwWGMXWs4g6M4+riu8Fs5 N5gw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1-v6si40115083pll.325.2018.11.19.13.56.13; Mon, 19 Nov 2018 13:56:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731847AbeKTIUp (ORCPT + 99 others); Tue, 20 Nov 2018 03:20:45 -0500 Received: from mga09.intel.com ([134.134.136.24]:32114 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731793AbeKTIUp (ORCPT ); Tue, 20 Nov 2018 03:20:45 -0500 X-Amp-Result: SKIPPED(no attachment in message) 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; 19 Nov 2018 13:55:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,254,1539673200"; d="scan'208";a="92423933" Received: from yyu32-desk1.sc.intel.com ([143.183.136.147]) by orsmga006.jf.intel.com with ESMTP; 19 Nov 2018 13:55:03 -0800 From: Yu-cheng Yu To: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: [RFC PATCH v6 10/11] x86/vsyscall/64: Add ENDBR64 to vsyscall entry points Date: Mon, 19 Nov 2018 13:49:33 -0800 Message-Id: <20181119214934.6174-11-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119214934.6174-1-yu-cheng.yu@intel.com> References: <20181119214934.6174-1-yu-cheng.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "H.J. Lu" Add ENDBR64 to vsyscall entry points. Signed-off-by: H.J. Lu --- arch/x86/entry/vsyscall/vsyscall_emu_64.S | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/entry/vsyscall/vsyscall_emu_64.S b/arch/x86/entry/vsyscall/vsyscall_emu_64.S index c9596a9af159..08554445bef1 100644 --- a/arch/x86/entry/vsyscall/vsyscall_emu_64.S +++ b/arch/x86/entry/vsyscall/vsyscall_emu_64.S @@ -18,16 +18,25 @@ __PAGE_ALIGNED_DATA .type __vsyscall_page, @object __vsyscall_page: +#ifdef CONFIG_X86_INTEL_BRANCH_TRACKING_USER + endbr64 +#endif mov $__NR_gettimeofday, %rax syscall ret .balign 1024, 0xcc +#ifdef CONFIG_X86_INTEL_BRANCH_TRACKING_USER + endbr64 +#endif mov $__NR_time, %rax syscall ret .balign 1024, 0xcc +#ifdef CONFIG_X86_INTEL_BRANCH_TRACKING_USER + endbr64 +#endif mov $__NR_getcpu, %rax syscall ret -- 2.17.1