From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EFA3C11F67 for ; Wed, 7 Jul 2021 15:02:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B24161C7C for ; Wed, 7 Jul 2021 15:02:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232233AbhGGPEu (ORCPT ); Wed, 7 Jul 2021 11:04:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:34576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbhGGPEs (ORCPT ); Wed, 7 Jul 2021 11:04:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A661661CB2; Wed, 7 Jul 2021 15:02:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1625670128; bh=iUEaNmD1G8AtYx+9qSBK4uhIyEmiUz6skAmuZSeVgAM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sp6UbCh6nuEdb2cILd/CA2SPHg0uGN334YlbJyyqdk6XGHIQYJZixCWrMxOInyLan /a6PWp2pdC4IhVmnGnkMK6VceFklJVCQY9rdoXdElqUdEG8uIpB+TzIU60tz4OPxO2 z0ICeTzdVmDeliK8N1DIbIM9rLzJUOzPogoCnZvQ= Date: Wed, 7 Jul 2021 17:02:04 +0200 From: Greg Kroah-Hartman To: Wedson Almeida Filho Cc: Miguel Ojeda , Christoph Hellwig , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH 00/17] Rust support Message-ID: References: <20210704202756.29107-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org On Wed, Jul 07, 2021 at 03:07:50PM +0100, Wedson Almeida Filho wrote: > > Last I looked at this thing, it was not > > feature-complete compared to the in-kernel binder code, has that been > > resolved and the needed filesystem changes added? > > It is not feature-complete in comparison to the C one just yet, it is missing a > few things but not for any fundamental reason -- we were mostly focusing on the > kernel crate and tests. I love it how you call "binderfs is missing" a "few things" :) > Miguel's point is that it does implement the vast majority of binder features > and is non-trivial, so it could be used as evidence that useful kernel drivers > can be built with Rust; not just "transpiled" from C, but written with the Rust > safety guarantees. As Christoph said, and I and others have said before, binder is in no way shape or form anything that resembles any sort of "driver" at all. It is a crazy IPC mechanism that is tacked onto the side of the kernel. Not to say that it doesn't have its usages, but the interactions between binder and the rest of the kernel are very small and specific. Something that almost no one else will ever write again. Please work on a real driver to help prove, or disprove, that this all is going to be able to work properly. There are huge unanswered questions that need to be resolved that you will run into when you do such a thing. Good luck! greg k-h