From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 D100210A16 for ; Sat, 10 Feb 2024 08:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707552799; cv=none; b=eQQ6NWlJTI8bSnf2y2euNhEf1S3fccOtNZYIYMbGpw8Hq037dZAXIjVUTPWbGNp/26tlW4ROX/Gwa0+ddEhPxLOIR8dadZUwoijfBNVBGYCzykxrXKQDjVyE5xArdEXEs/YbGfQ1IyaoLeCU1BM2V+4tIXq3doP21LbKQCAsLX8= 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.169 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="fcmXXufi" Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-6049b115630so19228407b3.1 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=AJcY62KZfZyOzNidY+zThu7As6hBi1qnFxRRssLRrQz89mF+F3E4ixFo6b2wlj1uto 5GfcufOW7z2O3zmAlaVJCYn7p3lQu4FLkoo9kBrC0dPcjyeCxKtvix9O0BqV7vN7nR7d E5A77iVi5G+mibJQDpj5GzHNfYkgFqySmweS0MImgV3UZiwoy2/OnxDCy+zB13+pZgwW JT3wgK3ve8qS2qcIkSzgDt7uAUWdu2fLTGd7dNevJhLELpKL3uEZ6NlqCX0nHWlLOfkQ V0QSjl9BnDLuJ3YyuRoxxIbcyBZw2RfHDSKkwJipUyqjRhBG8/qigWUi5+AwH/R5hIGX S9vA== X-Gm-Message-State: AOJu0Yw/zPAf8DfFgsDG2gKr5y8di0yNE/kxPOfjAzBBgdLiKEbGDU4v H0/E2qXSjQkfUyElvyxfoq8yBQgJjnAt7LFSnFpDZmwSBumPwNwMEKYUQB7VMAkE80gykc7vUmH i8025DoVHjqQYkUMSWrZj7SLVgEQ8sQ1StQZjnXPFvxsqgihZAE5bIg== X-Google-Smtp-Source: AGHT+IF4tUvf6ttwQdM3xfeC1VlLijJBFO5NkKyzXeExzVFNvP7Fl5D8PP7Tfno5g/OaAlhCpe9aPfGgUUtsjZouSLw= 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: 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: <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