From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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 B0072AD5A for ; Wed, 14 Feb 2024 03:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707880469; cv=none; b=jAF7DF0c0gtttohSkJlcB3RoYF9UceW9Bp6PIS2mRajuZuhGglLc/5WDC1QeLUpsbIMreD/MMAm5A6NcY9CLjDxqDtZYcWelnU/EYlzDyuECnlZlhaP2dTD9ek0iFFt450kC3uu0jFbI5xtkFz5LEnfgD1Bg8fCCKrpKHRaXzo8= 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.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=umich.edu header.i=@umich.edu header.b="oTkGF7IN" Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dccb1421bdeso1344697276.1 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=FKmhb42KHbzE9BmImUbbwLCF1EVu8gAjA1a8dgD4AFA0KDj3FjhtbYNYAaRLlg0RBG S+1M+ZlUQi97CX5GrygaUnb2RdMwkJoZjeJkXHVYrbQC+7djTD2VG0cDE4bsTVRDz93S wob5RtIpHAEEWUEmjBktC5jRvh2Eiw2FkESZDPtQUyoVwY5eqzLoUc2+vYcvAFLM+GE3 lUs+9EvCwLmI8/qDklMUelok9jzNv/znG1QJOBzsL2w/eFzDf01TAdlaxJlgZMrve3Cs zjIeCpf7DwUH+r6n6MvnwPiroS8lM/hX1YYpftb0jUM9Ju9BlemPFazOa1TBpSML1ubm uSSA== X-Forwarded-Encrypted: i=1; AJvYcCXP0Fo00A+fGqMZ0zvib5zoW+hrAUAboWInenlXH7d70sP3WccNhfJh8Vf0G8mfDD5fB64eLGvCMQ8xmcga+9lRVexZ979ni1pnW03bumk= X-Gm-Message-State: AOJu0Ywlzk/CsX1UbioxbgPbhxs9JDlp1QjgX26Z/Ih6JP7tfgLFsppT XMVJ5PAdkvDhtQ20lljvRMAu7v6Qxk0XUtMctJpEy2+AuQmeDlCuf8SUVnxuVLKu4ritL0GcBq6 Er4weY7SY4C2vnIWyAhEm3VSt1ethvwejX67NxQ== X-Google-Smtp-Source: AGHT+IFmvahvMgHVHQaI6LwlEgKPCBhhHem9kf5KUi6p+9U914j80HCS2QMvVYyZLMVtuaXgRDEFCZnR80UsYKJdDNU= 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: rust-for-linux@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.