Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3355566imu; Mon, 19 Nov 2018 14:50:04 -0800 (PST) X-Google-Smtp-Source: AJdET5e8FwOCuI3NgxOSGT57WZ0yrYU+5e2ao9ysJV+NPHIMRhjoHDP9Nr6z0yhz8CsGW98/yY4n X-Received: by 2002:a17:902:b28b:: with SMTP id u11mr24415022plr.57.1542667804290; Mon, 19 Nov 2018 14:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542667804; cv=none; d=google.com; s=arc-20160816; b=V7Bg2gjFD8B48+SLo8K3GWCVU/KHhnA93sbKW5kJQPt3D+SVFjLuCEGDOsExR2vsOB ka1F89MW/EnmrTFTDrn7VuxSTDnAf6rcE3b+sjITOdRemLKW3Drhb/etNS2A6ImM7YvA l9tXTBbT8rchm4WnhnRPJTgFwEKDNigDHEO49wY1oU72K1Ep+xIg1gYUBt4aJSqxkUOV OFvvTQk5UB1cDY5W0VshcrCfQ+jCj4tfmLcto1VTtzJtzjHulryLEt2uUE9OB0iQojt2 jVC6PXdA9mE/JIW8T2dTNkvOGQHqfOBVS48pIF5cxAjlQvrKiWWU2CRiStbCoL/wgGIB hOKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=OpuSwCSF/3suJ8/P9vMlOe+9jLAp2Xzr18aWsCV1gM8=; b=KGAV2CRxOZpdZYePibhqZ7RV99S9HJPApmX1GmF043VRTiVoTVHUx0JJiBNzLELNvi WKqJ47Rs8gSq3bnWpUdHQPVRwLetULe6YR7Wuewpl8SaQvMyOa4TZnih0oaunxV9zXYB F6dN9UsT+ygZuuZ3XMTU7UhGrIRz2JMAsVzb3myy8r3Vvx29JQPSSniOqwL+ZesetiWF qEw72AyMW31vKFPzpdbk0SncqqpjClhbB4WiGO+ICtEfEUSbiIQ5Nv9L+NLDtZiB8VvM W68lWCXQTKttGj2b/ke9hIeV55lh7wDUF+KBVNgJYCQYCa6TwEQDJPumi8oXKY2j+nSU lEwg== 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 s4-v6si45622633pfb.188.2018.11.19.14.49.49; Mon, 19 Nov 2018 14:50:04 -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 S1731768AbeKTJOn (ORCPT + 99 others); Tue, 20 Nov 2018 04:14:43 -0500 Received: from mga01.intel.com ([192.55.52.88]:31026 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730419AbeKTJOn (ORCPT ); Tue, 20 Nov 2018 04:14:43 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 14:48:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,254,1539673200"; d="scan'208";a="93332282" Received: from yyu32-desk1.sc.intel.com ([143.183.136.147]) by orsmga008.jf.intel.com with ESMTP; 19 Nov 2018 14:48:48 -0800 Message-ID: Subject: Re: [RFC PATCH v6 08/11] x86: Insert endbr32/endbr64 to vDSO From: Yu-cheng Yu To: Andy Lutomirski Cc: X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , "open list:DOCUMENTATION" , Linux-MM , linux-arch , Linux API , Arnd Bergmann , 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" , "Shanbhogue, Vedvyas" Date: Mon, 19 Nov 2018 14:43:31 -0800 In-Reply-To: References: <20181119214934.6174-1-yu-cheng.yu@intel.com> <20181119214934.6174-9-yu-cheng.yu@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-11-19 at 14:17 -0800, Andy Lutomirski wrote: > On Mon, Nov 19, 2018 at 1:55 PM Yu-cheng Yu wrote: > > > > From: "H.J. Lu" > > > > When Intel indirect branch tracking is enabled, functions in vDSO which > > may be called indirectly must have endbr32 or endbr64 as the first > > instruction. Compiler must support -fcf-protection=branch so that it > > can be used to compile vDSO. > > > > Signed-off-by: H.J. Lu > > --- > > arch/x86/entry/vdso/.gitignore | 4 ++++ > > arch/x86/entry/vdso/Makefile | 12 +++++++++++- > > arch/x86/entry/vdso/vdso-layout.lds.S | 1 + > > 3 files changed, 16 insertions(+), 1 deletion(-) > > > > diff --git a/arch/x86/entry/vdso/.gitignore b/arch/x86/entry/vdso/.gitignore > > index aae8ffdd5880..552941fdfae0 100644 > > --- a/arch/x86/entry/vdso/.gitignore > > +++ b/arch/x86/entry/vdso/.gitignore > > @@ -5,3 +5,7 @@ vdso32-sysenter-syms.lds > > vdso32-int80-syms.lds > > vdso-image-*.c > > vdso2c > > +vclock_gettime.S > > +vgetcpu.S > > +vclock_gettime.asm > > +vgetcpu.asm > > > What's this hunk about? We used to allow using non-CET capable BINUTILS and the Makefile would create these. I will remove them from the patch. Yu-cheng