Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3326625pxy; Mon, 3 May 2021 22:32:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwATPn+tlw++xPl0cA0dcsRdcEE23Vippca+Y9CSFLOdW5LMUaTef16aHb/yoISzf1rdCmn X-Received: by 2002:a17:906:4d07:: with SMTP id r7mr20144992eju.224.1620106340316; Mon, 03 May 2021 22:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620106340; cv=none; d=google.com; s=arc-20160816; b=RkiKFeRr3H6UUUg/jMsGtZBxFH2UvpK6QwsyFyVmoFVD0/a3ONZ1a5fUYwwkZMB6YZ 5Ad5K3PV+HWcrCXnfCmA8cxl4Z3mD2XLkPlcg1pdYGl4qqU9x++5jHCACTiEnmRYEmsx H6nV5ZyMuIkmDxaSJrYMS+BRwrjraL3jLcLXIempPBCu0eHHDTEOaPgKHpt1AXLvO+RF MSTY65t0qPEe4H7IsXbKmyfF2orc+4QZO8ydlc5UpKlk3DkpZYih7taRRVMCB6X1giRc h9PCmW0M8kuaIUxKYdJCKTqEYpXfKHNGYxAP8H8F4chzCaA4oB4QDYjRdBif33z+F/Y9 z+TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date; bh=JIb5joLaAZtZoBF2aVfUoFjvHChYmvO72pgWOlsF0Ag=; b=CWirVXyVDPPpQFCWK8jtIq4QxB1yf3hToKG/RfWVlL/rzRaFKOFhs47CKsaTa3jt7t RtUfxv253ba0O67MgiRbRJmb0u7SuABNCYezQ2nM+4WfsHHsyFZ4ajiPaolxomgrNIOc 5rIGLFKqqToFF0jsyutP0sgCq+BuJVCAIOUc71w/YQNeMpxCJCbeDjnZBagZOS19qVJK 90iLw9xfgEtyznuaxMkvb9vfQ21He1hUxHQVP61PcmljvHxN6rIzDwF6Yl2fiN5727hJ YQDGt6Jr6xis4gI/fy8ZY1uBvPZOP/YpLHEYb2pgp3s024w50BE/FLNVZ4WMk+ubJhGz DAUA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs19si1597225ejb.238.2021.05.03.22.31.56; Mon, 03 May 2021 22:32:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbhEDFbu (ORCPT + 99 others); Tue, 4 May 2021 01:31:50 -0400 Received: from mail.thorsis.com ([92.198.35.195]:57485 "EHLO mail.thorsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbhEDFbt (ORCPT ); Tue, 4 May 2021 01:31:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id A8A461AB6; Tue, 4 May 2021 07:30:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hSn2JZxRetDo; Tue, 4 May 2021 07:30:52 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 2843E3581; Tue, 4 May 2021 07:30:52 +0200 (CEST) X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was * blocked. See * http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more information. * [URIs: thorsis.com] * -0.0 NO_RELAYS Informational: message was not relayed via SMTP * -0.0 NO_RECEIVED Informational: message has no Received headers Date: Tue, 4 May 2021 07:30:30 +0200 From: Alexander Dahl To: Arnd Bergmann Cc: Matthew Wilcox , Linus Torvalds , Segher Boessenkool , Joe Perches , Miguel Ojeda , Masahiro Yamada , Albert Ou , Linux Kbuild mailing list , Greg Kroah-Hartman , Jonathan Corbet , Linux Doc Mailing List , linux-kernel , Palmer Dabbelt , Paul Walmsley , Catalin Marinas , Miguel Ojeda , Paul Mackerras , linux-riscv , linuxppc-dev , Will Deacon , Linux ARM Subject: Re: [PATCH] Raise the minimum GCC version to 5.2 Message-ID: Mail-Followup-To: Arnd Bergmann , Matthew Wilcox , Linus Torvalds , Segher Boessenkool , Joe Perches , Miguel Ojeda , Masahiro Yamada , Albert Ou , Linux Kbuild mailing list , Greg Kroah-Hartman , Jonathan Corbet , Linux Doc Mailing List , linux-kernel , Palmer Dabbelt , Paul Walmsley , Catalin Marinas , Miguel Ojeda , Paul Mackerras , linux-riscv , linuxppc-dev , Will Deacon , Linux ARM References: <20210501151538.145449-1-masahiroy@kernel.org> <3943bc020f6227c8801907317fc113aa13ad4bad.camel@perches.com> <20210502183030.GF10366@gate.crashing.org> <81a926a3bdb70debe3ae2b13655ea8d249fb9991.camel@perches.com> <20210502203253.GH10366@gate.crashing.org> <20210502223007.GZ1847222@casper.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Arnd, Am Mon, May 03, 2021 at 11:25:21AM +0200 schrieb Arnd Bergmann: > On Mon, May 3, 2021 at 9:35 AM Alexander Dahl wrote: > > > > Desktops and servers are all nice, however I just want to make you > > aware, there are embedded users forced to stick to older cross > > toolchains for different reasons as well, e.g. in industrial > > environment. :-) > > > > This is no show stopper for us, I just wanted to let you be aware. > > Can you be more specific about what scenarios you are thinking of, > what the motivations are for using an old compiler with a new kernel > on embedded systems, and what you think a realistic maximum > time would be between compiler updates? One reason might be certification. For certain industrial applications like support for complex field bus protocols, you need to get your devices tested by an external partner running extensive test suites. This is time consuming and expensive. Changing the toolchain of your system then, would be a massive change which would require recertification, while you could argue just updating a single component like the kernel and building everything again, does not require the whole testing process again. Thin ice, I know. > One scenario that I've seen previously is where user space and > kernel are built together as a source based distribution (OE, buildroot, > openwrt, ...), and the compiler is picked to match the original sources > of the user space because that is best tested, but the same compiler > then gets used to build the kernel as well because that is the default > in the build environment. One problem we actually ran into in BSPs like that (we build with ptxdist, however build system doesn't matter here, it could as well have been buildroot etc.) was things* failing to build with newer compilers, things we could not or did not want to fix, so staying with an older toolchain was the obvious choice. *Things as in bootloaders for an armv5 platform. > There are two problems I see with this logic: > > - Running the latest kernel to avoid security problems is of course > a good idea, but if one runs that with ten year old user space that > is never updated, the system is likely to end up just as insecure. > Not all bugs are in the kernel. Agreed. > - The same logic that applies to ancient user space staying with > an ancient compiler (it's better tested in this combination) also > applies to the kernel: running the latest kernel on an old compiler > is something that few people test, and tends to run into more bugs > than using the compiler that other developers used to test that > kernel. What we actually did: building recent userspace and kernel with older toolchains, because bootloader. I know, there are several possibilities to solve this kind of lock: - built bootloader with different compiler - update bootloader - … As said before, this is no problem for me now, I can work around it, but to give an idea what could keep people on older toolchains. Greets Alex