Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3308459imu; Mon, 19 Nov 2018 13:57:53 -0800 (PST) X-Google-Smtp-Source: AJdET5ccjVk0EAonyanMZBrFpysnTX08p54jfqA3ByCkAuQKRXXleohv/QCucPsfYiLvQldTbCN2 X-Received: by 2002:a63:a16:: with SMTP id 22mr21750482pgk.318.1542664673849; Mon, 19 Nov 2018 13:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542664673; cv=none; d=google.com; s=arc-20160816; b=zX+jMRbvmFRa+xfB3yixf0iq/Wy6i1QH78QJJlrR4fBh4386RWR0d6Yj5oBuv4NbuE hJNfMNR3+DMa8NY6FapmasqjTYS5QVH8RsR6KE0ZZbwfSfaHRiJG6pOuSb15LXhVJFe9 4rDwjBcize6WLBNQR4OnCOnEwAvcxDyAC2BTf4a0iyQ8ldgdZ7GRYAuSCRq7Tm4HaO/1 afhy/Kvq+YRSMoHoBUUMICAvdK3RNxvzBOdeIrbBvV8CqLpuJ/meiZata6FGNGge1pxy 08X+BIae45MYZxPuIPq2XtmHrwQXXiUoRRcN0G2opl+kx2VEQ2VzukRglXvOuZYugpfB WiyQ== 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=Ug0e6c/ePrlKqmU4ndzY3elEK3Oaa/JjFSkVe5cWmmg=; b=F1Luuq8JyQUXmV+jWysihK01YqxDFDPgMXnaZyGv1bGFDP9483SP020h/Jy0patUhS la9GgyrUlFnlu7xksHW4/R8Ih1OT/rzJCAcsb8HIEzxFw9ue4YDeKNGySad+vXu5mvCC VWPLTdeuk17jZwyh/knf0eCtUtJ6+zaluWX8/JgVor0FMiFDE0TfQ1fEjsv5RWH9v5Vu qi5Swpa8DFvTr3q4oZFQWCzOIzebxMdYsXaX1BeEy7Dd4Q2RuZ0S8e9LE48fadQFHfzf 42F1Kaiv2vIOuhA6sQHQogCpW0uYy1mmozOM4VATiVZDUP5/Foawa0xFEq909W7mmtsi PVLw== 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 r27si40397514pgl.494.2018.11.19.13.57.39; Mon, 19 Nov 2018 13:57:53 -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 S1731897AbeKTIVG (ORCPT + 99 others); Tue, 20 Nov 2018 03:21:06 -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 S1731816AbeKTIUn (ORCPT ); Tue, 20 Nov 2018 03:20:43 -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:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,254,1539673200"; d="scan'208";a="92423926" Received: from yyu32-desk1.sc.intel.com ([143.183.136.147]) by orsmga006.jf.intel.com with ESMTP; 19 Nov 2018 13:55:02 -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 09/11] x86/vsyscall/32: Add ENDBR32 to vsyscall entry point Date: Mon, 19 Nov 2018 13:49:32 -0800 Message-Id: <20181119214934.6174-10-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 ENDBR32 to vsyscall entry point. Signed-off-by: H.J. Lu --- arch/x86/entry/vdso/vdso32/system_call.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/entry/vdso/vdso32/system_call.S b/arch/x86/entry/vdso/vdso32/system_call.S index 263d7433dea8..2fc8141fff4e 100644 --- a/arch/x86/entry/vdso/vdso32/system_call.S +++ b/arch/x86/entry/vdso/vdso32/system_call.S @@ -14,6 +14,9 @@ ALIGN __kernel_vsyscall: CFI_STARTPROC +#ifdef CONFIG_X86_INTEL_BRANCH_TRACKING_USER + endbr32 +#endif /* * Reshuffle regs so that all of any of the entry instructions * will preserve enough state. -- 2.17.1