Received: by 2002:a05:6504:5087:b0:1e5:d399:13c4 with SMTP id i7csp12683ltq; Mon, 3 Oct 2022 23:25:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PIf03ULzW+CLPmUajmEchVrzpBg0kk1bDkklw2GMWAzcEtipA4Hvj/4KO2j3wGtOy18Rr X-Received: by 2002:a05:6402:5106:b0:451:787c:9fcc with SMTP id m6-20020a056402510600b00451787c9fccmr21857777edd.164.1664864751154; Mon, 03 Oct 2022 23:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664864751; cv=none; d=google.com; s=arc-20160816; b=dklv9RoBm75NuUPhSdq2waQfW5EBNz80/9ISTGC5P5Rfu6LStkBjGRpUU/Ay0h+ah1 c7g2s7fF+guNrXk6SlRNECqXUn4G6/Zd21PKlxuOgr51dOZdye5xzdw//rvd1n6d3kPg DyV5FKvh/xZTzvwuu+O/5dRMnhHv7bToiCcwzUdDJ659rN/asr6tch63SKChUAXqDm+f aeU9CfcujVpkzJT5fP4dmOMefQb6W0vt04mFhfZKVqS/AHqiJh6ZAnoVsbpKnkAHJGgj waLKlWzVP5cN/JhbGrrUSfN8NY1X/10y+YLsxsbVgbroG7NO5RwTjVx3aXLFTX5Bk803 IWTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=x5A0/TRLrmgT/6LvZ3juGVUEYaCRn5x0HEnAwq2BxCA=; b=gylnxvUiBLOJduYsacBZHznzBomIvUEfmdIn9wae8KQ11qL4zKK99ampw/ZHTLsTuj 3Ttne77HqKF6bQXxm4fS19n+bHI/y/xiad5l5hVviN4TSCHBOqYLOWGnGXlI+f3FBTTv u2AXmVrnBVitPc1MV7NDRHKAwG8pP5/zynXnDYLnSh9hQrHR0mteAQWxtuz5TIl0aLF1 lepacnoXoS8RtV9TG4pdu5hqpTx1ExC9yxMJiDKBG4BJO3j8IXYRvpgjNrPOfcsCMw+3 U+tYa0l6RfoAL2TmdwWeBjJvLfot1nwQsJ7HlnnLXGmFisZGcmPKs42OgKrQ2jao7pvg QgNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfromscratch.org header.s=cert4 header.b=PBp5MZhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linuxfromscratch.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp18-20020a1709071b1200b00780b0992eafsi10257327ejc.561.2022.10.03.23.25.25; Mon, 03 Oct 2022 23:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfromscratch.org header.s=cert4 header.b=PBp5MZhP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linuxfromscratch.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbiJDFvA (ORCPT + 99 others); Tue, 4 Oct 2022 01:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiJDFu6 (ORCPT ); Tue, 4 Oct 2022 01:50:58 -0400 X-Greylist: delayed 912 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 03 Oct 2022 22:50:50 PDT Received: from smtp2.tsag.net (smtp2.tsag.net [208.118.68.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52EC02F03A for ; Mon, 3 Oct 2022 22:50:49 -0700 (PDT) Received: from linuxfromscratch.org (rivendell.linuxfromscratch.org [208.118.68.85]) (user=smtprelay@linuxfromscratch.org mech=PLAIN bits=0) by smtp2.tsag.net with ESMTP id 2945X303007436-2945X305007436 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Oct 2022 23:33:03 -0600 Received: from localhost.localdomain (xry111.site [89.208.246.23]) by linuxfromscratch.org (Postfix) with ESMTPSA id 92BDA1C3481; Tue, 4 Oct 2022 05:32:52 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfromscratch.org; s=cert4; t=1664861583; bh=RHHv5zvqhnXl7Kqs8UFl9hLaQq62LgXxAZvC/XhNV6U=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PBp5MZhPOWGMcTY+ete3ItPxu5vaToEhSAdAQ6cjuzfK+1N2D/jHD5GumwX+/M6tf j80jL9usyAoyqaDpclFiyPpyLQvfrpjPxiCkKzb0sHfUViWqoWa2VvQvl6ffhBaAyj LENtOkFrGjI9yaRYPdAoAPGStV7CfSKNmvx2x5GicCyVUGbBCt0ELfzaARJo24PGfo 7njNgUpeA/UxrXBBrmZOSeMYQoElbBH5AyChbWN/iuSE/oXgb6VeOdsrYFcSbpsHtP 05Ve2tk7DoD1T37wf01E0ugrmFEez+bsK2+GXqIVgSLvLYxitwclp3Lv3hyaj3cdeI EerRlVAUx83gQ== Message-ID: <8d9810e2de8aa658223542a651346118ee7be4ac.camel@linuxfromscratch.org> Subject: Re: [GIT PULL] Rust introduction for v6.1-rc1 From: Xi Ruoyao To: Kees Cook , Linus Torvalds Cc: linux-kernel@vger.kernel.org, Adam Bratschi-Kaye , Alex Gaynor , Antonio Terceiro , =?ISO-8859-1?Q?Bj=F6rn?= Roy Baron , Boqun Feng , Boris-Chengbiao Zhou , Daniel Xu , Dariusz Sosnowski , David Gow , Douglas Su , Finn Behrens , Fox Chen , Gary Guo , Geert Stappers , Geoffrey Thomas , Greg Kroah-Hartman , Jiapeng Chong , Joe Perches , John Baublitz , Julian Merkle , =?ISO-8859-1?Q?L=E9o?= Lanteri Thauvin , Maciej Falkowski , Martin Rodriguez Reboredo , Matthew Bakhtiari , Matthew Wilcox , Michael Ellerman , Miguel Cano , Miguel Ojeda , Milan Landaverde , Morgan Bartlett , =?ISO-8859-1?Q?N=E1ndor_Istv=E1n_?= =?ISO-8859-1?Q?Kr=E1cser?= , Nick Desaulniers , Niklas Mohrin , Petr Mladek , Sumera Priyadarsini , Sven Van Asbroeck , Tiago Lam , Viktor Garske , Wedson Almeida Filho , Wei Liu , Wu XiangCheng , Yuki Okushi Date: Tue, 04 Oct 2022 13:32:49 +0800 In-Reply-To: <202210010816.1317F2C@keescook> References: <202210010816.1317F2C@keescook> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-FEAS-Auth-User: smtprelay@linuxfromscratch.org X-FEAS-DKIM: Valid Authentication-Results: smtp2.tsag.net; dkim=pass header.i=@linuxfromscratch.org; dmarc=pass header.from=linuxfromscratch.org X-FE-Policy-ID: 0:14:3:linuxfromscratch.org X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2022-10-01 at 08:58 -0700, Kees Cook wrote: > Hi Linus, >=20 > Please pull the initial Rust support for v6.1-rc1. The tree has a recent > base, but has fundamentally been in linux-next for a year and a half[1]. > It's been updated based on feedback from the Kernel Maintainer's Summit, > and to gain recent Reviewed-by: tags. Miguel is the primary maintainer, > with me helping where needed/wanted. Our plan is for the tree to switch t= o > the standard non-rebasing practice once this initial infrastructure serie= s > lands. The contents are the absolute minimum to get Rust code building > in the kernel, with many more interfaces[2] (and drivers[3]) on the way. Hi, As a Linux From Scratch maintainer I have to express some concern. I think I have the most open attitude to Rust among all Linux From Scratch members. But this will be just *too* troubling for us. I'm not against the use of Rust in kernel, but: 1. Current implementation strictly depends on bindgen, which depends on libclang in turn. It means even if the Rust support land in GCC 13, we'll still need to build and install the giant LLVM for building the Rust components in the kernel. Is it possible to use some different approach (for example, including the binding in the kernel tree)? 2. Squashing all the cmake, LLVM, and Rustc stuff into the Linux From Scratch book will be extremely painful, but still possible. However, we currently need "A particular version of the Rust compiler". This is just annoying. What will happen if a security vulnerability suddenly shows up in the "particular version" required by a kernel LTS branch?=20 And from a distro maintainer's point of view this will forces us to build multiple Rustc versions. I see the reason "the kernel depends on some unstable Rust features", but then shouldn't we wait for (or urge the Rustc developers for) the stabilization of these features, instead of merging Rust into the mainline too quickly? Now they can declare the victory like "oh, the kernel is now using our language!" but *we* are paying all costs.