From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CF3EC10DAA for ; Thu, 3 Sep 2020 22:43:39 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id 6EAA820716 for ; Thu, 3 Sep 2020 22:43:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Gv/ffUiV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6EAA820716 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-19768-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 7457 invoked by uid 550); 3 Sep 2020 22:43:31 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 7419 invoked from network); 3 Sep 2020 22:43:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JQ91+76gyHMY3xv40LcJfL22rVwnSHEWIrs+JY61Lfw=; b=Gv/ffUiV4cHAcDklljNvHcMHuBcglanuZNKtn6NOLTMdAobfJFLi4S3XUK/VF0cMoa YCSlZMjLzO+hSp1mb2H+OVfbR2yXR8wtEPXnlt5uMI360+iCnjR0H3cIuzPcnksebXGK d93lpCoPbskfIrQ+gg8nraNFnKZGq6Pjaz6ts= 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=JQ91+76gyHMY3xv40LcJfL22rVwnSHEWIrs+JY61Lfw=; b=fnn4q3JpkK3DzR8YtqvN72cwXk4ssaNO/WjOhS0UAx3beqgifmHuq7vgayJDCY+1Qa a99e+IJuMK20hW7V6LxotAbVIZsF3PB0Q7bcHDyyYab1dZoIJpXgQ2ioO5A42AsGGeEr j8+Dv/UoCyNWTPPveuRvIku8paYOhu1ug7CmkPgST4zra2lKIjHFYV3AYt2VvzUsVoge ff1D6RD0m1q4ZzHNXv3xuQIBXONNUWL7bNbSCATKlh4xTdQHlHatsE4y98NphuUh+ybw c0zmZOvdfp1zdHJLO9gZmG9m+3G5tx+eAXNNk9cDge+hLnLAoA409C+I37P3XIFCJLjl eMDw== X-Gm-Message-State: AOAM531XWEmJY1OlJgh368I7cT11uZyl8xoVk0MabTqaklrCKURcGU80 4+36ab6YTfZuBXGZUxqJOqTNiA== X-Google-Smtp-Source: ABdhPJzsDxL6JJKJu36vJnlttgHabnBSHn20nTl7ZGP5hdybfETsgZLi8FgY6Utuj7Ord6vXDPO70Q== X-Received: by 2002:a62:4e49:: with SMTP id c70mr5965062pfb.100.1599172999617; Thu, 03 Sep 2020 15:43:19 -0700 (PDT) Date: Thu, 3 Sep 2020 15:43:18 -0700 From: Kees Cook To: Sami Tolvanen Cc: Masahiro Yamada , Will Deacon , Peter Zijlstra , Steven Rostedt , Greg Kroah-Hartman , "Paul E. McKenney" , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 19/28] scripts/mod: disable LTO for empty.c Message-ID: <202009031543.A239909B@keescook> References: <20200624203200.78870-1-samitolvanen@google.com> <20200903203053.3411268-1-samitolvanen@google.com> <20200903203053.3411268-20-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200903203053.3411268-20-samitolvanen@google.com> On Thu, Sep 03, 2020 at 01:30:44PM -0700, Sami Tolvanen wrote: > With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object > files. As empty.o is used for probing target properties, disable LTO > for it to produce an object file instead. > > Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook -- Kees Cook