From patchwork Thu Oct 11 15:16:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu-cheng Yu X-Patchwork-Id: 10636927 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53FD117E1 for ; Thu, 11 Oct 2018 15:23:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 421DB2BA19 for ; Thu, 11 Oct 2018 15:23:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 400732B159; Thu, 11 Oct 2018 15:23:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEBEE2BA19 for ; Thu, 11 Oct 2018 15:23:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 022F16B02A7; Thu, 11 Oct 2018 11:22:10 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EB4B66B02AA; Thu, 11 Oct 2018 11:22:09 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A1DC16B02AB; Thu, 11 Oct 2018 11:22:09 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id 427806B02A7 for ; Thu, 11 Oct 2018 11:22:09 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id p89-v6so8074236pfj.12 for ; Thu, 11 Oct 2018 08:22:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to :subject:date:message-id:in-reply-to:references; bh=Ug0e6c/ePrlKqmU4ndzY3elEK3Oaa/JjFSkVe5cWmmg=; b=HIEGW6Jv2WlGDNMwiqQNRIV736FzL5KnwGNHBqtxauKX+l4ufwSrTm3pJY4k1z+G6t IarbYYkqTlTsuGol0/DY/kIpdblv4gFiHx8nHRB1Wr4gmFHJ80TyARf0PyS+oCoLFTjQ jDcPm54Py9Y3M7z2O28wnGmVKvvgxaJlyUuko/fU4h7c77qJa1xukPSh9tCs6Loyrgci 3cMcd2tKJFfHZY4XY3okIGE9wRFWK1lETjKHMqPYwqnyEaPq6R3HklrM3hf30+FyiaVP fUJ/0K8VnYjaKaEx5tHuePvQ83ZzOk75aFq7VnXWYazcYbUy0wn4LiX60oWYrxlPJP/v y/0A== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: ABuFfogj/P5QYf4zbEEVW9zeIjZoD367gSlNE44LmsxiFGfmrEexfwwT /Z3cIxHYTb5ZnayaHf/UxUsT0LyPvhCHPYqB+6q3qCTPBO8y4xHCj0nPAwxypXWLPfR1wYayaYF PbCzviYWfiHy8Z33shf0UCX7vL6zw+HEpGtTuCGCDEenzBT27lB4V7j6PK0pfxpEsqA== X-Received: by 2002:a62:401:: with SMTP id 1-v6mr2007721pfe.236.1539271328958; Thu, 11 Oct 2018 08:22:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV614WFflJtZwFAjcVkvnS9G1tNz5oDps2P7qGP9WbLVWI8k82RiOY1277jox8fYyDACCUJF5 X-Received: by 2002:a62:401:: with SMTP id 1-v6mr2007682pfe.236.1539271328409; Thu, 11 Oct 2018 08:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539271328; cv=none; d=google.com; s=arc-20160816; b=H9KR6ozDKiZwswRMhNW/epJ1QP1OSSCzc86GCitYxOP0pYGUujq1JLBS7/Tf0AlhIX 2bgtYE2FMSllLYLI0vdvnco+fS0y+8Y4XXlHxs49lInBZ6wYM/kFE1ICE7LT6IP0K6v6 ZC0mH5a8o++oEib+8de/dkMYrk3JUVJQznKxStXwcvCsjue2lJAXz7Mc1SeB5flmOHUS 1HdFbGzNfusvOFZbcvrf3yJI88zULER9FMllhCgVIS8dfR46DTvkn9ermyqFLkzWzwun dMdN8NNjg2KGV56+cj04PyK48fQy1oKbk1j2I6gqarJCanPMxTxbic4LTy3oOR/HzFE/ tNgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from; bh=Ug0e6c/ePrlKqmU4ndzY3elEK3Oaa/JjFSkVe5cWmmg=; b=pRWyXzbP+AnADG5Dy0pKmSOh4t5uBHooDDkcxcZieeBmKqDjIEXkNoAOHDjEHmwlH8 e5Om55qJ9s36HEMtIUU1WCfahGmHDLPQXYkokJf53XDXtc8x82Abq13Oct3EIYbLn5eO dxmXSB1UfZoSXcfqOkiz53mVqn8zvNoJmH9XBgWxEMaEET5SaPDikHAs+XW42g3Jls+7 hUdaH6s0vW95x8aZhknZT/YDkrTsjEAuwOyYeBCpvWWyGiqY6WgYouNjqPWb1BG2nqGL jEezhLi9kucxSKAtxBJC4Mn6wfGsBZMv3H/2i0prf9xUOS8UnGlC0cFCIRhBIIxMhOyB LawQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga14.intel.com (mga14.intel.com. [192.55.52.115]) by mx.google.com with ESMTPS id 33-v6si28541073plh.50.2018.10.11.08.22.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 08:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.115 as permitted sender) client-ip=192.55.52.115; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2018 08:22:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,368,1534834800"; d="scan'208";a="77271642" Received: from 2b52.sc.intel.com ([143.183.136.147]) by fmsmga007.fm.intel.com with ESMTP; 11 Oct 2018 08:21:45 -0700 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: [PATCH v5 09/11] x86/vsyscall/32: Add ENDBR32 to vsyscall entry point Date: Thu, 11 Oct 2018 08:16:52 -0700 Message-Id: <20181011151654.27221-10-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181011151654.27221-1-yu-cheng.yu@intel.com> References: <20181011151654.27221-1-yu-cheng.yu@intel.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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.