Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp924128ybt; Wed, 24 Jun 2020 15:00:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykVB8jc7cvqyT4JwDfIdS+g3vKyoc67NLK8fVC7p5uRPqJAY8CMw+74BwmtbFHkNmXWVmi X-Received: by 2002:a17:906:6d4b:: with SMTP id a11mr28094848ejt.108.1593036005046; Wed, 24 Jun 2020 15:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593036005; cv=none; d=google.com; s=arc-20160816; b=Gm9EuUoPQyXx62LFeVvZD1zKqc6m+jWfJOMxgSqSPfBe3qC+1N7D4tdZkzaiafrfSn qer5IKAhz7E+PE6/9gfSqhi36fqe2XAW1BaVnGMY/wnHUs4QDz5d4cVTx5n59EXcdW/B T2R6jPQEtdUR+z9pQ7iZLhcF1tdKgA39RkWqp5H+dBhUpSt0ACdP8hpX+o6CbfACztuQ kGuUr30xAMFWzq5x22A3jkPh6Rm4ERjuJOEWnh073UB5APTxM+4q3WIJ9naQvKRCk66C YLGAN3yV/up6ejnFsXKpfFUGcV2wl2d/zB2VhdaRFniLLzFi7X/iQnkdSGqRJyh+/Tvi nqLw== 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=zWM/30Wl1IsQgoPaDiN0rPEEBtrHBKt/BJnnp0eLWds=; b=CkVov68I5TvyROPXQtLjXY/XeUglA1P+DJN/egorssE+2ZB0nGNtr4ti2QW8A+3/SI aPiX2Wi2bkfn3QtA01VRsmjRL7gxuOcscmeaebbSEXLnwx7HYnfhnoCILkCyabKTtXmN wt2ttTfYtO5MozBv8gRvN4V35NFqmRogPLxoU3Lorl4KVQtNL020Y/YPEsJYfR6SpVUg qXh76Xh3XWooeDd8ZDAlzxfGhUm0VKxtt/x+XtABAATQgk14FMGHwyS+9/NTZArC3qR8 dorvw50ktyVMhJ9uRcdIhrf0ZIE2cb9r47UFC2NdMIstRd4fZ6ond75WoDf8vu1yKiwN yMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pd1+e0uX; 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 o11si5850138ejx.693.2020.06.24.14.59.42; Wed, 24 Jun 2020 15:00:05 -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=pd1+e0uX; 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 S2389708AbgFXU7N (ORCPT + 99 others); Wed, 24 Jun 2020 16:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391610AbgFXU7L (ORCPT ); Wed, 24 Jun 2020 16:59:11 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8675C0613ED for ; Wed, 24 Jun 2020 13:59:10 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id u8so1710607pje.4 for ; Wed, 24 Jun 2020 13:59:10 -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=zWM/30Wl1IsQgoPaDiN0rPEEBtrHBKt/BJnnp0eLWds=; b=pd1+e0uXRIvGNNQgZ7G0+2YkwsDFhSclmocO1GbaT5UM3c6xBTX7UYJjCsai0aiyT7 fIoijSJoU+eUl8voyiO0IOyBsavQt6eREqkk3whDlDlHejxDQRKECAFiVGUe/CKDHaTc EpZ2md8ULTkAVVBJ6O72PRwIcg/GiVClV1rha8JNSiYzT4/v2ecYsi++FLxwW19Hw/Gd Fr/Z+ikfp69sRAivcJnbajJT1/5/Qn2W6vWHskjofe5p2ZJr6Cthm+UKTVG2rZslsDkG xO7mHbrOSScz4BsI8HgHuMYhqH42CQPx5Ip80xrwiQdph3TwAg+m578XBSL3rfWRIGQZ ATEA== 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=zWM/30Wl1IsQgoPaDiN0rPEEBtrHBKt/BJnnp0eLWds=; b=uNySgrnGviazDIi3IS0SuhNLHG4hoaKy2tTKRufxFkIzLo0EiM2SrP8Cke2fK8w40J N8BjY8YWcNkqgHF6QvfujMZ+4Dl9qMS/2KFjScWODf1nJRvedPt2u6czsRouwSMh7IkJ y/GKhjlokESwWeCE7kOSvH7rQPKwJoh27zLoUJ1axr8gQ7Na36zTflvpgrRO/+9cF6wJ v1yspvAi56YZaOHFaWEgbuFkgtnPnDG4cPB1vcnoTs6zokwjCB1QAHY+SfsKABu8dugY Qt7PBMiEir0N5zFdtPpChhav8TQwpX0O0K3M3/NEW10W/tlc7rk5RmjoAnSH4BXdr/hE M3Sg== X-Gm-Message-State: AOAM533sVlr28Dexe3Lbj3uGIpsq5m3xDAxAy+Vdbx19MRIkTDDuiGLP HMA1NQg9OXhVkjz3YVWT8yewWWeNfufnZbEydTVSzw== X-Received: by 2002:a17:90a:21ef:: with SMTP id q102mr5252324pjc.101.1593032350091; Wed, 24 Jun 2020 13:59:10 -0700 (PDT) MIME-Version: 1.0 References: <20200624203200.78870-1-samitolvanen@google.com> <20200624203200.78870-18-samitolvanen@google.com> In-Reply-To: <20200624203200.78870-18-samitolvanen@google.com> From: Nick Desaulniers Date: Wed, 24 Jun 2020 13:58:57 -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 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? > > 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 > -- > 2.27.0.212.ge8ba1cc988-goog > -- Thanks, ~Nick Desaulniers