From patchwork Mon Nov 19 21:49:32 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: 10689585 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 12FF96C5 for ; Mon, 19 Nov 2018 21:55:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 042F52A583 for ; Mon, 19 Nov 2018 21:55:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC2E92A6EE; Mon, 19 Nov 2018 21:55:58 +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 8BA1C2A583 for ; Mon, 19 Nov 2018 21:55:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AC7616B1CB9; Mon, 19 Nov 2018 16:55:05 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9D5726B1CBA; Mon, 19 Nov 2018 16:55:05 -0500 (EST) 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 852AD6B1CBB; Mon, 19 Nov 2018 16:55:05 -0500 (EST) 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 3DBC46B1CB9 for ; Mon, 19 Nov 2018 16:55:05 -0500 (EST) Received: by mail-pf1-f199.google.com with SMTP id p9so15752146pfj.3 for ; Mon, 19 Nov 2018 13:55:05 -0800 (PST) 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=QzQtpjQe3zdHSwxTNDsqHRV+RMsNKw8ARpNsRVjm1Z5IqobWo2ydQunL/dGGvAE00X Xp0eRHRMoBzvon5VDpP8r7K5MptLb2dRktboeNWxE3mz3S9naFm6n3nGPvSKcMuNmlwh SAJcP1yImFJKNNOjo3PGbzg6iORbS7drOFZ9YjhU5X8SDd+nh5T6w+iuCgrdn2J7b7eA bqBoh0YWbB3Vok836AJ9kgFZOFqnGADUK72m+mGLOSZRaOeZE+IxnmNrV35dVJKAzBvJ sX/IBWGnTeWEU/p/UxkrrUv7KqZNNtC000v6KFvPmAN8ZF24eMAlU2kIHHf9nDFsizo7 cL6Q== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 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: AGRZ1gLOYi0M0v5FbFOjG+ZdIDxROb5xS7ZTKVjvMaZGwAiIaBgf+6+E U5bfsaHx/bz39edchGf6UWnXEVV5PyXd+2VtKpeFg0nhsUtjGlzTui80XzMSmET1SvhlIWcJHyg wzigaz7K9fY1oV4b00K07Uwsb4QWQIpgJoeEN+TQsPXd2H2A0U616omxy8+mL5LQOTQ== X-Received: by 2002:a62:9302:: with SMTP id b2-v6mr24739174pfe.108.1542664504935; Mon, 19 Nov 2018 13:55:04 -0800 (PST) X-Google-Smtp-Source: AJdET5dDOGu8NO6pgeonTYviNW4bkxjSD1rJ0bB8TqApMgh3/nU90rhEL2kASDt/9M2iZe4BXbgS X-Received: by 2002:a62:9302:: with SMTP id b2-v6mr24739137pfe.108.1542664504274; Mon, 19 Nov 2018 13:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542664504; cv=none; d=google.com; s=arc-20160816; b=btu8ksiZlduB9QNRxApM2qYa2+mjPCB2qmbaDSSfDfkkvtt+2lRLeQnny0sE5uqF4/ P0Cq225nTtUUSQdnrODp7DGO4q1v8FGa9OhcU5sBvKnaMItA/2MhNS1/smHAfhNHq0PK JJRwlYBQTTFa3p/PkvJ8TowOKYei5bMJoKmxglJvzsQTiPRmENKSU8RiGlqCpM8Ca44J 9/t47S7EghyqeUjgEUl9FlSnzIkDslBnOqZwEm8uM6EgNDt0eB2K9fEM6/84ukDskNT1 LpZQyhHg8ZLgLv8/hGur9MwRy4tt3/MHgd7lvURh0dJInO5njPVZgh3Vf8BZdH8dV/31 m6DA== 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=uulPVE6sX1PhwH9AM9Bnd7w4hFeZiywaM0O55YSqifOm5RyhCXhwhShb3gktuqPNnf MblR5XrbAvoFfkoet7aIGclt2iulGHi7wH8nTNJDxfloT2H6mwMQTk89i3IlCAVuCEQZ 8qnToPgLkG5/l1gcxul999N/J7bLW+wvgI0tPMw6l1cYynYLK4gTGFG3HLNjJlUmIDGk 1U9cq6MWUvkZXQzzp8JaDcs/PSMvNf6ZiGFPmArCYg5ec7kmpbfLDlXtS1fTXtU+o4l8 bAsXLNKgaW+9OjOKt+BXwkE0sQ+qBQYmTbpkuEZqsH5xmnWAtS6TLbXjQpE+9vxvrIyD oeyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga11.intel.com (mga11.intel.com. [192.55.52.93]) by mx.google.com with ESMTPS id s8si4586261plq.345.2018.11.19.13.55.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 13:55:04 -0800 (PST) Received-SPF: pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 as permitted sender) client-ip=192.55.52.93; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.93 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 orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.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> 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.