Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp264269rdb; Sat, 27 Jan 2024 05:47:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZqtTwdcNADzpxlOKAODcm3CPmyX3B7Ljg/0BeoAlxUAplQ9pMH7hy3/LQ8JMU6Zko1hWQ X-Received: by 2002:a05:622a:1a8d:b0:42a:5f4b:173c with SMTP id s13-20020a05622a1a8d00b0042a5f4b173cmr1717481qtc.20.1706363222284; Sat, 27 Jan 2024 05:47:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706363222; cv=pass; d=google.com; s=arc-20160816; b=ud4k5sAiXPWb3ObOdr/Rw756g/Qn9foP+HHl5fYZMGI0+H5Yt4rS5ZzNsSuvf0mW/y Js0SGGANReP/dsAxP4WlUkx+2Vz7zwt44GMgWF9w7O2EcCLi4QU3wY2N6MuhUjdvMq6l 5jzPM3A1VpoYJfG7M1xlIQ1qykpPXiO5P7SPwv3B/ZyQQAxU6kUhvoQeWYFjEJdGWMCm cX/OB+n5ECvI1RDPqRIrxMKVGC8pftYrc7VU4HCrW/k7WGoI/22mW28Jb3Zrr6hxYAZN k/Bedgve8F7bNv1l6Clxb4GVkZHP6k9nAZtTTSVl3wsXxipvR01NYi5SGIc6zrY6KTFg YbZQ== 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=j7l3zAsK78DoVXLg6iPo3Iy7at8rxO0NoQr3L4U6WXQ=; fh=qoS/QcUGJ2rlPby9Eqw9Uq1TnohixFg+7XvF4R4+zng=; b=yjqbwL+0zuDyo933GUdcly3Y7KTY3Y+IWQAJHtQoNte7SoGM853YtpD+0TusjTfROd Cy4Ofo8icA+wzCy683uHsSOOY+iJ+baCMBwGcdYpjzdxyATf6IOEjAARulaLL4MxZoor BcaZfnZ+OuJWzm/u6LIApbp4HPczhKMpliNRxC2eNF803zCvBMuEahhSjF7jjCZGzgJv WanfjXtEold55dLZpTZc/Y5lwkb4LvyJ39p7DFl9rl+LmTsihYJFEWRDlVkAeZuu9y0s KSac9E/9SC9OC5dKd1zFI7CDjwhzyuzVuawGfXIl1p8U/hI3u8WkCU4GbJZbYW9lQa4h YVfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G4lLGmLt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-41206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u2-20020ac858c2000000b0042a84d7b972si2739310qta.746.2024.01.27.05.47.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 05:47:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=G4lLGmLt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-41206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0CE9B1C21CC9 for ; Sat, 27 Jan 2024 13:47:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABA112576B; Sat, 27 Jan 2024 13:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G4lLGmLt" Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (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 75C0F945A; Sat, 27 Jan 2024 13:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706363212; cv=none; b=K9U+a+LD3TrAPxeWsrB2+/cIeSd3jZJH2hKsfC37aaTuXUlJyK3UUfZxe/xDgPLfkn1gIdw2+Tq62oCYbIWsY/sigc9tz2uHZVNAo5kFYnZK8R9qwUjFpsPW+NJAZCnv8S8VnUSUfNewqM58osgsMA/Zi0QnKK3kplgIlpmXZpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706363212; c=relaxed/simple; bh=j7l3zAsK78DoVXLg6iPo3Iy7at8rxO0NoQr3L4U6WXQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=QFd8YlBvFrdtbLPrAMmUrc35QngJsQcC4tNVbSpDz4dMEzxxz/i20XZg3fYX0mqGcgqCQKZZaQXWwRULIMJlhaXOf71co2N6Ca5j+AKSgTsJ/EG8cwx8Oz9pc9nL+sbMt65u/6AjQSjH3XruNeNd97sL++oKuJCBLgY2kkkUc+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=G4lLGmLt; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-603c5d7997aso256467b3.1; Sat, 27 Jan 2024 05:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706363210; x=1706968010; 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=j7l3zAsK78DoVXLg6iPo3Iy7at8rxO0NoQr3L4U6WXQ=; b=G4lLGmLt+8tIUu3seRozH8eeI2hwU9AYmBHqs8YIPNuMx7oF47ee9XmlBPavPkVSMZ tO3lR0i2IdMuUtLiMJwXVxOaBTr/9ro6DNB8FBafYpFc0oXyCqMC4GSijbDc20V/grx7 RZ7Nh+AZIcI9dlwDqqQUd9fIXjrL1fYlPEy1xfLd2QhgyVpO21s8vJjOKtKAmoV1S7rI ntD52yxQd42e4eK1fyJQgf60Fw0F8TKBAOdqWbBprjOmeCUKmqTS8eD9VLBjFZSBryFg 6viE09cNQKeeXjklHAN6+8HSk77YatBOr1M0ORMsi2UpeoO7+Xr1G9nz8HwunYqJLH/b 1V/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706363210; x=1706968010; 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=j7l3zAsK78DoVXLg6iPo3Iy7at8rxO0NoQr3L4U6WXQ=; b=TpDBfZpBR4Cv7ohKo6Y8MqmW+iZ8V6A4f7NiVFxjI2BPQMhNJFgnzAixxe9p6sBAvn RL6RbVq10lm87h2e0ibzMEUQd2j4tjRy2uk69cfaEElkzusHWYGadqIuRYNNsaaT278q Qgz7jqaL4BdNLNCuAuM8A0gFw+4ZfjycMIX7jeMivKhPQEK7WSeAoIdFaD8J6jlmHcD1 VHuzzNVnLryVptG4AYnPyKENfSO0dLnykXIK1cOZUzR6mP0XDHktPcn7lXaYKE5qp7rO VzApM4a3X+qRtyWyH09WPk+v+P3mHuX4qkcuovYwLh2Ufz3ISIZrzCknJPA2SWzz+Ffn nJIg== X-Gm-Message-State: AOJu0YwkIXcbS2PSKuqdxhT73UPFQvAjZSBSrWdR8yQGH0Mu5QvsARnG IlyE6ax23M2By3uyV7CYq5sqXOxonFJfJsCUGCKuemVecoRTlMKUD5hQIeaNxFY+AISbsOh/RlO Sq8FNJl8mu+AB7SOq04INOZ7wfP8= X-Received: by 2002:a81:8411:0:b0:602:d19d:7853 with SMTP id u17-20020a818411000000b00602d19d7853mr1231429ywf.38.1706363210302; Sat, 27 Jan 2024 05:46:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230608-spiritism-gonad-5f5aff4c3a24@wendy> <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> In-Reply-To: <20240126-eccentric-jaywalker-3560e2151a92@spud> From: Miguel Ojeda Date: Sat, 27 Jan 2024 14:46:38 +0100 Message-ID: Subject: Re: [PATCH v1 0/2] RISC-V: enable rust To: Conor Dooley Cc: 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, Jan 26, 2024 at 11:01=E2=80=AFPM Conor Dooley wr= ote: > > Is that even needed? We already have ARCH_SUPPORTS_CFI_CLANG and AFAIU > 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? > I'm reading back what I wrote, and I must have been trying to get out > the door or something because none of it really makes that much sense. > Of course an unknown option should be detectable at build time and not > be a silent breakage. Maybe I should have written the patch for this > before sending the mail rather than writing the mail based on what was > in my head. No worries, it happens. I probably added to the confusion when I replied with the "testing the unstable flag". Cheers, Miguel