Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp992587ybt; Wed, 24 Jun 2020 16:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd/XkcxLXfetUKksBkcU+n5ox5+x04ZvYd3ktpEn8tpm4gfFoYW0K/XWt0CbnsPmM6LI9J X-Received: by 2002:a17:906:1697:: with SMTP id s23mr9477772ejd.166.1593042857566; Wed, 24 Jun 2020 16:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593042857; cv=none; d=google.com; s=arc-20160816; b=T5bDfB9s93OTdS05UHavqDqKBF9ArugMuNlilbULKn2Uo9O+V5TF7Fs4GFR0IEubV8 DYfREsUbTD5blLUEBkhPyweWS447dMdk982cjPMZIPOgSaFRJ2WtBFYUDXFo1ful2UoN pP1BibHj2JndHMOmZJfFVTpEZs7eWB/vI/mMnccRrz0nOWNyn6/HIaX/E3g4oQ6hc9l8 2k1xTpNRowqN1C/qobG3Vy9OxwjkA2caW8wRethxlavTefw0SiYuwD0ufawDchHV/YQE h/bAI8Q4MN+r7iDs+xsn9oR3zTx2XDqyrwEtDWMN6liH/Dz/uaSmetufW/zJw87jB2NV ej8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=Zo6TrvrdjyodrxzHJi5V7NwgpSm6ez0vMNM6Xs5Q4uI=; b=MscuxIm/ncXQf78sKH5vTILPkxWcFINFLCPIK8YCtDtV5jma5qSkd6TKxta00u4/Kx Fc06wp+jMszOx2B197WTgDpSWZPv61vnNMTf4uqhqfZ1tN316cZSR5AUV66/Ex5ITHjm iuh6nQvhS38m9MExk58n4rYys3QifAjPYWCHXJ6bkY0F1sGErqTfNHWTOkK5BXzpTamM OrcjRvNCNsO35vzRSYmO/XH/Fc5u3S8h2CWn6cBqced2NnNIxFyvCKEnCVQ35DtyJVre vGMNmgQFO3/n/Pn9h63GMw9dPm6RL71xbDkCIpLWs5igvleQfTXVebczv/q3P5gZh+hP 4F7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cy13si9278913edb.388.2020.06.24.16.53.53; Wed, 24 Jun 2020 16:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388204AbgFXXvp (ORCPT + 99 others); Wed, 24 Jun 2020 19:51:45 -0400 Received: from mga02.intel.com ([134.134.136.20]:34743 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387959AbgFXXvp (ORCPT ); Wed, 24 Jun 2020 19:51:45 -0400 IronPort-SDR: 6bUtqBjrs5r3Q6hd6HO10rsF2QBhhBW7nqIP4BFE5JSMtcGkS+AUvjdbRAIpjSJkLnxv9bRI6F HHlRGb+LAKKQ== X-IronPort-AV: E=McAfee;i="6000,8403,9662"; a="133107161" X-IronPort-AV: E=Sophos;i="5.75,277,1589266800"; d="scan'208";a="133107161" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2020 16:51:44 -0700 IronPort-SDR: aIRwRfjfYOdQKt3phW/InEgXxtOGI/IQstcHLZdz056+zuNv6rXZAztOwLlpT5Cd5ScDQD9lHH /YX4kqyPmgHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,277,1589266800"; d="scan'208";a="423544015" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga004.jf.intel.com with ESMTP; 24 Jun 2020 16:51:44 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 463F2301BA1; Wed, 24 Jun 2020 16:51:44 -0700 (PDT) Date: Wed, 24 Jun 2020 16:51:44 -0700 From: Andi Kleen To: Nick Desaulniers Cc: Sami Tolvanen , Masahiro Yamada , Will Deacon , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , Linux ARM , Linux Kbuild mailing list , LKML , linux-pci@vger.kernel.org, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH 17/22] arm64: vdso: disable LTO Message-ID: <20200624235144.GD818054@tassilo.jf.intel.com> References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-18-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 02:09:40PM -0700, Nick Desaulniers wrote: > On Wed, Jun 24, 2020 at 1:58 PM Nick Desaulniers > wrote: > > > > On Wed, Jun 24, 2020 at 1:33 PM Sami Tolvanen wrote: > > > > > > Filter out CC_FLAGS_LTO for the vDSO. > > > > Just curious about this patch (and the following one for x86's vdso), > > do you happen to recall specifically what the issues with the vdso's > > are? > > + Andi (tangential, I actually have a bunch of tabs open with slides > from http://halobates.de/ right now) > 58edae3aac9f2 > 67424d5a22124 > $ git log -S DISABLE_LTO I think I did it originally because the vDSO linker step didn't do all the magic needed for gcc LTO. But it also doesn't seem to be very useful for just a few functions that don't have complex interactions, and somewhat risky for violating some assumptions. -Andi