Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1001172rwi; Fri, 14 Oct 2022 11:20:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Uv6YarEvJEU2lOSZMQ8eo2N1wErTXCD0D/ITEezJcPDpgNeA6YiZEalD5GPZthNXn4P6E X-Received: by 2002:a63:5141:0:b0:43c:1471:7eb5 with SMTP id r1-20020a635141000000b0043c14717eb5mr5457980pgl.587.1665771656656; Fri, 14 Oct 2022 11:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665771656; cv=none; d=google.com; s=arc-20160816; b=SHkESn1Xb2c0HM6bVrWFtqrWtdm0oEuPf4eWAajGaG6Q9XV29yi2UKgA/bTzhAmoKW c5iN1fQBgyWeWcwWzDr08QQSDN/wMb3D+jnHf/3drFu00rBXgWvDiJBXUt8UtUEQpL2N z9s5njIvNSwh3Gm+SuBIee6Kdk+aNe2jYtbIOWSQ91wmnWZkjw0Aq2uk37qu50pMF620 AWjM6CA7ln8xu7RmP/OvUwX6Ms4Xb1vdfTZRxJvIAe8akXBZJwmzz7fmPvlxTkvfj1tO Zvv5p5/K/Ew0XNUTYO5ZNndtC4DtGoxkNVFOIK0FxjAo6/oqNVLiJQov6oiQonEfevSl EASQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=heX+Vf4ClPZWziY9bX1NMfoFhQNF692mEmPkdTluBtI=; b=b69qKrtGZiA79gDyKsMnRvYWqW2Gwta6WpH+NTw/MAbn8PwWUmVlBhMzzxj3iBga53 lP0aMktfpCvShca7ZadHOSE+aARbY6in3FNCGd6rmsdolc+huN5wNyLDWCiuF16MUq8Z wL4k9w/ZnpWJb6GaAzx4iHbV9X7Eyp4UEsEMIWmHRgBVL/77rOHRpcXEn1XAoXgeTbpy RdVA1/qXZ+be4tHe8NDt4BsX9yAi2K/5dXkQD/hYK9a2wB99sp4wt+VrTQYqbWnZn7m9 PviK2W1hs14UN4RIftj3KKjY9jFhjGTPf1k3fURBIU3jDwKY7bFMpZ5t5xNofJIf/0Sl y5Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BZ0YQm3T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a170902d1d200b0017a0ecb4fcesi3193393plb.383.2022.10.14.11.20.44; Fri, 14 Oct 2022 11:20:56 -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=@gmail.com header.s=20210112 header.b=BZ0YQm3T; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbiJNSFY (ORCPT + 99 others); Fri, 14 Oct 2022 14:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiJNSFT (ORCPT ); Fri, 14 Oct 2022 14:05:19 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B325F275F3; Fri, 14 Oct 2022 11:05:13 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id u10so2915950ilm.5; Fri, 14 Oct 2022 11:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=heX+Vf4ClPZWziY9bX1NMfoFhQNF692mEmPkdTluBtI=; b=BZ0YQm3TM80LUGEu/I6xjj9baWntOotGI3JZbxq9/KPD5bc8vmQyk3V3by2cnlzVp6 KEprpwCXOhFSo7hEfWVuCzK5oiz0jCA6J2lW6AkLmB7FZJ7tVFf+amf1HrGESND5g/x1 yrJxmk0G0W8KXUTIIM4hOf6YVaDOaQFnSiffMjF1FoYP/cNaXSDKXrO0rjLX2ihh5YNb nbuhzOgisGmpmpE9iF9K3/ySYvH+GJfskpiZi60nXSUuq7f9C7Bm5QUEf3rG1bE71njV 6mKDa2jmT9kjw+QVy566pI8teS4G7grRKZxO1zd24zlxM2p073KMWqH+DpTgN6pn4Fha wlTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=heX+Vf4ClPZWziY9bX1NMfoFhQNF692mEmPkdTluBtI=; b=VNGKCQxp7u7fyIuv2NqWxk1RuvA4CH+fUvwLgwWuNuKW3qlSPR/1bwej0f4VGmJVUf wyUULiQJ+cjQdMFdapzOO9axvBQHOMekdN71OqBwwv+Z7eXxS6s1bMyfWax9Mjj36/5V fmBWN7Q2fI0iH1BzfjOgn7Ef0UooQuhTEjmXYQuKT3udPTmbyHvmT+YTafe4m5tgIYsT VlZ223jW/Q3wzxJ4ImikSji1b5trsid0tHFVFdOeYqn8Z4+eJknjXk3mYcR49k46fZ18 cMBlUSNza9WJeY6WtLhdapuc0BgY3aD146St1EI9Ut2VLkhKV5jG38LNKtIGYinw496z H6GA== X-Gm-Message-State: ACrzQf21T5kiVim9QdtHK43KyLru6giae0lhvGOmjpL26EtZtBJa2XXx Yv+wwvdrZXh8VCJvtkbC/57i9yEZLQqlzUYgSXw= X-Received: by 2002:a05:6e02:1b0a:b0:2fa:1435:a0fa with SMTP id i10-20020a056e021b0a00b002fa1435a0famr2920474ilv.321.1665770712014; Fri, 14 Oct 2022 11:05:12 -0700 (PDT) MIME-Version: 1.0 References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Fri, 14 Oct 2022 20:05:00 +0200 Message-ID: Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support To: Sami Tolvanen Cc: Peter Zijlstra , 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 , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Tue, Oct 11, 2022 at 1:16 AM Sami Tolvanen wrote: > > 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: > > https://github.com/rust-lang/rfcs/pull/3296 I have pinged Ramon de C Valle as he is the author of the RFC above and implementation work too; since a month or so ago he also leads the Exploit Mitigations Project Group in Rust. Cheers, Miguel