Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2675404rdb; Mon, 12 Feb 2024 12:30:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGF47lJ9bx3lTg7vACwQiDBXn7C4PGzS4zmbQF7FBaHYU2aj4fdwEuNfPPmqwtmQ7NdW70R X-Received: by 2002:a05:6358:78b:b0:176:8101:7573 with SMTP id n11-20020a056358078b00b0017681017573mr7694059rwj.22.1707769809273; Mon, 12 Feb 2024 12:30:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707769809; cv=pass; d=google.com; s=arc-20160816; b=NFiXQmHNMFd4+dzVuPkjp8KXtV/REitS2SNTfK3tO60B0ZbFO7WqSaXj1XZ19WblAQ Y+XW1h7d1YNu8/80vBwJh2ChrkGz61lmijDD2sd+P2wKjiguzcrvM9AiFneYP3fvJOPS XXG5EaOZxqZ30RXkQ6jlOttkPXKyut9iqbQyrew1QImU9wkRxKN0Hz9qxXrFnuRgPkWI F3EgK8yqaKLNK0o8VnbjnDtMVpwB+AFCIC8fIQDx7LzUs1c6zuBmP9BIzVaOfgWjewcE EKD77mGXMBqisujPG4fPpftIZTB4Vt3SLzaHjmVZGAGdJHXwljXrNUrdPR5Q0A39q93H F1Hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Rj06hafTCiyYS44RXdDjgCx/QrBaExSSWLkRezkp1WA=; fh=gfHTcTm/RL1YDJ75vVTvmiMgxhC/1BgjhRtzcUoIkBw=; b=FtgNU5LRnKQkJV6FXRZRrd/UEfrSgfiHFoX3+JpdJ/kMiHKi3ErNMw8jJvJ9kzIGfp u3yX5AvjjahBol1PNh1Ui7NbR9niSbg9nEjibNG4sNzUr/J2X5ZtP8q8d/mvQuoDArXX 6hHuW3mX2kW6hlfc5EvWzLnnNrIZxPIJ6IKtf90rLPGSgaAW3ORc3PZYya9kbnpkuyeW 4VcCTY+Rlm1gFN23ncPCAttMtVX/q8B2dzB+dEo6RCYeZTZSL4/FsD3jBEaPsCUNC6ka F3xu3gDZCOKYHLK6GNJTM1JhylLGbI/UuBirTlk/9WGAqbgs9gTA/Jh7GDkyGGdUMJrK 9z1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+i4Kcy8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVy9eSVcbbZS//k1RmB8sIQspXSPvNwHRb9TX2YLVoYh+mqOQAY/v+1cjiL91aFRSz9gO7S8G1bN9+5CTMTeCyUPdFcHqkpfnc+9s1+uw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j190-20020a6380c7000000b005d80a51e1c0si711401pgd.851.2024.02.12.12.30.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:30:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X+i4Kcy8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62323-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62323-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 80073B24EE8 for ; Mon, 12 Feb 2024 20:17:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F395D481D7; Mon, 12 Feb 2024 20:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X+i4Kcy8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17ABA46549; Mon, 12 Feb 2024 20:17:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707769059; cv=none; b=IgRyXjrQoFsgKzSLPpTq+oRLWHS6HVSvEJZ/TS+2t/vui8XRRkG4RUrnDeU77T9d2HX2dW6bmjMFjY4EAtxC12NzzWomwLQF6zfO+Z2wv/WN+njkUaOwUAfu/nZIdy/L09QNTJvRrbycfWoTBvuTm6CbGtRnnuBqlJVi/w7DtSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707769059; c=relaxed/simple; bh=Rj06hafTCiyYS44RXdDjgCx/QrBaExSSWLkRezkp1WA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QDbGwyJIymzEfE02VKUc4zTuqlclShyg9JqEEZ2JdbCAOK9dpSv0xk8xGAhRcLP+FG8ADhtSbQHgbPFOnJa93tSBfEEE4e9fSdmdeUzpkd/fJtKGJw8SmgY409dwBJvay7bNhUSqrBMiFS7RRRiMwLiReGf+ZG2kpS6AZUxWThk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X+i4Kcy8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35F75C433F1; Mon, 12 Feb 2024 20:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707769058; bh=Rj06hafTCiyYS44RXdDjgCx/QrBaExSSWLkRezkp1WA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X+i4Kcy8KwTYZaA9DRB9gp/BAdGBVRfD7bKOCgPjeydbfp0mblshUNNi+P5qU3Ntt 9lSQdgC9J4E0ZScwHXsFpzj7dBZccyZve+F4ps1bMyLKQ12t2tW1LNjEpB3sgxXsbD tbzqtA+3ken2t/Xtbvn3/2Te6Hr0zJvzXRS2L7fK+nOm8Tey9Q6RN1v42u5lKhQds2 /wOuE+NL7eLCzORsTsJK2K9N3BwYIl0lYBmdSgKDtRV5kixXlRSrNM74oKh67oB4zv Io2hsp7zoaX2X1V52Hq6eYNDnecdK/TD3sjwSFVCzThrovySIIQlbv8kfJGJHZDUy4 Uvseb6GNI3UbQ== Date: Mon, 12 Feb 2024 20:17:31 +0000 From: Conor Dooley To: Miguel Ojeda Cc: Ramon de C Valle , Trevor Gross , Conor Dooley , linux-riscv@lists.infradead.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= 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 , Sami Tolvanen Subject: Re: [PATCH v1 0/2] RISC-V: enable rust Message-ID: <20240212-demotion-blitz-1c9ab85dbc73@spud> References: <20240125-bucked-payroll-47f82077b262@wendy> <20240125-lazy-thrower-744aacc6632a@wendy> <20240126-eccentric-jaywalker-3560e2151a92@spud> <20240209-rage-keg-1b2982cd17d9@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Fnsa84sXGmOTaKtZ" Content-Disposition: inline In-Reply-To: --Fnsa84sXGmOTaKtZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024 at 08:11:21PM +0100, Miguel Ojeda wrote: > On Mon, Feb 12, 2024 at 8:02=E2=80=AFPM 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 speci= fic (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. >=20 > Thanks a lot Ramon! >=20 > Then for RISC-V let's go for the `depends on` for the moment, and we > can remove when the support lands for RISC-V (ideally when someone has > managed to boot it at least under some configuration). If all you want is a boot under some configuration, that's not difficult. After all, I found the original issue by booting a kernel with CFI_CLANG enabled on the C side... > There is no additional work required in the Rust compiler besides enablin= g it for the new target. This is not super clear though, it says "in the Rust compiler", not "in the kernel's buildsystem". --Fnsa84sXGmOTaKtZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcp82wAKCRB4tDGHoIJi 0l0+AQDwAn/aq+Fts6yHPXow2miyTAWD/hM47HfQMPIODOb5ZQD/dkB5CAfEyKfu rkbwjea4usmgQD4BLThgzp4mlabBVwM= =ORjx -----END PGP SIGNATURE----- --Fnsa84sXGmOTaKtZ--