Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp116073lqp; Thu, 4 Apr 2024 08:25:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjw1966CxsQ8joXj9SHswKnLalPPZtgFJ58wOpF+tJYWjtNxxU39/vaBECw9ZTX/2G6wcA139WAlp11wfUb3sbTRIuAQTrEr9S4LP1QA== X-Google-Smtp-Source: AGHT+IE3cptwUIApUzvHZFFwP+qPka46GRfXf+Blg21E0Pyl9uzeFbhc1zdE3IHahJ+DcQuD0d/L X-Received: by 2002:a05:6808:ecd:b0:3c3:b623:1d21 with SMTP id q13-20020a0568080ecd00b003c3b6231d21mr3041036oiv.4.1712244339073; Thu, 04 Apr 2024 08:25:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712244338; cv=pass; d=google.com; s=arc-20160816; b=Im/I4qwovuXd7ZDepPa5y+8ZYzAKLzTUVvSF1D2B0BiPdxQrhh9HP60iMkJvR76xTk D6ELtKYmddnGRbhIhVfiVhbrp6eErbFBfGsyAeN560BF9rjjOShDP0OhMEEn/sGXUmzF EdMdetn+GSXlsICeVeMdc3zVjKKY8vgt/rxeYr1svA94i/MGBSXw+ZRobDn+dYIyNzFp lPhBB/yapj79oxEgCDSIgHJA3irmzzkdozBk5pooaDW4YAm3lW6C2MYvJ2NpdZFAVhCq yFmDbU9AIgTsTaz7iqH0pPCSu7RFL36PzwQzwcqlg1ejtd3LYKqACbqSSLBLY1MGd3mm b9Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ByPtciC+URhiVQn652U1XVXGfMYChxV1rxw8MNlXaIw=; fh=7R5B+60nOF9fbPTvOHnkj5fzdpRN1DRR4W9Ib7WbuDU=; b=sxxshOKZBzRIUt5ajT8Fp2+v55CqLbPbFWFgONgOsQn1dyd7UlCFmysxZRh52esXX9 53lN57LpBWJEF6oz3fLuRQQYqMe7Pnk6ngccBEL196ue/gFGhr3VXFtFwIZr5eBT45Xp xMb/vZ98UWXJNgw8ULPxz9FfVcGMPpjyQowiQfHfxwtdUHkl4UJSxSZffkCa1azzEbc+ NjbItHqvBSO1F8eBNAqcsS2fmcXMDmyHHrxgnsSuS1fJ/tQuEHHShzGPn2gnWlt1jhfC scJS6XRvLzVeQBbAJBU3PKVr9lshT1qLFsAMS8EFV+/zmymhLRYzS4ZCAOoBCByLyTNa MNoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3KbwrrJQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-131720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 s31-20020a05622a1a9f00b00432df4df3d1si10461462qtc.498.2024.04.04.08.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:25:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131720-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=@google.com header.s=20230601 header.b=3KbwrrJQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-131720-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ABFD71C21BA2 for ; Thu, 4 Apr 2024 15:25:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D7E9129A78; Thu, 4 Apr 2024 15:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3KbwrrJQ" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 247C45C8FE for ; Thu, 4 Apr 2024 15:25:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712244328; cv=none; b=R7erYSpdia1hL7XYaYBPGwRfK93D09Z6n1KF5asoTAex2q7Gj/n5OVKv+xFT6fLGqgxielsHlFhFYGFZR/aVynGOjMor+fR7LfUBy1eJ+69/t9+sdDkowi+jtHqb4EeskxSlLmSGA9x/PQ8XeazvZoLQPCku04D0wME8D4exlE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712244328; c=relaxed/simple; bh=ByPtciC+URhiVQn652U1XVXGfMYChxV1rxw8MNlXaIw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fZsX6eTvyEyP7gNgbO3/TUMP8ETxd+XA/4PaShYBzkwK9FIPPOrVIc1w4cqLlXlee2vaoiKrMjZBFMTAdX5Ij5hwDLysvX1QvEUBoJ+A/0gJCzddDbzboG4gCp5U3SBLzrlyxQUqR879SbTU7uwEGqklq7m2lhB4/HIxcPZxWsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3KbwrrJQ; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56dec96530bso15807a12.0 for ; Thu, 04 Apr 2024 08:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712244324; x=1712849124; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ByPtciC+URhiVQn652U1XVXGfMYChxV1rxw8MNlXaIw=; b=3KbwrrJQZzfIrIw9kmj5cAwEQcQe+0cQnLbAtma5TERwj6wcfCE6ZBwEZrc8GBQgfd nlisOW0fe6K0IcWmdHupK7T0l94BQkYP6YJORP6rpGJPLZMGZeUmNPZZOudKY+QoUkHZ nlFVDvvnypBAHuFzeY2WIkVAmNjHFn/eOCIcO95ndgR6Wy5nIcOIlyoSkSUjbwuXnpsi plka2E9MmNY6aqwGdt7w9bX/tLEDhm8hDMkK2YSZpfFMOHRWrRsAOocQvAKIDZ/BIWrH t0tIxSik+9PS4aLEsc0d6c5feBKF5WWeo1u9J67F0dVw3/o0cMwQRTYPJjA/amRbZ3o2 cXpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712244324; x=1712849124; h=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=ByPtciC+URhiVQn652U1XVXGfMYChxV1rxw8MNlXaIw=; b=hkImqRgLoQ0S3R7diX8+8exjXc/LSts3E2Gmp5K+ZK/ecVmQfaMzFQNvaGFxVOVyk/ 1o5RlBVhmYWPM3qvi8wEGBdgKOiUVdVG1bF1j7BBLyk9FdVeJ70krRosWIgIk7DD+m9K WnuHhKSSyc92f9Iyy6MaibzrZtF25kK4AawwXTT6w8Xmq2/924VsYWnOgbcBe8LzW2x/ uMk+W7sPBbFrbd+twEQxyjXt13GBcjRP83aTFSq6r1hrqFiXhxTopjiHundtq0GqORhl mWBB43tXPN/JGQQtgRr7UgKDYI9JRr6rKeYUSN96EhuskfIhOB2GQdrhGgfY4sCRkcOS t7DQ== X-Forwarded-Encrypted: i=1; AJvYcCWugFU8YU4Riahxvi4BZIEhuyqVx77uPcAeAf/x4TMWnl0IEPRWHYgHCpsFx/ZQWQZpR4Fs8wA0pNQSJ4yMjYRlQkqrxrN21oK+758N X-Gm-Message-State: AOJu0YxA9cSPPvBwQRHCD9pbRB3TpX3eyjazHk5TbFckoO6MO2XR1lBb AAbU3RIYEef3i1imntgca5TtGIDI4Y6HysdS2CccYqAfSXvy4SrdIOAE2euzzz0igHwsXM6+kbq WUrw4OoCYf8cHCsqUgxMliGsPCf8sOHiJzvCj X-Received: by 2002:aa7:c38a:0:b0:56e:234f:b44 with SMTP id k10-20020aa7c38a000000b0056e234f0b44mr71333edq.5.1712244324404; Thu, 04 Apr 2024 08:25:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240404-providing-emporium-e652e359c711@spud> In-Reply-To: From: Matthew Maurer Date: Thu, 4 Apr 2024 08:25:11 -0700 Message-ID: Subject: Re: [PATCH v3] rust: make mutually exclusive with CFI_CLANG To: Miguel Ojeda Cc: Conor Dooley , linux-riscv@lists.infradead.org, Conor Dooley , stable@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Sami Tolvanen , Kees Cook , Nathan Chancellor , llvm@lists.linux.dev, Ramon de C Valle Content-Type: text/plain; charset="UTF-8" > > Cc'ing Matthew & Ramon as well so that they are aware and in case they > want to comment. > > Cheers, > Miguel This patch is fine by me - the last patch needed for KCFI to be functional in Rust just landed upstream last night, so we should revisit this (in the form of enabling it) once we move to `rustc-1.79.0` or later. In case anyone wants it for local experimentation, I have a backport branch [1] which applies these to the 1.73.0 compiler and enables it in the kernel [2] (not upstreamed because the feature isn't yet in kernel's `rustc`), which Android will be using for the Rust binder driver. This patch will require a recent (last year or so) clang, as it relies on `-fsanitize-cfi-icall-experimental-normalize-integers`. [1]: https://github.com/maurer/rust/tree/1.73.0%2Bcfi [2]: https://android-review.git.corp.google.com/c/kernel/common/+/2930616