Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp768180pxy; Wed, 28 Apr 2021 13:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvTrFRIWw8lETJI3rLxOMgtnGOApqHLB8I2L+joMGyrOAQs6SdwPnJtpzKu2Y4igcu+x/V X-Received: by 2002:aa7:d413:: with SMTP id z19mr14130030edq.37.1619643235098; Wed, 28 Apr 2021 13:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643235; cv=none; d=google.com; s=arc-20160816; b=Ocbb5GARk3cVUrdawe6JzkTDu0UPoa0EcBlp5e5YznCk2qhO/QepJybcBSCnmyaJSL fSCTB/qyc1XF8dQrbbw87BhaU20YpWrKejmaiHj0MLAAU0Gx31/mXcydzFprhzhk3mC/ JwapA6rULB3Y1goQovyF4+w5/PTYxWDh4WOz7wV0V0HJI6ZrLaOTWnb1jlY8lvzfglyZ K068Mv7rVvoBSfowIFbK7aQViD4BTZ6rbWD6jh8ByadrORYxFe70ec+i5Pbq2TMIalPj C6nwHGqgRK9RNTC8xJChSKNUCOBI7L8anwg/uFMeTX3x78wLqtjcJ86ED0KmJlUqx11g O6AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=IpwMZWX9MMsh2XzRMAHNnBtuqO5Gz5Ebo8LaLSW9Frs=; b=0bOpzgFDmAsHkcVxeXpVB7ga6k43LmrbVBhDdZbPtfa+kJ6bjkvZrFq/6Cq9gr+RZ4 i7/8yXGXWt8qXAK7kLHtGThXALV6DE9XYQFjron6G2MODQYPA8IJKI1XW9eibwHPvt7H 722LgMlrDtNhkPoXdmpelO5Ki4tFV20Bw4VtOmWz+7Jpf/cGMRd6lQjjhBJm6w7wX5Et 32Y94P9zU7N9PeTbS7r6fLZkZGp/CRD1qvHHN9oZJTTNdCzHOIIvhj+wPzkLqsoBwUfv Zerhz5ZPWvIV+2WRQxYZEYa7gR6jChzT2WsiUbb/qQeMiJsQYarmoDADTK3hqhhBQlOQ JDxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bvgQyBXg; 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 bz20si1124875ejc.706.2021.04.28.13.53.32; Wed, 28 Apr 2021 13:53:55 -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=bvgQyBXg; 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 S243410AbhD1SfG (ORCPT + 99 others); Wed, 28 Apr 2021 14:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbhD1SfE (ORCPT ); Wed, 28 Apr 2021 14:35:04 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A38EFC061573; Wed, 28 Apr 2021 11:34:19 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id z1so75140982ybf.6; Wed, 28 Apr 2021 11:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=IpwMZWX9MMsh2XzRMAHNnBtuqO5Gz5Ebo8LaLSW9Frs=; b=bvgQyBXggfPL9PXPDfc4k6JiPuuR23ONCaADQxIpPw/GkcNPql7NWRxhRDyx1b9rkw ot+pr/abV7T1IAEEOSp7zKZqDhik+f4WSZyYDwevPszbi5kkV9HwE7BvAlNO6/Fle+o2 2LkdrEsu4DPGrbZBqre1JeqxNVIfICWLZOsIIng17gipwhFMZSTBibXLTUlT6cGBPc1D tCMrd65ixfIJWJAwoB5MUuFmn5ebkbDld7Ln2GI6+0DqVaIHueL0Ezj3VItBTwt+yybh tV5TZE7LSkM6fUqNf5+LtP2bh2mMRB6yHYfg8DifZxXlTQYEzpj/v19uAswUJukWqI2b 0FJA== 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:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=IpwMZWX9MMsh2XzRMAHNnBtuqO5Gz5Ebo8LaLSW9Frs=; b=LOXmFeW9e0eDpyesgZGTnttW3NGohkOEDRXkSbrVPMVqblgzTXlQbx1hR+pTO+e5fy 5a8Ft41eetmKfOBlJc5OCsmr2mEQmKyPaoyQnW6sLpBzZik4EHL/BqbT7+N+wlmLl0Jd 2DwyU/cb20bmPcnLF3yfFAT6hqnyO9g+icI7UCv7rWkEqBpJGc79okFVNLsGkHnuzQ/5 g4/HMa14ppEdZN+N53oKqKIHOtSKgSzYjy3Lm0eG0WJP9rPS4SaIBWXOXsnjMwX3mmKP /V+kEMI+QyIHKKH9jsSMNK/XJJWZ08jAZ4QBwcMDl82Bkv7CKfhdCs76E+zURm8ridqg uW9Q== X-Gm-Message-State: AOAM531EBHShT3XccTOMBQJx/M4CiI4u2b7FvBZbyErUd3wIHAGVAD53 iYeqI3h4kVhVko0IRIjcSD5GgHHhd4WGmOzJnIo= X-Received: by 2002:a5b:303:: with SMTP id j3mr39601718ybp.433.1619634858689; Wed, 28 Apr 2021 11:34:18 -0700 (PDT) MIME-Version: 1.0 References: <20210414184604.23473-1-ojeda@kernel.org> In-Reply-To: <20210414184604.23473-1-ojeda@kernel.org> Reply-To: mceier+kernel@gmail.com From: Mariusz Ceier Date: Wed, 28 Apr 2021 18:34:07 +0000 Message-ID: Subject: Re: [PATCH 00/13] [RFC] Rust support To: ojeda@kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, First of all IANAL, so I might be wrong regarding the issue below. On 14/04/2021, ojeda@kernel.org wrote: > > ## Why not? > > Rust also has disadvantages compared to C in the context of > the Linux kernel: > > > - Single implementation based on LLVM. There are third-party > efforts underway to fix this, such as a GCC frontend, > a `rustc` backend based on Cranelift and `mrustc`, > a compiler intended to reduce the bootstrapping chain. > Any help for those projects would be very welcome! > > - Not standardized. While it is not clear whether standardization > would be beneficial for the kernel, several points minimize > this issue in any case: the Rust stability promise, the extensive > documentation, the WIP reference, the detailed RFCs... > After reading the interview referenced by https://lwn.net/Articles/854740/ I think there might be issue with licensing - few quotes from the interview= : > And on the other hand, I've seen a lot of BSD (or MIT or similar) license= d open source projects that just fragment when they become big enough to be= commercially important, and the involved companies inevitably decide to tu= rn their own parts proprietary. > So I think the GPLv2 is pretty much the perfect balance of "everybody wor= ks under the same rules", and still requires that people give back to the c= ommunity ("tit-for-tat") > So forking isn't a problem, as long as you can then merge back the good p= arts. And that's where the GPLv2 comes in. The right to fork and do your ow= n thing is important, but the other side of the coin is equally important -= the right to then always join back together when a fork was shown to be su= ccessful. Rust compiler license doesn't require for people to give back to the community - corporation can create their own version of rust compiler adding some proprietary extensions, develop drivers with it and even if the drivers code will be GPL'd they won't be buildable by anyone but that corporation. The rust compiler license doesn't require sharing changes when you modify it. The similar problem has flex and openssl required to build the kernel, but so far no one thought about abusing them afaik. That "single implementation based on LLVM" uses a mix of MIT, Apache, BSD-compatible and other licenses. It doesn't use strong copyleft license in contrast to almost every tool required to build the kernel, except for flex (BSD, no (L)GPL alternative afaik) and openssl (Apache license, gnutls could be used instead). I suggest to wait until featureful GPL implementation of rust language is made (assuming GNU Rust is on the way) before merging any rust code in the kernel and when that implementation is done make a requirement that all rust code must be buildable by at least GPL implementation. Maybe it would also be worthwhile to make the requirement that the kernel must be buildable with free software (not just open source software) explicit ? Best Regards, Mariusz Ceier