Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1151532yba; Thu, 16 May 2019 15:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi2HKGFwfk3niR7hQqckgybAYyBAMnxCYTLpe7n03hIoVLoQq0BXsWqxfXN9ehRxqkEDFH X-Received: by 2002:a62:3605:: with SMTP id d5mr35551716pfa.28.1558045678656; Thu, 16 May 2019 15:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558045678; cv=none; d=google.com; s=arc-20160816; b=qT7xcS78y8t3B8jxifW4Kn7JwGcYzue9x+OA7H2pRucFV00rpjHdTNNvZVU1igHNqm uiZW4Ot82G1D/ust71G0cKT1K6UV6db6kBFEZ6ncC2upshPWJC+lwsUMk0kYjk6aCLDc 8/t5tlctktGZghdDiosG2UAafuvkFQ+7nIXk/IxtWZc0ZUXgdg4XWGhdpEIOROJMtAmk qEIGOJ6UtyGa1JEoXlTiL+qo/KfR/vJHvX0+LjhJPzAPRqKoFjms7sqiN5ftK/jTzNZi mum2yLX/jXfM7iDBjDh/skSrfbogZEJaM0oq2EluBs9oWHxJoFFZmqh7QZlhkOZlGiD1 9XoQ== 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=mlYpzDmtlsvC1/mmC4ysTMSsHaOni64XRA7rkjJcGEI=; b=rawi9aBwOlipAVWdwGEOkaCASyrTFMyF7OvlbrfoEYxcHJkKezunBblKujzdBrQHsc yCJSUB1BwRC7IcF+3o/v8Z8LWmSVXfyRbjbfR2UIwkM8GCxI4gfr7vKZqc9CREPRJIsi d3IDS0alOGDNCQbKV/3AqNrWE6i64R5hM63HNNCx0KU6flvNDfvTAY2ixxateLWlS3Y0 SBV3KjwsYAgFR5IOYGDbLKz3ARSnVPE1wK3y2iVNhvwYxf/ykGG/xPvzR5CJzbyHHbRC nHSnbLtPdlyDykmrKdb7uOzsXSA12LbQC3CRozHPTz4vjhwv7zY3NxkYLAFMP+SSksXe ODLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=bIdTWxV9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si5871639plo.363.2019.05.16.15.27.43; Thu, 16 May 2019 15:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=bIdTWxV9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728300AbfEPVZA (ORCPT + 99 others); Thu, 16 May 2019 17:25:00 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:33742 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbfEPVZA (ORCPT ); Thu, 16 May 2019 17:25:00 -0400 Received: by mail-qk1-f195.google.com with SMTP id p18so2688495qkk.0 for ; Thu, 16 May 2019 14:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mlYpzDmtlsvC1/mmC4ysTMSsHaOni64XRA7rkjJcGEI=; b=bIdTWxV9bgtKvw0UhjzPSojWTBxxQMcW6TdA2vwpQAMXlUs/xTgK1R111IzVxs/XTC hj8HjQnL/ks5LMuZClq4g+ezQO6+jZM/pqmcxID7fKKX0snOVzCxnZsUTvOFdv4gIRTY aKWojmxmHiX8whwe6evh5HGOek2jta92VrwHs= 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=mlYpzDmtlsvC1/mmC4ysTMSsHaOni64XRA7rkjJcGEI=; b=jcwFdzu6Z23C9z/kFXOhTHz1qzgscRbAFIXzZqF+Vwizj6hjB04a/YwKMpg6VkPnPY O5GAQ1630zA6A+HmesOmWokUfOt2+265ImcIs44yg9yhfPu0yc57tt7WECz8QkGKySJr y4QiOK8k8zxoe6j0zXNq9U+v+iPWIbpBHNQ8ZNDz3/+KafkXEdAo/R7JN9ZKrl/Ukf+y AEFD0hwprCpM3wGne1ln7p1O+LuTIjbO9ArJ8WHYh0UwAT/ovr8YGzhcThTXsSH/zI/Q k65da9IqLR5NoQ5okaATOAZNHUJVkGAXXzwL2WClyFC4mARvaM/Kuo2uBfZM945+o2re xn3w== X-Gm-Message-State: APjAAAVKRHYRlgebJYQRV0tepCKN6qBKB0cq0TkbCJ5xNPym4ozO2iOV hQ1It2+xoABnhp59BiIlPkNuc6IO8rIBOp03URtroA== X-Received: by 2002:a05:620a:408:: with SMTP id 8mr27848609qkp.239.1558041899186; Thu, 16 May 2019 14:24:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ivan Babrou Date: Thu, 16 May 2019 14:24:48 -0700 Message-ID: Subject: Re: Linux 4.19 and GCC 9 To: Miguel Ojeda Cc: Josh Poimboeuf , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Greg KH , Linux Kbuild mailing list , kernel-team 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 Thu, May 16, 2019 at 2:21 PM Miguel Ojeda wrote: > > Hi, > > On Thu, May 16, 2019 at 10:11 PM Ivan Babrou wrote: > > > > Hey Miguel, > > > > The first error is during perf build process (make -C tools/perf install): > > > > [17:38:21] In file included from /usr/include/string.h:635, > > [17:38:21] from ui/tui/helpline.c:4: > > [17:38:21] In function 'strncpy', > > [17:38:21] inlined from 'tui_helpline__push' at ui/tui/helpline.c:27:2: > > [17:38:21] /usr/include/x86_64-linux-gnu/bits/string3.h:126:10: error: > > '__builtin_strncpy' specified bound 512 equals destination size > > [-Werror=stringop-truncation] > > [17:38:21] 126 | return __builtin___strncpy_chk (__dest, __src, > > __len, __bos (__dest)); > > [17:38:21] | > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > [17:38:21] cc1: all warnings being treated as errors > > [17:38:21] /cfsetup_build/build/linux-4.19.43/tools/build/Makefile.build:96: > > recipe for target '/cfsetup_build/build/amd64/perf/ui/tui/helpline.o' > > failed > > [17:38:21] mv: cannot stat > > '/cfsetup_build/build/amd64/perf/ui/tui/.helpline.o.tmp': No such file > > or directory > > [17:38:21] make[6]: *** > > [/cfsetup_build/build/amd64/perf/ui/tui/helpline.o] Error 1 > > [17:38:21] make[5]: *** [tui] Error 2 > > [17:38:21] make[4]: *** [ui] Error 2 > > > > I see that stringop-truncation is disabled in toplevel Makefile, but > > not sure if perf is using it. > > Ah, alright -- CC'ing the perf maintainers then in case they want to chime in. > > > If I disable perf build, the next thing is warnings like these: > > > > mm/slub.o: warning: objtool: init_cache_random_seq()+0x36: sibling > > call from callable instruction with modified stack frame > > mm/slub.o: warning: objtool: slab_out_of_memory()+0x3b: sibling call > > from callable instruction with modified stack frame > > mm/slub.o: warning: objtool: slab_pad_check.part.0()+0x7c: sibling > > call from callable instruction with modified stack frame > > mm/slub.o: warning: objtool: check_slab()+0x1c: sibling call from > > callable instruction with modified stack frame > > AFAIK those are non-critical, i.e. stack traces may be wrong (or not), > but it does not mean the generated kernel itself is wrong. CC'ing the > objtool maintainers too. I really like my stack traces definitely correct :) Thanks for looping in the right people. > > After patching that I see: > > > > In file included from /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:6: > > /tmp/build/linux-4.19.43/include/linux/module.h:133:6: warning: > > 'init_module' specifies less restrictive attribute than its target > > 'aes_init': 'cold' [-Wmissing-attributes] > > 133 | int init_module(void) __attribute__((alias(#initfn))); > > | ^~~~~~~~~~~ > > /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:64:1: note: in > > expansion of macro 'module_init' > > 64 | module_init(aes_init); > > | ^~~~~~~~~~~ > > /tmp/build/linux-4.19.43/arch/x86/crypto/aes_glue.c:54:19: note: > > 'init_module' target declared here > > 54 | static int __init aes_init(void) > > | ^~~~~~~~ > > Ditto here, those can be ignored too (unless something has changed in > GCC that I am not aware of). > > > I'm not really comfortable with all the warnings, so I stopped the > > build, maybe it indeed compiles through the end. > > It does (on my GCC 9.1.1 compiled from source). > > I am not sure what is the policy on backporting (someone from the > stable team can probably answer that; Greg?), but note that this > kernel (and 4.20 and 5.0) was released before GCC 9 did -- and some > (all?) of this was cleaned up before GCC 9 itself released, so we were > ahead of it :-) > > Cheers, > Miguel