Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp482982ybh; Sun, 12 Jul 2020 12:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5/kpZfYDs68DugttBueHo42fIBvnPuFJ7/1xQC+mkDrPvuYLN+N1sn19+jAIe4WPcHpXv X-Received: by 2002:a50:8c06:: with SMTP id p6mr48256658edp.146.1594582886044; Sun, 12 Jul 2020 12:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594582886; cv=none; d=google.com; s=arc-20160816; b=qWO4FiIc0g5vUgfG+CvpnycdvBuU3HHlTn551p8HHkFN7oQXsVGl8yIMTFJnGHREl9 CR7w+cfjfoewhiFS3r7h57gGYCPN5qEb1NysbQZGmU6TxH5frU4JWPyHkU3VoptpW+bG mvuMRxN1AZGJbv7InzYL4UFajEHdAERAuYCQ99qBRFhy5fmojr8ZEqGEbg7Iti5DccRK qNEMO8LBcPnpax58pmvuHsq91uM+AYZoNsQUWXdrfGLTpfEl9l60VqXhAQQPMk3pMXwG ghQV/Ghg8eEwJW+py+4Sh4m8Ks7mwLDYya2HY7nOPzKBa/ntP+Xfl1rVPbTfdaWJznCL avzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eUtyZkd2tW3MUJZMeweephDrN7kfCJ1gq6RG34tW7A0=; b=PFKLDooHy9e7sTvf9kZ8Cs8MnzXW/0N8AIRc6ueLbUZNoBOxOz3b8ARAOAd5vEniPt xjnbYHLPgzOii+SjZBGVAZh6xw+tFPSH19wBmUM1RtRvVSJ2Xxg9t7pEBSo3vfbXx8/i yRyP32dO1g6n93QYiLxgYIy0RNm87wNPIue5eZfXvsIiwbLhqH45HSdY/F+Z2U5FM4C8 GLV4GDA2TUfuGyklAHXDt/TGEl5eoDHOy0rD90JJexVhGEd0U3gB1m4MQwlPumSJrar8 TBHJO4tpKlg7nvAVilJwJx0pD1qzPo3PYYSCU4hlEISiNKIALgHlQVIwVAoD3LdWnbWj 33pw== 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 dd5si7879719ejb.399.2020.07.12.12.41.01; Sun, 12 Jul 2020 12:41:26 -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 S1729254AbgGLTjy (ORCPT + 99 others); Sun, 12 Jul 2020 15:39:54 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46027 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729213AbgGLTjy (ORCPT ); Sun, 12 Jul 2020 15:39:54 -0400 X-Originating-IP: 50.39.163.217 Received: from localhost (50-39-163-217.bvtn.or.frontiernet.net [50.39.163.217]) (Authenticated sender: josh@joshtriplett.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id E2F421BF205; Sun, 12 Jul 2020 19:39:46 +0000 (UTC) Date: Sun, 12 Jul 2020 12:39:44 -0700 From: Josh Triplett To: Adrian Bunk Cc: Nick Desaulniers , alex.gaynor@gmail.com, geofft@ldpreload.com, jbaublitz@redhat.com, Masahiro Yamada , Linus Torvalds , Greg KH , Miguel Ojeda , Steven Rostedt , LKML , clang-built-linux Subject: Re: Linux kernel in-tree Rust support Message-ID: <20200712193944.GA81641@localhost> References: <20200712123151.GB25970@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200712123151.GB25970@localhost> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 03:31:51PM +0300, Adrian Bunk wrote: > On Thu, Jul 09, 2020 at 11:41:47AM -0700, Nick Desaulniers wrote: > >... > > but also a larger question of "should we do > > this?" or "how might we place limits on where this can be used?" > >... > > I won't attend, but I do have a topic that should be covered: > > Firefox always depends on recent Rust, which forces distributions to > update Rust in stable releases. > > As an example: > Ubuntu LTS releases upgrade to a new Rust version every 1-2 months. > Ubuntu 16.04 started with Rust 1.7.0 and is now at Rust 1.41.0. > > It would not sound good to me if security updates of distribution > kernels might additionally end up using a different version of the > Rust compiler - the toolchain for the kernel should be stable. > > Would Rust usage in the kernel require distributions to ship > a "Rust for Firefox" and a "Rust for the kernel"? Rust has hard stability guarantees when upgrading from one stable version to the next. If code compiles with a given stable version of Rust, it'll compile with a newer stable version of Rust. Given that, a stable distribution will just need a single sufficiently up-to-date Rust that meets the minimum version requirements of both Firefox and Linux. (That would not apply if the kernel used nightly Rust, since nightly-only features are allowed to change before becoming stable; that's one reason why we should use stable Rust, and try to get Firefox to stick to stable Rust.)