linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boqun Feng <boqun.feng@gmail.com>
To: Xi Ruoyao <xry111@linuxfromscratch.org>
Cc: "Kees Cook" <keescook@chromium.org>,
	"Linus Torvalds" <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	"Adam Bratschi-Kaye" <ark.email@gmail.com>,
	"Alex Gaynor" <alex.gaynor@gmail.com>,
	"Antonio Terceiro" <antonio.terceiro@linaro.org>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Boris-Chengbiao Zhou" <bobo1239@web.de>,
	"Daniel Xu" <dxu@dxuuu.xyz>,
	"Dariusz Sosnowski" <dsosnowski@dsosnowski.pl>,
	"David Gow" <davidgow@google.com>,
	"Douglas Su" <d0u9.su@outlook.com>, "Finn Behrens" <me@kloenk.de>,
	"Fox Chen" <foxhlchen@gmail.com>, "Gary Guo" <gary@garyguo.net>,
	"Geert Stappers" <stappers@stappers.nl>,
	"Geoffrey Thomas" <geofft@ldpreload.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Jiapeng Chong" <jiapeng.chong@linux.alibaba.com>,
	"Joe Perches" <joe@perches.com>,
	"John Baublitz" <john.m.baublitz@gmail.com>,
	"Julian Merkle" <me@jvmerkle.de>,
	"Léo Lanteri Thauvin" <leseulartichaut@gmail.com>,
	"Maciej Falkowski" <m.falkowski@samsung.com>,
	"Martin Rodriguez Reboredo" <yakoyoku@gmail.com>,
	"Matthew Bakhtiari" <dev@mtbk.me>,
	"Matthew Wilcox" <willy@infradead.org>,
	"Michael Ellerman" <mpe@ellerman.id.au>,
	"Miguel Cano" <macanroj@gmail.com>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Milan Landaverde" <milan@mdaverde.com>,
	"Morgan Bartlett" <mjmouse9999@gmail.com>,
	"Nándor István Krácser" <bonifaido@gmail.com>,
	"Nick Desaulniers" <ndesaulniers@google.com>,
	"Niklas Mohrin" <dev@niklasmohrin.de>,
	"Petr Mladek" <pmladek@suse.com>,
	"Sumera Priyadarsini" <sylphrenadin@gmail.com>,
	"Sven Van Asbroeck" <thesven73@gmail.com>,
	"Tiago Lam" <tiagolam@gmail.com>,
	"Viktor Garske" <viktor@v-gar.de>,
	"Wedson Almeida Filho" <wedsonaf@gmail.com>,
	"Wei Liu" <wei.liu@kernel.org>, "Wu XiangCheng" <bobwxc@email.cn>,
	"Yuki Okushi" <jtitor@2k36.org>
Subject: Re: [GIT PULL] Rust introduction for v6.1-rc1
Date: Mon, 3 Oct 2022 23:40:32 -0700	[thread overview]
Message-ID: <YzvVYIo8q5TeBmB4@tardis> (raw)
In-Reply-To: <8d9810e2de8aa658223542a651346118ee7be4ac.camel@linuxfromscratch.org>

[-- Attachment #1: Type: text/plain, Size: 2915 bytes --]

On Tue, Oct 04, 2022 at 01:32:49PM +0800, Xi Ruoyao wrote:
> On Sat, 2022-10-01 at 08:58 -0700, Kees Cook wrote:
> > Hi Linus,
> > 
> > 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 to
> > the standard non-rebasing practice once this initial infrastructure series
> > 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? 
> 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.
> 

Just my 2 cents.

IIUC the Rust support is still in the *experiment* stage, in other
words, the whole thing may get removed if things don't go well. So I
wouldn't recommend any distro to enable it for the LTS kernel or any
kernel used for production.

That said, it may be a good time to start thinking of the list of
prerequisites for distros to enable it. I believe you just mentioned a
few above, so thank you!

As for the "victory of them but cost of us" thing, TBH, we do use the
compiler and other tool from them (and for free), so that's fair ;-)
Besides if the victory make them care more about kernel needs, it's
better ;-)

Regards,
Boqun

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2022-10-04  6:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-01 15:58 [GIT PULL] Rust introduction for v6.1-rc1 Kees Cook
2022-10-01 20:21 ` Masahiro Yamada
2022-10-01 22:50   ` Kees Cook
2022-10-01 23:01     ` Miguel Ojeda
2022-10-04  5:32 ` Xi Ruoyao
2022-10-04  6:40   ` Boqun Feng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YzvVYIo8q5TeBmB4@tardis \
    --to=boqun.feng@gmail.com \
    --cc=alex.gaynor@gmail.com \
    --cc=antonio.terceiro@linaro.org \
    --cc=ark.email@gmail.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=bobo1239@web.de \
    --cc=bobwxc@email.cn \
    --cc=bonifaido@gmail.com \
    --cc=d0u9.su@outlook.com \
    --cc=davidgow@google.com \
    --cc=dev@mtbk.me \
    --cc=dev@niklasmohrin.de \
    --cc=dsosnowski@dsosnowski.pl \
    --cc=dxu@dxuuu.xyz \
    --cc=foxhlchen@gmail.com \
    --cc=gary@garyguo.net \
    --cc=geofft@ldpreload.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jiapeng.chong@linux.alibaba.com \
    --cc=joe@perches.com \
    --cc=john.m.baublitz@gmail.com \
    --cc=jtitor@2k36.org \
    --cc=keescook@chromium.org \
    --cc=leseulartichaut@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.falkowski@samsung.com \
    --cc=macanroj@gmail.com \
    --cc=me@jvmerkle.de \
    --cc=me@kloenk.de \
    --cc=milan@mdaverde.com \
    --cc=mjmouse9999@gmail.com \
    --cc=mpe@ellerman.id.au \
    --cc=ndesaulniers@google.com \
    --cc=ojeda@kernel.org \
    --cc=pmladek@suse.com \
    --cc=stappers@stappers.nl \
    --cc=sylphrenadin@gmail.com \
    --cc=thesven73@gmail.com \
    --cc=tiagolam@gmail.com \
    --cc=torvalds@linux-foundation.org \
    --cc=viktor@v-gar.de \
    --cc=wedsonaf@gmail.com \
    --cc=wei.liu@kernel.org \
    --cc=willy@infradead.org \
    --cc=xry111@linuxfromscratch.org \
    --cc=yakoyoku@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).