Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp320793rdh; Tue, 13 Feb 2024 19:22:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOusm1/9iaEZsfYsZOLWLo6sHLzpC9/EbrKSkNSjYuLA1U5xqvhIL8CqGKqeqXjnd60U5B+LuhnZQq+5AiD8oNZO+mBkiSmehcV8Keog== X-Google-Smtp-Source: AGHT+IGgK9VuE/8EsZ8azhP0robk1lmYhWSwzDmFm+t4BNE9NhsRAqXaYm3WqGymx8OY1MUhwoin X-Received: by 2002:a9d:6b09:0:b0:6e2:d985:2d54 with SMTP id g9-20020a9d6b09000000b006e2d9852d54mr1948787otp.0.1707880959169; Tue, 13 Feb 2024 19:22:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707880959; cv=pass; d=google.com; s=arc-20160816; b=HvCcCUFt9IghC206npnP+tIfD/huj2gDlbaAFWO+vIdZ1v2ZcGWTKXLzM95KHmutp+ 0EudlRrxGLJR/1Bjc7dEYqTM/Zg+R4dYjhufz4ynUEN+DGV8HSsmunGY6DCvUPSye12c LxJhvogmiaiE3zUg9vmRQ6wLQjEDOfUxkj7s58GVaqfowgxeqA22fzNEBiVopFP0y84q nsnDmUwodb4Qq0BnKJtCZc6LT5JhpIe3KBX/3kC9Q4u8i6spbJ8v4FhhTjl2HW2LLlBN aajHPCCKpboBeJdemM44eE71X23k2hqvV7WHdAvo2xH1bIRiOGEv2x12mixSVZxjk7Ab tzCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=DjlvOe+u+cyrL4JYuO9gr+urwu384Wuuey1WJE8DSes=; fh=s1rNims/wIjGsfeRoO/jK2HhAQp+xNRmKKrLdnbbfc8=; b=x0zy1GVwTRrLOdTvpN7XQ2YVb+eAcEy02/cwVfCjnMVm53hIGZ8F140Wde/LdsRiYz ruVoCQGTnc8p4rMeE3tP7UgTBHMfhe+HASlv4xpXC22zIiWJXDLfnIv/5ekKv0X5jDiA RDffY11/3Pjz/VstRC2bipa0ijQKaN+FY1TxiG0mbHq9dMT9VocH2XugNU6e5nmfgt+M qXr4ys+FOQfVBFH6bb6yUA2NQx9QN0I5QF2uzIXjfqjc+jbAJa1ACeuS1RTSuL/vzU5G bWDJaplWvVFBjAhq90ldJUnw+AamSX6e67hWELIBlGSLKPhzK7acM8GOzsCJIkMMqY9o KcJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=oTkGF7IN; arc=pass (i=1 spf=pass spfdomain=umich.edu dkim=pass dkdomain=umich.edu dmarc=pass fromdomain=umich.edu); spf=pass (google.com: domain of linux-kernel+bounces-64702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu X-Forwarded-Encrypted: i=2; AJvYcCXY3uLmEnd42S8MU1KQeuAkRCMf640KVSuUB85/Yqf/Ouo1RUkVN4w4cwhtdj7Sm6aNC7SlsDPJh/QKyX+zOTvAyMrol64ZWHsK+c7BeA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o22-20020a637e56000000b005c6b59c91bbsi3108662pgn.654.2024.02.13.19.22.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 19:22:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=oTkGF7IN; arc=pass (i=1 spf=pass spfdomain=umich.edu dkim=pass dkdomain=umich.edu dmarc=pass fromdomain=umich.edu); spf=pass (google.com: domain of linux-kernel+bounces-64702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=umich.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E9FB2B2330E for ; Wed, 14 Feb 2024 03:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4190B64C; Wed, 14 Feb 2024 03:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=umich.edu header.i=@umich.edu header.b="oTkGF7IN" Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDFCFB645 for ; Wed, 14 Feb 2024 03:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707880469; cv=none; b=hFamVsT+LQWMD3x6KMh+G56kZaIBMbCMYCBJH+ULyN75q2TvlUQpprVhUjhsFyNxpsEQg9qqosU60gZ2bwcU3i4Dhy73uH1H2oRqKXibUb8HzTNI3Zp4u7FShSgYRRZceaHIPyJIQbsoGMySbT2sDRlX3UOYFxkGwHCofEn/rWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707880469; c=relaxed/simple; bh=DjlvOe+u+cyrL4JYuO9gr+urwu384Wuuey1WJE8DSes=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SEnV2Waw0jPG0T7FNI7optzbSo/QNJofGoItUIMaVwGb2R30WVKSoZS4TICSjTm5h6ofxC/HqgUU4jGVgteX9CloZ+RXc7JkdD4PBOlWFxO+vyX82VO2k2PCQXl5fO8kfjRbOwDDwFeC8kghXNJzuhtt0aeDkGJqD9GaSBKZRnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=umich.edu; spf=pass smtp.mailfrom=umich.edu; dkim=pass (2048-bit key) header.d=umich.edu header.i=@umich.edu header.b=oTkGF7IN; arc=none smtp.client-ip=209.85.219.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=umich.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=umich.edu Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dc6e080c1f0so4366668276.2 for ; Tue, 13 Feb 2024 19:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1707880465; x=1708485265; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DjlvOe+u+cyrL4JYuO9gr+urwu384Wuuey1WJE8DSes=; b=oTkGF7INEwmhImM3Fdzh8IEZN02Nyq8pWl0G/5VdH06v0kRby8N3zJvVIhVaB830lq hnL5gSf4HHBuW6b11+vPITS0inE0tjwoZyM/ueSKG4+OiXJu//a0rG10UOH3iV5I9UY7 chfSdfIRQdm1Sg+dZmEPMDV30y9cKhggyqIQFgtiP5tZx2wjiX7PfC9zhd65Xru0sSLo NfINhU/r+MAtnwH2r41Jokc/n9/EcDRaAV7eKpaUcez3RoyhSx9m2GgROzEsCaB69oQl +/vGsfeBDo0e4jYLS1EKI/OEP76/U4aqV4rmDfjZiaMXgKxFDN8E4FrnTol+WIgSkTY+ /eJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707880465; x=1708485265; h=content-transfer-encoding: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=DjlvOe+u+cyrL4JYuO9gr+urwu384Wuuey1WJE8DSes=; b=dvsoe2wxsE8dnJ24V6icY2/3ykw9bKmgjz0BnvNgq+ZrBIErAqvJRlixHU5lnOIrKq tTIJcsnFcToJ9T+yeG4ywv2+2KgZm1ZF9CIQHbB8Xs7A+w0aokOIiwZ0C0vTAziDuTZ2 nYLcmJvahESekNL3FIYUUH5HxSJ7f3QhthAvuInzz15+MqsAWSP6n2sM6g6Z1UihRN05 HEE79VHQi+hjyZas31HVz5XQxppnCAkFoTVCfudOVAWBaI+gWAqTIIe4SzCF4sE8fz1O 7L2PDyCTMch6p8NCN3sVLUIDYtN+bXeDzAPBp9mrCpGIWOyUMjzB7hTBy3YlU9xTdjAl K8lQ== X-Forwarded-Encrypted: i=1; AJvYcCWOl3lqbW2tH5OHs1Wxx12uG+4AeVpfuPukjnAPPUzIpKZtDyNgjXrFnITe8HqA6EHcWvk7XgFe2WN59kmwCXr8HSkmdGqGepASATlb X-Gm-Message-State: AOJu0YymVmf33uz8ALtKosELcARqKf8DWqygvAsYbcQ6ow7HOh8045VL 4eyd70Mpb2NGeS9NBGFIJihjiYJawJFPtmdquSj/WchBRB/ofF3H8AN8GWa0LhXx6UBt7RWKq1L mZN552jR6TZcxCKa5N+GE4GuIMeGGlsyvee1mPg== X-Received: by 2002:a25:aacb:0:b0:dcc:35ca:aac4 with SMTP id t69-20020a25aacb000000b00dcc35caaac4mr1239282ybi.51.1707880465625; Tue, 13 Feb 2024 19:14:25 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240117-swiftly-parasail-618d62972d6e@spud> <20240118-implode-delirium-eefdd86e170e@spud> <20240125-bucked-payroll-47f82077b262@wendy> <20240125-lazy-thrower-744aacc6632a@wendy> <20240126-eccentric-jaywalker-3560e2151a92@spud> <20240209-rage-keg-1b2982cd17d9@spud> In-Reply-To: From: Trevor Gross Date: Tue, 13 Feb 2024 22:14:14 -0500 Message-ID: Subject: Re: [PATCH v1 0/2] RISC-V: enable rust To: Ramon de C Valle Cc: Sami Tolvanen , Conor Dooley , Miguel Ojeda , Conor Dooley , linux-riscv@lists.infradead.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Tom Rix , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Matthew Maurer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 3:09=E2=80=AFPM Ramon de C Valle wrote: > > On Mon, Feb 12, 2024 at 12:36=E2=80=AFPM Sami Tolvanen wrote: > > > > On Mon, Feb 12, 2024 at 11:04=E2=80=AFAM Ramon de C Valle wrote: > > > > > > Sorry for the late reply. Sami might be the best person to answer > > > this, but KCFI (not CFI) tests are lowered by passes that are > > > architecture specific (see https://reviews.llvm.org/D119296), so we'd > > > need to add support for RISC-V. There is no additional work required > > > in the Rust compiler besides enabling it for the new target. > > > > LLVM 17 added KCFI support for RISC-V. Sounds like it's just a > > question of whether rustc uses a new enough version of LLVM then? > > rustc is using LLVM 17 since > https://github.com/rust-lang/rust/pull/114048, so I guess I can enable > it for RISC-V targets in > https://github.com/rust-lang/rust/tree/master/compiler/rustc_target/src/s= pec/targets, > and the Linux kernel will get it on the next compiler update? 18 as of a few hours ago :) https://github.com/rust-lang/rust/pull/120055 Just for an idea of timing, anything merged this month will be in 1.78 on 2024-05-02.