Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp554767rdg; Thu, 12 Oct 2023 13:32:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFG3EgOQ7RAaIfDl0mhhFxPnjH876CK/w3v+LEL75aKYb/Wt1Mb8L6DF5ZNxW91TGUiPEa7 X-Received: by 2002:a17:90a:e144:b0:26b:3751:652a with SMTP id ez4-20020a17090ae14400b0026b3751652amr25463264pjb.38.1697142759053; Thu, 12 Oct 2023 13:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697142759; cv=none; d=google.com; s=arc-20160816; b=flI4gGTfusbEY1LT2XVO1Ilbhx/H2TLJACnyvMQ9Os2iEOaJ16Jvasb2YBZhYflr/V +BjKfuAgf2IotVpTq/Q9mHmu2tEPlPM8b0cy+W1HUYiTJw/XFSE8VnyTUlmMY6UBRaYW jNWeH4D23S34I22R6azRS7jDNixFUiuGa8bxfqlwjsoIX/z2B7x6k0hXTaBvOCAhl0Nf n8PONlA0JUZSIktpkMcOpRX3aKMor+GnWaUshsaOBmcUkjhapZMsePsxV5d44ts1LoYg s7OgL5iahTMGjDdCEPPkmwJrwy8Nte+Q5REb8+BpFFKD5AcwOZK+ywuCTfFlpZhAmtCm Mh4w== 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=Cm/AgXb2pZX2bhYC2JHhdS0bLLkwtZFpfedsIjsGaxo=; fh=zCerwBKfrAYbzylBVsx0KOC8a2QoG9xv5T50x/Ywf38=; b=fWr9+bjRM24dIejkmOLwsZ+Xb+GHlIhdgr4WL2JofKQZGA7pJRIQxCQ5VpzReK3wrt C5y5jkz+iREJHe/4o/09fEayYgZizWrRMcqKQrfGxRSfz0UE1MUsBBF10ekuOGPHKjci 4huINNHBcYDzsZzUtiE9EQJbrHKz/98ZopSdTxDGZlBa09Wh0ULUo0qaFqI/FES3zBRt vBsiy0ldHv91FLVc3Vlml7EhEwlzqqxzzZT7mh9Zcv8OdTLcdhesaEEIDKBr/uh38qNm cWmNHuyiMUx8VHZaCT4Ija2gzrNAHA8+2saxVaH9C1XUiD/0k3nqWI7oOyzu18LmiTtu KOlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="cL9/sn0t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id lx4-20020a17090b4b0400b002684bc84493si3431884pjb.131.2023.10.12.13.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 13:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="cL9/sn0t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C95BA8086830; Thu, 12 Oct 2023 13:32:36 -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 S1442277AbjJLUc3 (ORCPT + 99 others); Thu, 12 Oct 2023 16:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344046AbjJLUc2 (ORCPT ); Thu, 12 Oct 2023 16:32:28 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 936E9BE; Thu, 12 Oct 2023 13:32:26 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a7c08b7744so17121707b3.3; Thu, 12 Oct 2023 13:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697142746; x=1697747546; 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=Cm/AgXb2pZX2bhYC2JHhdS0bLLkwtZFpfedsIjsGaxo=; b=cL9/sn0t9eOihbG1agUbr/zv1Zjp6ue4q77quXg/X2JJpSwfsrqtm39fA7wIvW6L1V 9PBBpBfqcWKR0A92t9ssREy7SsHejx9rKnszq7F5T1uveKi0QIkbrW9/0pJbzgwJlkf9 X7qyh2z1UibiESsIu7MXru5bqN/SrG26vnEd44994PeZyH0pBQLUpq7oeynf6pr+/Iob 3FhbWeVO2ICcY1y5UdeFXHTa2Vk81zyb31lyZXBQctZRqj5cNlv0l9xa2BKzADGq5fX2 2LfZUWiX47SMswiGyAlP2y9RJnCmiB8izYbPRNL+s7cxBOe2ynkl/4AOIqL3DVSRJAEq vkXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697142746; x=1697747546; 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=Cm/AgXb2pZX2bhYC2JHhdS0bLLkwtZFpfedsIjsGaxo=; b=j41ughAjc2VwPAqfUzxQTaXjiIgU5baVChN9GUH756aPnqFiK/kIlqfh4/paQYVC1A cq7nWLkdNW1ljOOG38+uM6ybi66inu0lwai74AZWW2ZtfxMWcXxNCQyYDDe+E0w15hL2 jIaUaAeORJYsVLl6S9opaFm8EcQ1YTI9IEsfTuR8FsK17S4FNZHt2kYG9UjXWczs2TQ1 0egkdAk0OCuojrOgGxJA2H1JlWX8aU5I2crouxY58mB9pv9M1tgyqYwmtdxoTZdXOBqy WRlISBghXAHkt6vIX02ZIMZhbi/OvrlamalMcE9PfBC4t5eXwNonavzDCe0ywO0b2bVg HpZg== X-Gm-Message-State: AOJu0YyvKbkCHlVyEXf9iLKmlDTMFMYzntmbwMk3cQIRdqjzznfOS6wo TIbkCoabtZncH9qYTQCOrOsn/VZuOLzOjt92vTE= X-Received: by 2002:a0d:e284:0:b0:5a7:baae:329f with SMTP id l126-20020a0de284000000b005a7baae329fmr10012845ywe.15.1697142745697; Thu, 12 Oct 2023 13:32:25 -0700 (PDT) MIME-Version: 1.0 References: <20231009224347.2076221-1-mmaurer@google.com> In-Reply-To: From: Miguel Ojeda Date: Thu, 12 Oct 2023 22:32:14 +0200 Message-ID: Subject: Re: [PATCH] x86: Enable IBT in Rust if enabled in C To: Trevor Gross Cc: Matthew Maurer , peterz@infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , "H. Peter Anvin" , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Antoni Boucher Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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]); Thu, 12 Oct 2023 13:32:37 -0700 (PDT) On Thu, Oct 12, 2023 at 10:13=E2=80=AFPM Trevor Gross w= rote: > > I have not tested this, but is it possible to enable these options via > `-Cllvm-args=3D...` instead of using the unstable flags? We probably want to use the "real" flag eventually instead of `-Cllvm-args`, right? So we would need to change it anyhow. And using the `-Z` one means we test the "real" flag already. Well, unless `-Cllvm-args` becomes the "official" way to enable this, like you suggest in the Zulip, but should that really happen? e.g. should not there be a generic flag for all backends for things like these? > If so, I think this would be preferred in case the exact flags change > before they become stable. It sounds like they are likely to change, > see [1]. That is fine, they will change anyway from `-Z` to `-C`, so having to update those is expected. > If not, no big deal since it would just need an update at a rust version = bump. Yeah, I don't think it is a big deal, and the version bump looks like the best commit to put the change, in fact. It is true, though, that these ones in particular are conditionally enabled, so there is a slightly higher risk of forgetting about them. But that is why we should get more `Tested-by`s! :) Cheers, Miguel