Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp965624ybt; Wed, 24 Jun 2020 16:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZMpKgR1pBhyybuG9WtX3jF7nQguHD0cE3UJWca4gfXuu68M5lpHSBfdckPB5XvzXsyJve X-Received: by 2002:a17:906:95c2:: with SMTP id n2mr25806011ejy.339.1593039991324; Wed, 24 Jun 2020 16:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593039991; cv=none; d=google.com; s=arc-20160816; b=agtY/3UVEoBF9L1gimdTQh3TKyNE2FYLh7b41ff3M5FJr9jsvu4IFdrurnEUzXEhM9 8vxP99GcRvn0No757y7k0nZWDozA30mVvIql2DZXDrwwqbd5AgJb6RWA/3ovcYoRidHL e/Z3wZpca0gGSSsyXfTSUS1a3gFNPGHP024amFv0wRJkirp40bNKsSbIz3BjmE0Ayln1 Z4WjPsGp9+7Vh+sitDtOd1p/dB4qHI7icSN6F5Xc9mmnaXU/18QgZXY2e1u4M8ce9OnC HO+nbjXUa6J9qmuXuZuKT5jjT/96CmH4ULIBDdnpOK0isE4I6L7W7hlqjwnCVsXnQkxC hPKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=shst53ZJE1d+vIhz2clceIGi2VB/auhmYdgL62EAsJA=; b=rhTgxIUKfkSFIwMQkgrePCyKeQd6Zyw7hu76/W+3+Olfr42WTjkjI4EEeKYEL3VPuo /m6TzHZoFOsjoGZoHz8l4YHt7KBi2bWrG39jeePCmexuUp9rlHE9E+RuWSTuiBPcD5xZ b+Tbtxkg9WAMLq1rApuEAjpAs6hi0oSRgRtbKLA41REbv/f/2sa3XRT6CBf3jtksCtTi w/mwQpxQNw4ImbKmtQYN/w7u1lPvZ8OpzCxY2opAlbJbOJE9NpXU+wdug8BjwxqNYZL9 nR3qykfQ2zKbnxbgigRcYo/gEwdkJByfcCV4NnE6BJm6N74VSg2pOKgtVaAZTc5ifvDd ZdhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="v4eMG/3r"; 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 e24si3129691edv.342.2020.06.24.16.06.08; Wed, 24 Jun 2020 16:06:31 -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="v4eMG/3r"; 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 S1728399AbgFXXGD (ORCPT + 99 others); Wed, 24 Jun 2020 19:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728035AbgFXXGB (ORCPT ); Wed, 24 Jun 2020 19:06:01 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B540BC061573 for ; Wed, 24 Jun 2020 16:06:01 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id s14so1807720plq.6 for ; Wed, 24 Jun 2020 16:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=shst53ZJE1d+vIhz2clceIGi2VB/auhmYdgL62EAsJA=; b=v4eMG/3rTtJikwtUeVEWC+d0Ch65aCTzn2lI4XytauNvCzrEjxfgA6aO+yV6VxXBx3 mb6CDo0wNoFZ1v4nkYj+/6EWy37Ni5nLIOMzCNLEZ2dadozowAf9iZnCoXAn7+HLcyE9 RoOT6e38CrOgiSMwqrLKdO8N7M+/LB2H0MPGEArcqToIp05l+M0z0UH0D4sz1uNsTgmt 9mmpfTiacr3PdC/F4zU2Yb9SYNEeuuG0ifqnJKaNC2BdOBDaQw26XwaMnJ0wHebahY7x fvvlvTbNep+cdAWoA5BqhP7JrVtoCYLEUqHK25wchmImEauPU24++/TQpkcZFXvICfaj +O3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=shst53ZJE1d+vIhz2clceIGi2VB/auhmYdgL62EAsJA=; b=BDaEuATUx0rgHbBWWvaJ5kwPSHNEgyzCvqvGUNEGufIpWJJfSfTduAU8N0a/wXKrwN V3CeGVdFjxLmMarmICNdDETXhQTaUm0HTg4KDlIwa7M0vOCQotG3wfaqWHiaLCt1GDeo s6vWZDaK1zoVss5ghNtXNoYKwNR1wUNJIIOteRNeB3+hMGKTl2+YsMH/j89xa9jOLrou xyYQnygA8y6hvnTh0nFQGsiu0cTyhEwjwRWt6D1rYlOGZQug4xqTbF1aqTKHSdn6rQAu 9jZ9YtDOER76krVJhnFFNMWCTfRVOXyc/AqK58FT8Kx4/WFb4XIOfdaYpF2/DxgPD+vx OKhQ== X-Gm-Message-State: AOAM533nRY+vhbySr48+iiUQaaaK0ucEt8BKj3H5TXKWWHIg5wARFNwJ VeZiLQRIDbDY9GqFEd89dhkquwuWCRdpcl+6eA2N5g== X-Received: by 2002:a17:902:fe8b:: with SMTP id x11mr30115455plm.179.1593039960944; Wed, 24 Jun 2020 16:06:00 -0700 (PDT) MIME-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-18-samitolvanen@google.com> <20200624215231.GC120457@google.com> In-Reply-To: <20200624215231.GC120457@google.com> From: Nick Desaulniers Date: Wed, 24 Jun 2020 16:05:48 -0700 Message-ID: Subject: Re: [PATCH 17/22] arm64: vdso: disable LTO To: Sami Tolvanen 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)" Content-Type: text/plain; charset="UTF-8" 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 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. -- Thanks, ~Nick Desaulniers