Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1406571rdb; Sat, 10 Feb 2024 00:13:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg/CnTTG1wLxjrEAm4baHN29K2SSEthgLwp+FbhX+MdtAxqVpb25mjMqcMXqBP61i796qg X-Received: by 2002:a17:903:41cb:b0:1d8:ab27:d784 with SMTP id u11-20020a17090341cb00b001d8ab27d784mr2259985ple.21.1707552810174; Sat, 10 Feb 2024 00:13:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707552810; cv=pass; d=google.com; s=arc-20160816; b=O/OD4hrqV7NJinXErUJniAAhebdkkseBSKTJsl6vDuzXjqWst5N2fNrK99Ggi66ClQ DpQxa6AUpfEl9RXErSEhROf6cjtntHpMgyKWJGsCeWE4kisMvhvnWXUjLdZtWwRAtwZq RPyjYVOG34dEfqlFmKm86meTabOYlj99TLDKjTy4zDZAce6micBbqIhlDSAqOMNRqPXS JZve9JtI8lEJBv9sLqiseNqwcNKtJfnWPAUE4L6VgFZb/wFiLu5TeBu88yj1/H8YkUZV X2xJ2rcWuar838v7y2HaIlp+bfrjUqhjAelMzoZd7RnU8tgcFgrNHH5T+ULwqabfMkMn dcUA== 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=Glo99Q4rZ224bZIULXqWRKYAJ1UBUwAAGaeNDMYK3aY=; fh=Wdipm1alZgWUvkglt1BAetwDPyqdnRDqPVEFUpkULMQ=; b=ERGM19Dmnl0pCo+2Q2Gc2OmI9N1miyBI1wgd3o8Zl4uJgz1zoly/k/rBBHiWBB6MYr +zT4ry0qyLH+Gu+uL/yPK/SxhyHjEh1QTpAwg4cQ8LcVjz+XcBNeTTSKBpHCtl8rAkJO r0G4wnTC804/VLA5MGbj0EiqlWX0ypNOVCIUlEs3bH11ReJ7XX7xI3AoNaKOTJx1D2S0 iWe5ke7Fm5YX8DThqGAGWz0UmjX+gtjkA0H1KSGsWWfTyOEkyK8/sjr9Nh3VpIa0E94p 2zmF8IeX1i6X6QxtQSVcK6WMFwImA1dU5wePR9PI87DmpWACOTVfYf/9axNGdPPYQ5ek Re5Q==; 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=fcmXXufi; 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-60348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60348-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; AJvYcCW5kwO4C31HloHVvskgpWJnpcIh97N3Rww45mIFcKtTTdBPGvHnT/IXaZu/J2QfI1Q7KNCmGMcYj3YXrQZbFbc3M0yzGn01S9p5fZEKXQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x5-20020a170902a38500b001d917fa8be8si2998804pla.257.2024.02.10.00.13.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 00:13:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=fcmXXufi; 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-60348-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60348-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D441B282A53 for ; Sat, 10 Feb 2024 08:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9001810A16; Sat, 10 Feb 2024 08:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=umich.edu header.i=@umich.edu header.b="fcmXXufi" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 EB8132B9D0 for ; Sat, 10 Feb 2024 08:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707552799; cv=none; b=RkDwZxmUeDQ3a4h7x/1DmExBpa5fba/i4OIy3rLAihAk5BFROCR9Ks8NLwOo0jgBofiHYzVOnJmW+0anNar9IDlYDF7AEC99i86jEbXcf3QqXkAaTtzoi5ukJ5dKdm6Q3pWZEv5o6AiKGs5GC8Zh9rENXWDrHTzv0F1XLLM3RTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707552799; c=relaxed/simple; bh=Glo99Q4rZ224bZIULXqWRKYAJ1UBUwAAGaeNDMYK3aY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RvwBcdhspgMhSuTMzDeKwwd4Ylbdoite+39IOkU3VUb8PexSBQfR6DPVzj+R+kSIrUQzbg8IN1l5NxVH2SVcH4GxynpGpouY3oifOLOjetSvjn5pk6o3swfkZ5bMpVVGfyHgeKqef0L7y9fmtNltSD1lQ07x9DpS1lTggnPevoE= 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=fcmXXufi; arc=none smtp.client-ip=209.85.128.170 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-yw1-f170.google.com with SMTP id 00721157ae682-603fd31f5c2so23664517b3.0 for ; Sat, 10 Feb 2024 00:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; t=1707552797; x=1708157597; 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=Glo99Q4rZ224bZIULXqWRKYAJ1UBUwAAGaeNDMYK3aY=; b=fcmXXufiGwJTBnjMxw87JvxkGnPhQdK+m7Ywu2uCCCwlUKInTHch4pKP1abDg54s+q sowiXrsCogHCiRjiNwp5MktcZXaWhCl342/Smihu5ZguRpCOWNsq8zz7dyCPse+qVgqY rgy82FTEdnK79lpCCCAlJ2C4HisoADhp8oJ9Qe2x6SkQW0SlK2yrAAS7hNAbwz8sEKyH qpz4bYXMlkFdXha5+r1LiXMZsXWNrSCkEft8VoDsC9fWYZ0OBs80hCsMKc6pTLxek4mO yHEubhJJU2mZAQrhg98b88j8GH+ajhCOOiIX+7qZ97DUTi9wGt7tZo0gA8UfYD4O90ej LCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707552797; x=1708157597; 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=Glo99Q4rZ224bZIULXqWRKYAJ1UBUwAAGaeNDMYK3aY=; b=NjpM2NJSKvQjRMwSkgHV0tP0TDXMzNF5paFewtvI8OVICaMjZkzSfLctYxwLXJn+cA 1ECIRtormMFzzb5FEeShqG57lpI42ClHY8XKoUg2Gy65h33zVOwX91crBpmzLRgzzZPC /JvMCVGNrY2kH1x+Ln9Ha7/yJ9vRozxNVG/8KIw4lHh5z/3qc9Pa0yvD6fxOV8K/K5qS ziUlFQSLySLSSL/AUdhca6Td9aSHa/CkTORB9yIVb1ZXd6LPH1VHflufcszXn5ZAeUvq TaH3YBKQRm5dK5XAn06e5hzQKVya42SLQQD2lK4YMiMVZO46IZyBigtnox0hbX11p2Q2 NZaw== X-Gm-Message-State: AOJu0Yy9ZYf6FyEulZHNxRRVynYolx6Lii1TJd5p0vFVK6vLwa1UuNQm YtT7MiUfcEigsjIMquJhXoxhPdTt4sP2ZLTDELMfo+9Y8lX/vP1DIKRt9XqVUsEe5CE1jcaYTtP HaC7j6PLzKbtqmam0Yz4B25i36swRLynT3dxCtg== X-Received: by 2002:a25:7c02:0:b0:dc2:201a:7f1a with SMTP id x2-20020a257c02000000b00dc2201a7f1amr2506701ybc.30.1707552796867; Sat, 10 Feb 2024 00:13:16 -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: <20240209-rage-keg-1b2982cd17d9@spud> From: Trevor Gross Date: Sat, 10 Feb 2024 02:13:06 -0600 Message-ID: Subject: Re: [PATCH v1 0/2] RISC-V: enable rust To: Conor Dooley Cc: 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 , Ramon de C Valle , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 9, 2024 at 9:18=E2=80=AFAM Conor Dooley wrot= e: > > On Sat, Jan 27, 2024 at 02:46:38PM +0100, Miguel Ojeda wrote: > > On Fri, Jan 26, 2024 at 11:01=E2=80=AFPM Conor Dooley wrote: > > > > > > Is that even needed? We already have ARCH_SUPPORTS_CFI_CLANG and AFAI= U > > > rust supports it if clang does, so a second option is superfluous? > > > > From a quick look, I don't see it enabled in any RISC-V built-in > > target in `rustc` yet. > > > > It may also still be the case that KCFI needs some tweaks for, say, > > RISC-V, before the flag actually works, i.e. we couldn't just test the > > flag in that case -- Ramon: how likely is it that RISC-V would work if > > KCFI works for aarch64 and x86_64? > > Well, there's been no reply here. I'll do sa you suggested and add a > depends on !CFI_CLANG to RUST. > > Cheers, > Conor. > I asked on Zulip and it sounds like Ramon may be out [1]. It _probably_ works, but going with a dependency to not be blocked on KCFI is probably reasonable for now. - Trevor [1]: https://rust-lang.zulipchat.com/#narrow/stream/343119-project-exploit-= mitigations/topic/KCFI.20on.20RISC-V.20questions