Received: by 10.223.185.116 with SMTP id b49csp489510wrg; Wed, 14 Feb 2018 02:11:51 -0800 (PST) X-Google-Smtp-Source: AH8x225BGXI3VdrnKgmDyGHwXGV98TCJXaG0aKFUTMz/ZidpHTgGmJdX4kJ/COwKXo2UVWhR+ea+ X-Received: by 10.101.78.12 with SMTP id r12mr3486988pgt.33.1518603111886; Wed, 14 Feb 2018 02:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518603111; cv=none; d=google.com; s=arc-20160816; b=B1uAjiwdkBL3s0uFSisNDXb/HZV9Z3MQQl1+aBEpv703+lh0OHekSmXeThU/YMetbc 9tgD7GHFU5AbjG/+fggWgtlhSpQcJimgdfl+s9hX8B6LGXUPM0hYFRex4XgTLNSAofXN ruR1j6aiIm2EOj8z1wWMJRN8lJJBiS4zgvG1rliwe0NFlrSLvqKCufMR41yFZ5lsZyHd WAXX9epIJ8J3T7NxmTehoWAqDCZp7u5LEoiC2EisZlqYuBbFsFuGX+VXidFAdU0qFTmU C2IcswGdQNd22skNUTJBTtp9s7w45Th1RzY+WnVgu0HL7AK+IYqNIkQ5Z6v/hMo2lgHx tGLQ== 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 :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=7ZIB0CyVHiIF5T6npbcUvrIupi+oraN4EJPjg9XGhaA=; b=RpSxb4iw3PebzJCP6pFi2bC5zSYWAej4Ci4gE68NUl5QgYrGlftUTsIFXsfwca2JF9 IoFHRlHa9pTRuAOZzXppOe/HdrtQmlIIWnVNpsLyo46u2C8z2YIueHqQ7mJHmEd6WBPv GeyuX3XulneBOYxgbI2INAbsBSowIj0X838djhmp7FLwM6jyoaRCfteh0RRTzA1w3L1G JOIl0t1REcMFPcBzXTha7sZwQh/fXXIVFa730M0U1zLmp0s93tH5QKU+nMR6owkIECJD HsUA/ExzLOtj/OROJum91YkpqIHALCv6Eiwq+n/WYD4d3JvOsLyYeK19UNgFnxIHzkn2 0vmA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t128si2011135pgc.600.2018.02.14.02.11.37; Wed, 14 Feb 2018 02:11:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967114AbeBNKLC convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Feb 2018 05:11:02 -0500 Received: from mga11.intel.com ([192.55.52.93]:35320 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967046AbeBNKLA (ORCPT ); Wed, 14 Feb 2018 05:11:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2018 02:11:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,511,1511856000"; d="scan'208";a="34591952" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 14 Feb 2018 02:10:59 -0800 Received: from hasmsx112.ger.corp.intel.com (10.184.198.40) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 14 Feb 2018 02:10:59 -0800 Received: from hasmsx107.ger.corp.intel.com ([169.254.2.32]) by HASMSX112.ger.corp.intel.com ([169.254.11.127]) with mapi id 14.03.0319.002; Wed, 14 Feb 2018 12:07:44 +0200 From: "Yatsina, Marina" To: Greg Kroah-Hartman , Chandler Carruth CC: Kees Cook , David Woodhouse , "Kreitzer, David L" , "Grischenko, Andrei L" , "rnk@google.com" , "LLVM Developers" , "ehsan@mozilla.com" , "Tayree, Coby" , Matthias Braun , Dean Michael Berris , "James Y Knight" , Guenter Roeck , X86 ML , LKML , Alan Cox , Rik van Riel , Andi Kleen , Josh Poimboeuf , Tom Lendacky , Peter Zijlstra , "Linus Torvalds" , Jiri Kosina , Andy Lutomirski , "Hansen, Dave" , Tim Chen , Paul Turner , Stephen Hines , Nick Desaulniers Subject: RE: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support) Thread-Topic: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support) Thread-Index: AQHTpSrRc0Tf36QxBkW6ZxMIE0y/9aOjiI5w///q3ICAABP0AIAAIjUA Date: Wed, 14 Feb 2018 10:07:43 +0000 Message-ID: References: <20180214095308.GA16956@kroah.com> In-Reply-To: <20180214095308.GA16956@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjg4NTU0ZDAtOTA5Ny00Njg5LWJhYjMtMGRjNzUzNDIwYzRkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJGb1NzMU1raDNTYWZrejFybzlRTkF5b1kyQUpSVjJMYTFjZkJGQzhPUGowQkNEUFwvRDRhNFJqN2hFblhKVndodCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.185.126.126] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I believe we do have the infrastructure in llvm to implement a working patch. The "asm goto" was introduced as a solution to a problem (optimizing tracepoints/ nop patching). When we started the discussion in llvm about adding this feature, questions arose if we can design a better solution for this problem than "asm goto". You can find a more about the discussion in the llvm community here: http://lists.llvm.org/pipermail/llvm-dev/2017-April/111748.html * This is the middle of the thread, and there are more messages later on. Thanks, Marina -----Original Message----- From: Greg Kroah-Hartman [mailto:gregkh@linux-foundation.org] Sent: Wednesday, February 14, 2018 11:53 To: Chandler Carruth Cc: Yatsina, Marina ; Kees Cook ; David Woodhouse ; Kreitzer, David L ; Grischenko, Andrei L ; rnk@google.com; LLVM Developers ; ehsan@mozilla.com; Tayree, Coby ; Matthias Braun ; Dean Michael Berris ; James Y Knight ; Guenter Roeck ; X86 ML ; LKML ; Alan Cox ; Rik van Riel ; Andi Kleen ; Josh Poimboeuf ; Tom Lendacky ; Peter Zijlstra ; Linus Torvalds ; Jiri Kosina ; Andy Lutomirski ; Hansen, Dave ; Tim Chen ; Paul Turner ; Stephen Hines ; Nick Desaulniers Subject: Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support) On Wed, Feb 14, 2018 at 08:41:43AM +0000, Chandler Carruth wrote: > Marina, Kees: > > I think the combination of LKML and the LLVM developer's list is > probably too large a set of folks to have a (somewhat) lengthy > exploration of options and how to go about this and find a good path forward. Why is there any need to discuss "options" here? What is preventing the implementation of "asm goto" in llvm? Is it the lack of a working patch, or something else? thanks, greg k-h --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.