Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1987202rdb; Mon, 9 Oct 2023 09:01:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErEPGtyGHfjlGVnvonO+7rYWN93pX6Run+2AEsWbPgK2OWYiwormy+s0/WzMUTjlxL9duw X-Received: by 2002:a17:902:c084:b0:1bb:b30e:4364 with SMTP id j4-20020a170902c08400b001bbb30e4364mr11944987pld.39.1696867286717; Mon, 09 Oct 2023 09:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696867286; cv=none; d=google.com; s=arc-20160816; b=OGuhiZVSG4+cJtiWzgHT3nSBhfbZKar+fbvuRojP2RVAqNEOUNtYuOHe7/3jzg3FTZ aAOIHywDl06yz23rqF5n7m6LlfDBnW+14yIQu82AQqidD/vjXPPFAfCHzPhAjyEXOpKM 21/7Ph2XkgkqPUAe6MNLcFqUK0/sOpgTCjWPCTNutZJPkuHQ7+N7Sy79p3sMKLwo1ryP hp01f4rA1UVX2UDwK0Z7FxtJwXHB7g7W8uVK1gJhj/egGrD03wKbXHmkaDmN8mr7OoLg dgpql87aF5DMN92tHogCGEjFblAX3ftzkOrzNXQfvx7f9L38wgGedenXVlFuG6IKQ8sY dnzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Zy5f8ORtjUWrgt6sYe3zAtjW8P0Slkj5alaIenUuvkA=; fh=yXknDlbqcQkqlLbec71VafSuAs2SIiAVUFxMJeEcahc=; b=k47yylYYqF+kk67vdDxdy4wZG9Wqha9RpsVgFLU9hMT8GDuAcvo2cjTm2aXxFYY3X6 HYDC/tm0dQSTFVEaqUo7XFdH3W0WzeqGpoBrRBwSuO233y0P/19MlGJRDVLg5gRWtJ8R ZflC6uxfyT3gxWU5K4sEHIjcZ/LsHRw6JLiLfqjn2SD7T1npSbv2agA6UJInpMfsrtZl C5knCmsIhcH6ZF01nHVan+4y9jdurRVTITgKORgV5XfEXyPXX9OcbkNn/pV/lqr4RG25 0aBuKnT66vt5Z+uVJ4qQt3UCYZKe1GDDAZCLisGZW2kkdfZJTAPyGt7QSGfV3JBhphB+ hSYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="aKrtAd/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id li13-20020a170903294d00b001c6182d7d43si9541735plb.21.2023.10.09.09.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 09:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="aKrtAd/a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0A3D781113AB; Mon, 9 Oct 2023 09:01:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376813AbjJIQBQ (ORCPT + 99 others); Mon, 9 Oct 2023 12:01:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjJIQBO (ORCPT ); Mon, 9 Oct 2023 12:01:14 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3407491 for ; Mon, 9 Oct 2023 09:01:13 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51e24210395so19125a12.0 for ; Mon, 09 Oct 2023 09:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696867271; x=1697472071; 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=Zy5f8ORtjUWrgt6sYe3zAtjW8P0Slkj5alaIenUuvkA=; b=aKrtAd/apyvDwBTXOL2x+4v9FYk4wHTVm4maaxcAbTlxsn94pIijPz8X+b6ePHkKHU KAaZK3Fcrjv1yTSxumGjzV2Sbzf0vujyKm15Ydm3/YWwrfbesw4MwinrmBodxn5gywn7 p6gpu3Vz/3MzwFppNPt1T0ZDmOKTG6W4SQN/CigA4JA3w/42nlj07+VP7gKWGoh73V3N p62D+HvdSlhYsd/I4zrxHRbfw26ruG2T7VRysjliyDQVSSyRx/euuha62wj+d6B55sez o5uXOJQfYOmlQ5FvFg1pwbrAcm4+DuuGFM0IB40Svk0JypLZKcsimph1gkUJgH5d/i+a 3YOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696867271; x=1697472071; 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=Zy5f8ORtjUWrgt6sYe3zAtjW8P0Slkj5alaIenUuvkA=; b=VWkJfYXrwOe0v+z5+YnBQtsEYueP8pfwA/8PHzPRijwJ1ypIBq1qxsH6D2dON9nK2D yfcP4O25en6sPEwOt8hTQSUoYax7s23u5hw1QfSyGU1zNUEOJTQuKhc8C0Y4V2i2Pck+ UVc82L/wrUkVN/WRxW1t9dll4M/ygZFyjUDM3YVVBgzSSpk9CImkV0e8wE84BfpTNxvo G6doY4bdfXi40DShpcCMgDibXstOcx6Ny5y+UzYA6OpNF83N75dBIHh0eQR9CtwPJXat VOqqaphjxJvdFFxfWzmneVL8SMBvWRva0XDSDDFnSCtT30unPrqCHaMv6BzDXIb+RFkV /h9w== X-Gm-Message-State: AOJu0YzHMpeDjsLASm9A9S7P5NBugmEpf+e53ybkaQoKFxINi9QZUNAW LIfhVBVdgzf8/LK/yoZd4Ad2K2N+QjmnAjfafqUVow== X-Received: by 2002:a50:9fa4:0:b0:538:5f9e:f0fc with SMTP id c33-20020a509fa4000000b005385f9ef0fcmr404150edf.0.1696867271482; Mon, 09 Oct 2023 09:01:11 -0700 (PDT) MIME-Version: 1.0 References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> In-Reply-To: From: Matthew Maurer Date: Mon, 9 Oct 2023 09:00:58 -0700 Message-ID: Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support To: Miguel Ojeda Cc: Sami Tolvanen , Peter Zijlstra , rcvalle@google.com, Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Kees Cook , Alex Gaynor , Wedson Almeida Filho , David Gow , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 09:01:24 -0700 (PDT) I have a patchset enabling support for both KCFI and IBT in the kernel, but it uses changes not yet landed in stable rustc, which is why I haven't sent it to the list yet: https://github.com/Rust-for-Linux/linux/pull/1034 We've backported the changes to rustc that need to be present onto the Android copy of the compiler, but it will take 6-12 weeks for them to hit stable rustc, which is what general Linux is using. If the IBT part would be helpful by itself immediately, I can split that out - it's only the KCFI portion that won't currently work. On Fri, Oct 14, 2022 at 1:40=E2=80=AFPM Miguel Ojeda wrote: > > On Fri, Oct 14, 2022 at 8:35 PM Sami Tolvanen w= rote: > > > > Thanks, Miguel. I also talked to Ramon about KCFI earlier this week > > and he expressed interest in helping with rustc support for it. In the > > Ah, that is great to hear -- thanks a lot to you both! (Cc'ing Ramon) > > > meanwhile, I think we can just add a depends on !CFI_CLANG to avoid > > issues here. > > ACK, thanks -- if you want to send the patch, please feel free to do so. > > Cheers, > Miguel