Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2753529ybt; Tue, 16 Jun 2020 14:20:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpF4YiSp81+4kkbVLA45XshpPqL96CbbBz+rY1SpkG7wHHjhWP1rHEeJfUfUESo9ntwgpg X-Received: by 2002:a17:906:9243:: with SMTP id c3mr4550922ejx.400.1592342400289; Tue, 16 Jun 2020 14:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592342400; cv=none; d=google.com; s=arc-20160816; b=ORA/nxbhncDe0PBu4BBLypzHyGiUHzGVf3MFRdV2S+QyT0laK3E+BW8rS0XlZvk/VO 8VP5k62OfgDRe4dlPsJj/WwpPE/I5+rjr41gwyUdfJTI15CgwNkhWO0kvHF386x9i9hS rRiN2DZVk4HIO1qxxtC4Ap0BsETaNCk6E5hy8jDVGVykI1kIr4LGQdFXfsiPyMWPw9/w A09Wkols6XqAYnd13pApQGUwubJenevrAxnmw7IOz+EMswqFOG5hPYbQ4UOIE7sw89Ow X01LxefG48KUolUtDLXRLOxYzYoFF+AJiJyabWlX+/Od6wFl3JalPW09kKmyeQbPZs1n VbGg== 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=rZrMRZK+NBwpqKVitehAL9xTIrDppW8h8HoB5F49GD8=; b=QIR8gKLnpDKIQ7a7CXdfvxY5FmkxgYLh1OLrO1JlZLEAEI2Ui6S0xFtTYwV7aGVVU/ BCH7ICOQX2/gs/35BVRa967tnE7ZJGF1UBpScYMWY+e3DhQX3gtaiYpOgYi44hgcmzIP c9pF7FcbKEcrmvtfScsz3JfvMIQAWaUT6TidZ13P4uaMkXQoT5/Qam32lxlsca6cHjRQ FFHaR6ioNGulbiwFtovGyqOJV/+xa/R+ucfJ+rbQIEVUj80nP4Kh81oVN+ATufGQt4tN INPQ08bXzp6uKsEBQ6c51f5MoEn1bNUmwOsKTmRTJrhDkmu1FkDJxkTAB6+cb/oiDo2D NW8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=I+zYwfyH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn10si11753937ejb.680.2020.06.16.14.19.37; Tue, 16 Jun 2020 14:20:00 -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=@googlemail.com header.s=20161025 header.b=I+zYwfyH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726448AbgFPVRi (ORCPT + 99 others); Tue, 16 Jun 2020 17:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgFPVRh (ORCPT ); Tue, 16 Jun 2020 17:17:37 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEEEEC061573 for ; Tue, 16 Jun 2020 14:17:36 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id d27so8054536lfq.5 for ; Tue, 16 Jun 2020 14:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rZrMRZK+NBwpqKVitehAL9xTIrDppW8h8HoB5F49GD8=; b=I+zYwfyHsGog+tXrkHOqqd0wp1mrc7LjZI96FBTEItv/JdmTmyIVxOfdGNBUdzRt5E H3mFXYpMNKfZiK+suf6+097zwNshCg6hFbqmAa25Mk4N5dYseZXLwpTQc9h5C8k3Y1Sg w9q2bLvXdEFqsTV1iw89KDEpbHvHIAqymqIr+nSeT3xmCO+M51z167uq9/e4h3iBHfip a5cC/kzPJzae6hPwp2RDEZLp7ApMXVzqILgbtWOJ4ndLudPrG31eLec8eMTUwyfOgLLJ grnpc3dVbqVthl3kgOgf8su5Vk2zv0acKvNt9P5/Al1zU4XK/e4AFkyLQTmq+Fj8pYpZ Dn4A== 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=rZrMRZK+NBwpqKVitehAL9xTIrDppW8h8HoB5F49GD8=; b=EyDTwGdijxrrWNDdhJRBt07UfajH/hDB7th7kgYBl/CAUY5ReFbf5UZKUsO7JLmgRF IlmEoFdznRHJFqEkEzfD4QP4lJ4yK4yhPsAlfCC2lP3m2S/q98IULKeHJsI0L3AMVgFw yurLOmRgfsl/Eg7D5th+1r4f5OCjf8gDEedaQylQ5nytb5KBYaFlvy4cx5N2c9XvU0BB pNXXxtdGgWIcAbHonlidq252rBCj5e4st6DvEvxhDvhTj4KXzPlQrc4m4sCP8jJwBFrE 9kDl3SZW4xHgPkjL0LauFE9ohiBHtCIe3feUewrgl4+ikwDB+i6FPAr02WjacAN3IwO0 61KQ== X-Gm-Message-State: AOAM53004SOD754/H26DOdl5Q9biGmwbv0mccjQeVsJHnjuIWOLABSIq 2BlVIERJQ/A375XGMu//qfPFHWzndWm4AhzSCg8NQsmKcw== X-Received: by 2002:a19:4945:: with SMTP id l5mr2740737lfj.12.1592342255315; Tue, 16 Jun 2020 14:17:35 -0700 (PDT) MIME-Version: 1.0 References: <20200616203352.GA1815527@rani.riverdale.lan> In-Reply-To: <20200616203352.GA1815527@rani.riverdale.lan> From: Gabriel C Date: Tue, 16 Jun 2020 23:17:08 +0200 Message-ID: Subject: Re: Linux 5.8-rc1 To: Arvind Sankar Cc: Linus Torvalds , Linux Kernel Mailing List , Hans de Goede 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 Am Di., 16. Juni 2020 um 22:33 Uhr schrieb Arvind Sankar : > > On Tue, Jun 16, 2020 at 10:11:46PM +0200, Gabriel C wrote: > > * Am So., 14. Juni 2020 um 22:44 Uhr schrieb Linus Torvalds > > : > > > > Hello, > > > > > So I didn't really expect this, but 5.8 looks to be one of our biggest > > > releases of all time. > > > > > > > I hit a compiler error caused by e4160b2e4b02377c67f8ecd05786811598f39acd. > > > > x86/purgatory: Fail the build if purgatory.ro has missing symbols > > > > Having CONFIG_STACKPROTECTOR* & CONFIG_KEXEC_FILE enabled always > > results in a linking error like this: > > > > LD arch/x86/purgatory/purgatory.chk > > ld: arch/x86/purgatory/purgatory.ro: in function `verify_sha256_digest': > > purgatory.c:(.text+0x108): undefined reference to `__stack_chk_fail' > > ld: arch/x86/purgatory/purgatory.ro: in function `sha256_transform': > > sha256.c:(.text+0x1c74): undefined reference to `__stack_chk_fail' > > ld: arch/x86/purgatory/purgatory.ro: in function `__sha256_final': > > sha256.c:(.text+0x1e65): undefined reference to `__stack_chk_fail' > > ld: arch/x86/purgatory/purgatory.ro: in function `_kstrtoull': > > string.c:(.text+0x2107): undefined reference to `__stack_chk_fail' > > > > I didn't look closer at that but from the error, it seems to be, > > some missing -fstack-protector* vs -fno-stack-protector* checks > > somewhere. > > > > > > Best Regards, > > > > Gabriel C > > Can you attach the output of gcc -dumpspecs and gcc -v? I suspect your > compiler enables stack protector by default. My distro compiler does > that too, but not if -ffreestanding is enabled (which it is for the > purgatory). > Files including config uploaded to there: http://crazy.dev.frugalware.org/kernel/ > Does this patch help? > I'll test in a bit and let you know. > diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile > index b04e6e72a592..088bd764e0b7 100644 > --- a/arch/x86/purgatory/Makefile > +++ b/arch/x86/purgatory/Makefile > @@ -34,6 +34,7 @@ KCOV_INSTRUMENT := n > PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel > PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss > PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING > +PURGATORY_CFLAGS += $(call cc-option,-fno-stack-protector) > > # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That > # in turn leaves some undefined symbols like __fentry__ in purgatory and not Thx.