Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp925923ybt; Wed, 24 Jun 2020 15:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUBDaPk1BIlRQW5+4+krVmzU2Cxda7dpMhUwL7HNJuc66E8GvTlMfj03HlWeXsASMujVkd X-Received: by 2002:a17:906:2bd8:: with SMTP id n24mr28477442ejg.83.1593036136824; Wed, 24 Jun 2020 15:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593036136; cv=none; d=google.com; s=arc-20160816; b=YqLbN/PnWx1HsPSPlOUqD2IBGNTKCzP+87Wdfb9xdKFo3ldXTr+mrfdmopivPQt02e O+/w/u1SEvv9sL2Sz7Sys5Wgrm00xy4ofUhkusmFO3/CLHeN95DmFg2uNOecsPoIVTWw uukTI2PNt6uMZbLXjqdiPyWGOBqhzbuTY+6r7ZSAgdkFKzDWxkdtlk1lZi/rKAzk4jRz u8DoAZu6Gq72HRh59xum2ghIpqPaOA2vGFeYkIqRZyJp4HcZjJ/bwXlRq7TKIxXEczcf TctP/2y8r62emN44adWsaKz2v1gEk4zqD7MVAugNYrEjzpxaFigyfLQotSeEPMi3KtR0 DJIA== 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=i2jIkhYgexjs9KkwlPySDcA/4RhGGwlAKSrpoMnhGmk=; b=zABbVCfajm6EMw4TByiHuHUzM4Yx8ETJADODiVHNufZ6yhXK1cKjPw++vDjjPwyue5 7vcned7MFUZAa8KhAgMCdDhwo2pbuTAME58i+GlsM/KGG5Ls/XGXLQjo0FFYjqdVjKju 9Z7XFirtGPeBeVdWQtwCB6A+vfTvGkkEdXcRv3XBA7KOg5FdfrY3QzmTflN4vsGe8gi/ V0HiJPo2qgCudhEu/7uQoJ6deK5aFUXq8nY4WiapogF3iseOX4llhq7ZZNMLtc3GjOGe T9IUOcXo+jBaucwfJvBH6F3Nrty9HQD+/Tz7GwL+6VH3va9SDuzdpLW6hbZk0RC3xlvV pi0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ulgAO6ky; 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 j21si13351320ejm.613.2020.06.24.15.01.53; Wed, 24 Jun 2020 15:02:16 -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=ulgAO6ky; 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 S2390004AbgFXVJy (ORCPT + 99 others); Wed, 24 Jun 2020 17:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388453AbgFXVJx (ORCPT ); Wed, 24 Jun 2020 17:09:53 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31FBFC061573 for ; Wed, 24 Jun 2020 14:09:53 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 207so1615403pfu.3 for ; Wed, 24 Jun 2020 14:09:53 -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=i2jIkhYgexjs9KkwlPySDcA/4RhGGwlAKSrpoMnhGmk=; b=ulgAO6kyxk2umRKRWH6nMJnay5+JI9S+MN+66ac15rcJgmGZtAYk+H5+fPCQqHCN4n YwMVU0XBQEhTdVY5OHD749qpd8Pozz/SM+1Buf2jPE/xGsC+B8G3MYh7c8rCA848s7mL 3wpkBMp2MTJmyiCiTEBPNG6vBbmHu+xghA1mKpCcjOJyJnqEFuFwGJ/pFH0IcAb5JQC+ A2lLOE//kF+ciANNdx3Etcs1w4HXCok/pytM4pC9m2UbLu8T+ZNQiWPiX0fGAsI8+xBJ v8AHa7fV3npUoZ0xdjzOFVVo0SV0pKjAQOJojHM+9coxAbL/MqHPcTuHuRnLuuT3AK8g iPTg== 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=i2jIkhYgexjs9KkwlPySDcA/4RhGGwlAKSrpoMnhGmk=; b=t/olefxXObuT7kJr4EcFYUCKpkNEqKbMj50OfrWJvq2KWQ0KCmHTNRh/3rEc2IWsP4 s2+oyS2ORPqN+H/nb5IUbgWFVif2MiBJqFo+f0DiMg4lPMFe2V18Sd0/S725n8Pid6vI i1uZF+Mu7LXRDjFM2d3RDhQiCWir+LNWkZGjAo60TnRykUHjzo0qpbud6mZ6c4nawClS UJ8d4XtKUejevN60mKla0but0bg0TuTl5AZ7DH4vp2lyemx8AIyt10vK4hIsf+M9sJT/ yeUS9YhrfszuuCd57DxP1dwtEI3g0dY6msRLaXe/k9dzecZjUr4GiUYDgWOCo/qss7pT m+ZA== X-Gm-Message-State: AOAM533nR9A4vSQU3vNVQ6x7z1hkxNgDUz/IbAHaKbdC0ytvunHiwf1S H7z0JLIYGvsuozA7XH2grTU3yqWKq8v8GYMFiH0LgQ== X-Received: by 2002:a63:5644:: with SMTP id g4mr22699481pgm.381.1593032992558; Wed, 24 Jun 2020 14:09:52 -0700 (PDT) MIME-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-18-samitolvanen@google.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 24 Jun 2020 14:09:40 -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)" , Andi Kleen 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 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 > > > > > Signed-off-by: Sami Tolvanen > > --- > > arch/arm64/kernel/vdso/Makefile | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile > > index 556d424c6f52..cfad4c296ca1 100644 > > --- a/arch/arm64/kernel/vdso/Makefile > > +++ b/arch/arm64/kernel/vdso/Makefile > > @@ -29,8 +29,8 @@ ldflags-y := -shared -nostdlib -soname=linux-vdso.so.1 --hash-style=sysv \ > > ccflags-y := -fno-common -fno-builtin -fno-stack-protector -ffixed-x18 > > ccflags-y += -DDISABLE_BRANCH_PROFILING > > > > -CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os $(CC_FLAGS_SCS) > > -KBUILD_CFLAGS += $(DISABLE_LTO) > > +CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) -Os $(CC_FLAGS_SCS) \ > > + $(CC_FLAGS_LTO) > > KASAN_SANITIZE := n > > UBSAN_SANITIZE := n > > OBJECT_FILES_NON_STANDARD := y > > -- -- Thanks, ~Nick Desaulniers