Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp985641ybt; Wed, 24 Jun 2020 16:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIyOPCrITH33DDveR22xJDPorI8yFcX2Tn3Hf18T0vm3jBBMLTt38r1ewjHIwfBoDZDx0H X-Received: by 2002:a17:906:4cd0:: with SMTP id q16mr18693804ejt.418.1593042036858; Wed, 24 Jun 2020 16:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593042036; cv=none; d=google.com; s=arc-20160816; b=MAtdjAWAgS2KcOIvFy4uWpeNS3VRUSh/gm6uOVt1Mf1s2uAYIvmtA1hJ878JSYRPGC UgHbY6j8w10z2ODbzmMgj+PIsqGPOS9YP/lVSXWRRi1nsjA6M3yMNZ7jOpUK3tqZENnz 2cxM6bpTUNJr+tPpBbtqhlmskjRhTDclAh9FY4AlWhvDF7PQZvlfcvBgY3jKmDdgNFkj z62dkiRQf1c3oqFL0inPTy4gtKsENspBlrLI6ta95iL/g7VVS33kPUnVfLN1UNuLPVn4 iUnxKMwIQRgTLtli8CQ3hjZ4BhhKoYYbot4kVaJH3QXc+M3doBRJKGsd3P1Iyv6Hrr3s ib/A== 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 :dkim-signature; bh=OXwCzf5B5Vnc4rPGARP7edsvVNysUhYzQGqjGFLfJUg=; b=hqSknJPUhGpTM1Qic9FX77W7FL7w3iDZS+L5K2+p8jbXv5jQ/Tdbq1JhilKPC53R1q NC/VFYXiKfTYO4aHb2LpOzDLwI2XI8kOKGoUYM4aPRtZaLTLav97hchnvUGPBXmYMvif Xa7HffPLrKEiUs2pP+rBaDohxwaXe63ZJvUVwxHf9dnzQpcKKTIyt6iXOhpapKoFf0Nw +S3U0JSw/P8isPv1sGGolypQSrCeIcmEoufC8nscPAvhvXdSP92WNTHT1H/CcSXowZ78 ly3VBrd59lfnufLlgAQX7nMumoiMuP/nHhYk7g6lAJ5V/rTaPKeLvj8LNarhi9TvN2cs aAyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eJvh37nN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l30si16325759edj.499.2020.06.24.16.40.13; Wed, 24 Jun 2020 16:40:36 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=eJvh37nN; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388099AbgFXXkG (ORCPT + 99 others); Wed, 24 Jun 2020 19:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387638AbgFXXkF (ORCPT ); Wed, 24 Jun 2020 19:40:05 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6794C061795 for ; Wed, 24 Jun 2020 16:40:05 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id g67so1411421pgc.8 for ; Wed, 24 Jun 2020 16:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OXwCzf5B5Vnc4rPGARP7edsvVNysUhYzQGqjGFLfJUg=; b=eJvh37nNRJoXUBuIREWky64c/2Zy+QfsGiyybHo4/AY79kM2WK5DCWQ2SFWNIlhRqR uvyBfk+MP4VctCsNpVpZcmoQSq5Bq2w+lQM6xBkh25apGFZZlExegOU/Xa4ZzLv1+QGo 2SZwCYjmMFcvWre4jkB8JFSvGQLtaMZLbShuOQoeq/pW5jRL7ENSqIcZKBium29PAxHa SUKoF/TCC6EPkmXpV56a4eqzpU85/8BnY0vmWySOQ6P4JhiJF+3GTW6JN67+OxEwI6FO 083DgLg4vlRvZAYijlbkUJhYrikRhcAUh0cGmqJe8b/JYcwRofo02mXuHf66C14NJXzV SJRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OXwCzf5B5Vnc4rPGARP7edsvVNysUhYzQGqjGFLfJUg=; b=RvOx7cbBPE3lDjR3p99eQ51PXPXm9gWUEtXNrjFs9dvssSrWOkQ910i6HbhdNcQSSg o54DuQ50ajbbRfSA69tkCCvHq3pxtVxPBMDJFAlwUTFxZEzZim9O2e9d9BAMl9efAedA VGK3nOo+REOp/c8ls+QrGy14IsKqkMKnwX3lSQCUywCj3pBFfKztwoikva+1nD/6Vtum vSEOyaueW5iChpjUfs8/3WmnQonNJci64lzPgSMbxGHBTAEIuHuJf7ok8qxGpm5XungK V6WJk+aPnb5Tc4ymBG7pJ3RJA6FW2qfn3vNyB+kvLdX8hNPm46emaBRMCsMTz2nEfW4L Akbg== X-Gm-Message-State: AOAM531FFICZySLYmzR5o1h5oQdStZH318wBALXYm6o7XCw2FC/5hmIz rq+mw95K1gTTsaqkM6TbOOI6WA== X-Received: by 2002:aa7:9289:: with SMTP id j9mr33592532pfa.124.1593042004835; Wed, 24 Jun 2020 16:40:04 -0700 (PDT) Received: from google.com ([2620:15c:201:2:ce90:ab18:83b0:619]) by smtp.gmail.com with ESMTPSA id mu17sm6845223pjb.53.2020.06.24.16.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 16:40:04 -0700 (PDT) Date: Wed, 24 Jun 2020 16:39:59 -0700 From: Sami Tolvanen To: Nick Desaulniers Cc: 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: <20200624233959.GB94769@google.com> References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-18-samitolvanen@google.com> <20200624215231.GC120457@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 04:05:48PM -0700, Nick Desaulniers wrote: > On Wed, Jun 24, 2020 at 2:52 PM Sami Tolvanen wrote: > > > > On Wed, Jun 24, 2020 at 01:58:57PM -0700, 'Nick Desaulniers' via Clang Built Linux 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? > > > > I recall the compiler optimizing away functions at some point, but as > > LTO is not really needed in the vDSO, it's just easiest to disable it > > there. > > Sounds fishy; with extern linkage then I would think it's not safe to > eliminate functions. Probably unnecessary for the initial > implementation, and something we can follow up on, but always good to > have an answer to the inevitable question "why?" in the commit > message. Sure. I can test this again with the current toolchain to see if there are still problems. Sami