Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3620154pxy; Tue, 4 May 2021 06:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5yVlP0TdOSd+R7/hAR6/fgZBNjgf+erJiz1oV03ZDOfO6rRNbdz26ebZ4SboU8naLi3NE X-Received: by 2002:a17:90a:8548:: with SMTP id a8mr27693389pjw.48.1620134893749; Tue, 04 May 2021 06:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620134893; cv=none; d=google.com; s=arc-20160816; b=ke+O+2elSIJJh4ksTV/F8LqwA2MENIBn7b2zLEEHoIA74KAHE9TAFdoSxUJkGYO4Tk MD3YF2RVKik9WbrzmAwUbSmDpub+QH51o/DgVq9EHq7xmzvl4u+zviVuijNEFR5Vlw35 r5Hl9Ew9A4HddQYIaChRY602DHHb0nltjsvkr83rjyAYf/NNs+5hIelyUwNTWHWB8nwq n4I5HN0JnReGygK/iIKkYFlKFmwtVJmrQ6E4WKir35fQTsRWDlGhUIEE41mgqVvL1ewZ HDu7jUC+hrUnVaTlhYgD1EhIbK/SNNDGsFDVxk2W9K8coKwcXLmamPH24VqCQWepP5yI m4uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6Usua23eG7jeiBMRqPk961Vu0oHy/tcPvUmAPfGsd3M=; b=KHMRCvCcT6GEoNvV/6RnjGK0bsM4tr6NrCJJiw8nN0Ut++tNOpJST7mR5tBYbEGfTV Ew3k3QikCaGlXvHSFOfyH2nK+7HM/Bb1tJlDDCjePjnRR23ijmVZXCWcTXbaeIaP3r61 B9LiLsUeyh1mIcJLYh+jfazANDArl416Pypo74m2LuMEvDzQOwqsN18LRaTJZDKsSUvf o/KRTeNhMCStKvHD16Nw46O7pZs3YYn9YtWdgFUBW8nF7/JEGG/EILmMvjpU/jSJYI7u Ur3kGo1Vu3AGUjSuU3rm+P5Ctke+ZvprnghjMyG+20jbFyHLCYxrZxr0n9L0eVsVn/Fm WnaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sTsLRdnn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si3387402pgp.46.2021.05.04.06.27.57; Tue, 04 May 2021 06:28:13 -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=@gmail.com header.s=20161025 header.b=sTsLRdnn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231228AbhEDN0W (ORCPT + 99 others); Tue, 4 May 2021 09:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbhEDN0V (ORCPT ); Tue, 4 May 2021 09:26:21 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49F46C061574; Tue, 4 May 2021 06:25:26 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id d10so6866392pgf.12; Tue, 04 May 2021 06:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6Usua23eG7jeiBMRqPk961Vu0oHy/tcPvUmAPfGsd3M=; b=sTsLRdnna2sWw8Z9FaRNxSMft/pBwo/y8kKHX5A/bs3GC09QaDMsRY3ukXdyuzno5K TTskFLmfiBewHvymg8gVK4V/TVKfQ23eP/Tu218+y4OC9ZktHTTfkJaMdWa7vEwWHVHf VxYQ8k02YYjFMfqJEehpLYDZNE6BW1NlQEESuSmZ810jAvl03Y3YtDZxi0VRPLFBXUYJ uFkEjyscASDsMyBzUlSN2YID8zDZop12wU5y2YkeCcPz8pkVx3zQ8M+7EstrM8ejVLtl +UOwsKs2q6eecp6bytsFx6j4sQe81qn14UFJkgvj+14FZVfWqRencBKKh1p/ACnYmBNR rY6g== 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=6Usua23eG7jeiBMRqPk961Vu0oHy/tcPvUmAPfGsd3M=; b=j3Hg6m5oaYGEZsgYqRwl++qN4JIXMTMXJtHolRD1lP6PCclIOpVygU1zRVna11z+IO x+iWaSQLK/nfeTGFb92MLQUcvfWOh2YlPMLWWK60qBb8YSOXYcp9MA7AUWU0nxO4t52L Fj8WzXKujlneWcmCclOrGBYBTRQMCVN34qgXCUu75uG+UlReNTFMepiLWLSqxnH8tPYS Hf2GglOehP62hl7SSeAOVXFaiZofddgsmt+vBZ63qcufIQeUOFTI7G96FEVMLfNgO4v/ YdJXqaEGIKTYOFzfyRADXqJVjpnHqoEKd/US+ZgwyaWW5zvLuLZr2LZ5HXwYUxiCPpeQ VXGg== X-Gm-Message-State: AOAM530VnOf37L1srkA+DV3EisywCUX8GR0KN8aSL4BbqZMcMJPsQjXo GbXVztJDSITP7CglaGP20rnORD6GcAk/i7jL7ng= X-Received: by 2002:a17:90a:d90c:: with SMTP id c12mr5218252pjv.129.1620134725780; Tue, 04 May 2021 06:25:25 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Andy Shevchenko Date: Tue, 4 May 2021 16:25:09 +0300 Message-ID: Subject: Re: [PATCH] Raise the minimum GCC version to 5.2 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 3, 2021 at 12:29 PM Arnd Bergmann wrote: > > 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 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. > > 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. > > - 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. I understand that you are talking about embedded, but it you stuck with a distro (esp. LTS one, like CentOS 7.x), you have gcc 4.8.5 there for everything, but they have got security updates. Seems if you are with a distro you have to stick with its kernel with all pros and cons of such an approach. -- With Best Regards, Andy Shevchenko