Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2678791rdb; Mon, 12 Feb 2024 12:38:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUjuQkhio8n8pt37pO4ACh0wqvOV9Cff+SNNyo6FleNqlhkbVf5+Qq3pLYDiyalPBv38F8 X-Received: by 2002:a17:906:a298:b0:a38:8529:3710 with SMTP id i24-20020a170906a29800b00a3885293710mr5030252ejz.38.1707770290885; Mon, 12 Feb 2024 12:38:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707770290; cv=pass; d=google.com; s=arc-20160816; b=kgDTkFWDvb/lfkBgKK/QenGGLza2tSAlIu9gkphwyUR6Qmzn0/z+zP856J4zVCRwCD wZ/EJqc+U3GD0X+MbnNrGlO03vg8nn/qCzN7qztPeSBnTlCFC91LmBH+zVqkeTo0PkRi p+3QE7eXqSo1D/3PjIKa9b3VYltvinojP1EMKUcj91IJjCJTc1Td2ftX2iu3rXuVwq8q VVsdQjKm30zgXmwaadczUXZX4qgB9kpbz5QTBEIK5TcPzL3K+us73quq5kESvqX3Cf3f vgnZHtp0pwOuK6C6AYUYXANSR34oeVSrTi8PaA4XgnQ1AgNOkKLp6fS3k46isLE4g94H +cYQ== 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=Fpc0F+qyMdb3ioJ2lc0gnHuRhUOcZrHYZrPqSExGyO0=; fh=fayF8yfIMP4DUgDFPXrD7HPfghAivhqcrZzk0W9UcPw=; b=v9ImfjrIRX9DMWRuuE7vWVCmqmxRwpCxk9cJWgXdtds/41OPrglitRO6dlimtBeMWX nkSRCPvsfoOp/OmFMBspCpou/O//75qmpW/nhDWs28V4cIVIeaRKq0wA2An+p5nSuKQH xTzcStGHdi3EJODR00HTvy23jL8sdUaDxkmWW3Hcq8iRAXieTrFEpC1IvcoyqImzUgCM iPN9oV4OacDaetW82DIXxKpBIACjLhcqIqdrPPms0hfevXCLyhcPE6B2He+ObaAAEXoN ycCaif8ELWAZ6ef3WvBqUUlZbMsg09kY6DH8Wf8NqVpTpD5u+3ICaifhPR+Enp7jQu9n ayvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERoYmQ4j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62344-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; AJvYcCWL5Wa7FYYriLD9qFR7U0nOtWUiOMVAnn1OSuWAGayaDAPUuALmavhc+5uEMQJPoBb3LkuYS7Xv6hsvOM6F/ZD/s9oKRFgChBlDDJejwg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gs16-20020a1709072d1000b00a3633ac23b9si562552ejc.550.2024.02.12.12.38.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:38:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ERoYmQ4j; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62344-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 766B31F228FE for ; Mon, 12 Feb 2024 20:38:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1339E47F69; Mon, 12 Feb 2024 20:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ERoYmQ4j" 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 285C41EB58; Mon, 12 Feb 2024 20:37:59 +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=1707770280; cv=none; b=fhHKtbtppvNJT+BddZik0b2HzwJYgiEPug/XlHLvynYyXB+Ub5NklFJGO4QIyCJZ3/AA3fK8tHU7xQdK4iXEcIFq/IFCcglPV/9ovBVQr9b9AsEXjrr3lvC6V4DZZ6nmO0988h9BFOVpCvIzZwaNLlrYcfKi+9oGJF7zQwRHfsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707770280; c=relaxed/simple; bh=Fpc0F+qyMdb3ioJ2lc0gnHuRhUOcZrHYZrPqSExGyO0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u0tK/JHwLy0AxC8F5DOVyRVwMDSea3lVtsYg90i0U9km8VtDGX1KSFGStiQpoKcEjRfIaN2wlBwmgMHiLwPsfi8elnEbxChg747ajpPHpbjm1JOyTU9E9ZYa+mPsgf7/cS3pcwNlP4qn4gU6a5BJX9n52F4O4/MnMPyx18Yn9dA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ERoYmQ4j; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 680E0C433C7; Mon, 12 Feb 2024 20:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707770279; bh=Fpc0F+qyMdb3ioJ2lc0gnHuRhUOcZrHYZrPqSExGyO0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ERoYmQ4jogZzX3jGbXTPFUvQKZxZNyUDWD1L2SOQZHWtQ7IFM5lc9jiHFaHnsMIXX FuaeoD3/gDRGSXA6Q0aG0m0mRh3347oJzaYWzkY2HfQuua1xc53rOETQSs9Vmn58Fd rlAXeBece75Z0pCccGm6xTU/O3OCAnzS5JiJohr90Dm1DK5RWh46KFxwjnQxh4izeu HSQOyL3bfOQ6/W3mqm1GuWLJUhB2EiNdWsxcrXqRmkbSgZBU1l7wRHclc3D9vN1pDk azNptHEvsIBkkmmNalf8ik6jEbP/rpO/lgIQeQSrxowuNPYZiAq6webhKmgLTFpTrE YoKwiqot/WBWg== Date: Mon, 12 Feb 2024 20:37:53 +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-outdoors-french-a40d57e38c71@spud> References: <20240125-lazy-thrower-744aacc6632a@wendy> <20240126-eccentric-jaywalker-3560e2151a92@spud> <20240209-rage-keg-1b2982cd17d9@spud> <20240212-demotion-blitz-1c9ab85dbc73@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="7thX9cC6woknPGKe" Content-Disposition: inline In-Reply-To: <20240212-demotion-blitz-1c9ab85dbc73@spud> --7thX9cC6woknPGKe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024 at 08:17:31PM +0000, Conor Dooley wrote: > 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 thi= s, but KCFI (not CFI) tests are lowered by passes that are architecture spe= cific (see https://reviews.llvm.org/D119296), so we'd need to add support f= or RISC-V. There is no additional work required in the Rust compiler beside= s 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). >=20 > 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... Also, regardless of depends on on RISC-V, things will still be broken on arm64 and x86_64, since KCFI is not enabled in rustc there either? > > There is no additional work required in the Rust compiler besides enabl= ing it for the new target. >=20 > This is not super clear though, it says "in the Rust compiler", not "in > the kernel's buildsystem". I realise I was not clear either. What I meant was that this talks about rustc and not kbuild, so what is meant by "the new target" is not clear. Do arm64 and x86_64 have functional support, so adding RISC-V in rustc is needed, or did you mean for the new target in the kernel? --7thX9cC6woknPGKe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZcqBoQAKCRB4tDGHoIJi 0iGKAP97UKgRmbxcqgRIJWahLsNbdWqhmMMWsoa78Iykcp7gmQD+JtaSuLVZzvRC 7MFMT30bfndJIV8nNlMBmx4+XtVlHw8= =gsZ6 -----END PGP SIGNATURE----- --7thX9cC6woknPGKe--