Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1019122rwi; Fri, 14 Oct 2022 11:36:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LtMixHl+5a5OMdxiHnIpAYy2DdPifsa7M4uXeZWYgOG3qZkmBqrpN7G2DUA7TdrciA8qO X-Received: by 2002:a17:902:db12:b0:176:d6a4:53ab with SMTP id m18-20020a170902db1200b00176d6a453abmr6699481plx.113.1665772601948; Fri, 14 Oct 2022 11:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665772601; cv=none; d=google.com; s=arc-20160816; b=WW7jHyySgGyqizbCW95GgHNRubBQebaCi+PDqpgjdj/wLZUyQgEGrnt06QZY92zEae aUsax9XPMu+jckODdTw8pi/JzEVhYvZexsYqq2qd5Q3Iw4k5V11Gce+EVbzAVZceI262 KbBDP+YXQJvmLEJ2j6BtD+WH8Iv2ifNnfqrMmr4/nkXtVesEh8wNAEHtzPuDWK2UUohJ 8IaH4iDsu2WJdg/H1jT1fcYWmQ4IMYaiwTnmJXSg7mxG2sB+QToMOpHc1Z67D0IC8Sla U6ls+K5x6MRzKTEAUhKlSvzdtbQp/zmRcxRRE1LFQij9AR8DxRV8JANrbF/VxfVWFrp5 uYBw== 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=dlOttIcbfyJ9Meuwl/3DVPLPY7LTZL8V6KpgIWHa/o8=; b=MUeQX6kyQFOihCtcnNcxvdcEnmE7kNkIOUZpVB9aZcK9TPsQacqLfaysxw5T+ir8Hc +s/WSxQR9laNVwIBajIvFJy5z4jczo1RJ1A8wQyqIHw8o1DWvw3stZFEm03lR0h4reFd 4V1u0xv0NdWUqT04h/kQrM+Ln5zhM7BQfdRlowGDXT47TTF2+eJuQSM1VOtbM+wwOCje 19zFvtOATJ0KJmiSiAoS/+gvYugyx5oDNbtBjO+YiEgRIQl35PRx0hDY/OskRcP9CUAj XKDW2/921RPdDu3S+4GXtXzDub3qppq+xbQGWLBVWOrbt4mwQM3aFzPOYbDCa41Cn5x9 2u7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bo+sSeam; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a63a508000000b0044d72a10ab0si3680683pgf.342.2022.10.14.11.36.30; Fri, 14 Oct 2022 11:36:41 -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=@google.com header.s=20210112 header.b=bo+sSeam; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbiJNSfO (ORCPT + 99 others); Fri, 14 Oct 2022 14:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbiJNSfM (ORCPT ); Fri, 14 Oct 2022 14:35:12 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 585074E19D for ; Fri, 14 Oct 2022 11:35:09 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id d26so12297869ejc.8 for ; Fri, 14 Oct 2022 11:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.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=dlOttIcbfyJ9Meuwl/3DVPLPY7LTZL8V6KpgIWHa/o8=; b=bo+sSeamjV3ogFeVE4woZcjggXzUoZaHSUx6jp0WPOZzpXDNmcc/cEcYdKtM48zH7e Q8hrssyWU3nff+vqi1+2UwgCpwkQ9mNZwhoxtCYtoyOImHoU6sr2EgS5FSVJHeHv72Gx ivMoH1EYL5oEpkIYp3Altv+OuFDnh25XvMft3oq6CAX7Lg1bHdcRUDF5uanM4EvvYYLH ScOMwLnABxganJ5jJ69lPKPQm06FeCCSHiH114ov0w+bi1KMynXHAw6J/ybjpBOkwQ60 Njc0xgYtm7geqQcvVxY6MqZQHxUA67w1M6uCS77zWiYeNi3Td5G/+xAI/uKs52rqfCAx VPXA== 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=dlOttIcbfyJ9Meuwl/3DVPLPY7LTZL8V6KpgIWHa/o8=; b=E5ZsnAxKsqdvhEI1QizrP+lTIYsLEMnUizQyg6kuQg9AuV4M5/BkUanGw5YTwD7uEh CrnVWU2/QJaDa7PlVjfWl4mTDKwRAvGcbm68teinez62jj+Ju9x4OFp7oOaeC9j8Npsg +KsRnsrj+WIUt8SdORlvqdaLY7uvP+XOrrJP5tW/7n5fRp7tqZT5Zm8CLh21iHgwPzkn zb6mRXbO7yD/N45/0qUsv9yG/qtYEF7oQV151ezXpctfiLRj3AHBACSTWLiLN04Rmwck bI3qu/a8bx5oBVIEvKP4LAXb8SKgLe35Tcg0ngY7KD+a9Lit2PQPw+r/8rdaOKpYHXMn jM2A== X-Gm-Message-State: ACrzQf0YZVqfki8Wj1gJ+5uRDe9FRFy6h+8XiNzRFHmM1yfwDV1nvxTj mtbF1+ygyl9o+LzGgDjYCfahk3H9RRngNBOBZRK6+g== X-Received: by 2002:a17:907:e93:b0:78d:46ae:cf61 with SMTP id ho19-20020a1709070e9300b0078d46aecf61mr4483765ejc.579.1665772507710; Fri, 14 Oct 2022 11:35:07 -0700 (PDT) MIME-Version: 1.0 References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> In-Reply-To: From: Sami Tolvanen Date: Fri, 14 Oct 2022 11:34:30 -0700 Message-ID: Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support To: Miguel Ojeda 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Fri, Oct 14, 2022 at 11:05 AM Miguel Ojeda wrote: > > 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. Thanks, Miguel. I also talked to Ramon about KCFI earlier this week and he expressed interest in helping with rustc support for it. In the meanwhile, I think we can just add a depends on !CFI_CLANG to avoid issues here. Sami