Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1877985rwi; Tue, 11 Oct 2022 01:26:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Rq28oFsdYjIjHVXU9pRhWl8Uua4O1yZKSigzRJq84YMYYIDlKRlDwUG/xSn5oeH65iCjf X-Received: by 2002:a17:90b:3149:b0:202:e9e9:632f with SMTP id ip9-20020a17090b314900b00202e9e9632fmr37497600pjb.96.1665476803551; Tue, 11 Oct 2022 01:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665476803; cv=none; d=google.com; s=arc-20160816; b=eCXJGaFHh/hoWg2fDfvBbyFxKW653vm151mVvPu32RwIqB5u70hVT2mHEjG1of53hd FhX9JLrt+Faepi2clvT9zIjcQqvrhPf60I4VKnPskORZd9HZT8v1ZvT91Dr2T/jfo6Kh MW/NTT+88gSdQ3o60RtCn3iZL7chgF+4SuFdyJeC//quPXvn5THKubmPpAv/dyyQtFrO uU+NDohpzQIrVjSo9bA99THnlsf+nW17QkxSMorM8AIH3P4CisH70qig/Mj0wlQKBpU8 9srwaR7AAIJMsSwntOjlX7TnezRbHosrypv6BeY2W5LMkmTqgsss6ZZJboUVTyyRvs0M HO7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u50EcsTI9Wk9/nFFcEKJjzHJXjNQpjwE8MEPj/c61bk=; b=lQYYaenPnNbHrHM67cEodK7w7w8B13SALpvjPznJt17tshh/Fx7XBk5iQ57SWe5jQ0 LXtw2A6JTfYNFItJms2DYaVFj37/Hhl//OLWwU1s7JDuDuxPH1I9NjD2gqfN9aoTz2yD HIEKZBIoGM+8Vx0xbWmZxiA526r+bAPjChr1Yaq1TfVHdDuplUFaqILvWdv0th7YZPdv E5xAaHhjAzX933ub84EN6gOsE2NtRQa6aos8ncF4NKfJtu6JnrgOykK5OHaeY/gmsMHp l1ds//HK5JW+/k7qOQgFEFaswgwDoVfunmUF2GikovK3JxWl44Uu6j8n1IWQQcyBJQ4b EnrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=jRN7B6Bj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cj12-20020a056a00298c00b0054307ac90f1si12825727pfb.319.2022.10.11.01.26.31; Tue, 11 Oct 2022 01:26:43 -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=@infradead.org header.s=desiato.20200630 header.b=jRN7B6Bj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbiJKIFQ (ORCPT + 99 others); Tue, 11 Oct 2022 04:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiJKIFM (ORCPT ); Tue, 11 Oct 2022 04:05:12 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5904D276; Tue, 11 Oct 2022 01:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u50EcsTI9Wk9/nFFcEKJjzHJXjNQpjwE8MEPj/c61bk=; b=jRN7B6Bjxy2MH05q0VSH4fvQvY +TydedfMaV9P6yrvHLi8GPvH4QZqoYXkd0Nu2oZ4lFt2wsdeLOhD6zhyxXHFDg0mjdlmn01cqTeeu KcPMPeOeWFcSILoeKQ61er9iX3EIBXx1gDLuAcu/WeCW634UldSWDwlzIYeGUAiNC6BcGc/gYgHVO ykcKWqOtKkIbA+aYGKQRqzXaINp2SoQO6GNlbGVAGQ2mHB7m8oFFsVdDMmqvYUYEwswJ7V6YeCYlu SWG5BbfQxgPLGVdnp9qp+wQUeQhCYsgrELuKqMkXPb6VIKu9RZHUj+9EpXekIiUE5A6rhA53FIdZH tRibQBQw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiAFo-002Wc3-Tn; Tue, 11 Oct 2022 08:04:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D982D3001CB; Tue, 11 Oct 2022 10:04:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BF85020D7E1AB; Tue, 11 Oct 2022 10:04:43 +0200 (CEST) Date: Tue, 11 Oct 2022 10:04:43 +0200 From: Peter Zijlstra To: Sami Tolvanen Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Kees Cook , Alex Gaynor , Wedson Almeida Filho , David Gow , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Mon, Oct 10, 2022 at 04:15:33PM -0700, Sami Tolvanen wrote: > On Fri, Oct 7, 2022 at 10:18 AM Peter Zijlstra wrote: > > > > On Tue, Sep 27, 2022 at 03:14:56PM +0200, Miguel Ojeda wrote: > > > Note that only x86_64 is covered and not all features nor mitigations > > > are handled, but it is enough as a starting point and showcases > > > the basics needed to add Rust support for a new architecture. > > > > Does it fail the build if required options are missing? Specifically are > > things like kCFI and IBT enabled? Silently not handling those will > > result in an unbootable image. > > Rust supports IBT with -Z cf-protection=branch, but I don't see this > option being enabled in the kernel yet. Cross-language CFI is going to > require a lot more work though because the type systems are not quite > compatible: Right; so where does that leave us? Are we going to force disable rust when kCFI is selected ?