public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Murphy <murp@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust] rawhide: Fix shadow stack related test failures
Date: Mon, 10 Aug 2026 22:14:10 GMT [thread overview]
Message-ID: <178640005052.1.7199090959950899048.rpms-rust-84cf26f5cb9f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust
Branch : rawhide
Commit : 84cf26f5cb9fd9fa5bf4e995917f0ba2d892946b
Author : Paul Murphy <murp@redhat.com>
Date : 2026-08-10T08:35:36-05:00
Stats : +52/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rust/c/84cf26f5cb9fd9fa5bf4e995917f0ba2d892946b?branch=rawhide
Log:
Fix shadow stack related test failures
This fixes:
tests/codegen-llvm/cf-protection.rs#undefined
and several tests in the rustc_target crate:
spec::tests::x86_64_unknown_linux_gnumsan
spec::tests::x86_64_unknown_linux_gnu
spec::tests::x86_64_unknown_linux_gnuasan
spec::tests::x86_64_unknown_linux_gnutsan
---
diff --git a/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch b/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
index a1425ff..acc8ebc 100644
--- a/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
+++ b/0001-Enable-SHSTK-by-default-on-x86_64-unknown-linux-gnu.patch
@@ -259,5 +259,57 @@ index defa9f146d79..41c4a19b5270 100644
llvm_target: "x86_64-unknown-linux-gnu".into(),
metadata: TargetMetadata {
--
+diff --git a/tests/codegen-llvm/cf-protection.rs b/tests/codegen-llvm/cf-protection.rs
+index a1c902755af..b233b241a01 100644
+--- a/tests/codegen-llvm/cf-protection.rs
++++ b/tests/codegen-llvm/cf-protection.rs
+@@ -21,7 +21,7 @@
+ pub fn test() {}
+
+ // undefined-NOT: !"cf-protection-branch"
+-// undefined-NOT: !"cf-protection-return"
++// undefined: !"cf-protection-return"
+
+ // none-NOT: !"cf-protection-branch"
+ // none-NOT: !"cf-protection-return"
+--
+diff --git a/compiler/rustc_target/src/spec/json.rs b/compiler/rustc_target/src/spec/json.rs
+index c8a22205a5f..155dea32443 100644
+--- a/compiler/rustc_target/src/spec/json.rs
++++ b/compiler/rustc_target/src/spec/json.rs
+@@ -12,7 +12,7 @@
+ TargetKind, TargetOptions, TargetWarnings, TlsModel,
+ };
+ use crate::json::{Json, ToJson};
+-use crate::spec::{AbiMap, LlvmAbi};
++use crate::spec::{AbiMap, CFProtection, LlvmAbi};
+
+ impl Target {
+ /// Loads a target descriptor from a JSON object.
+@@ -224,6 +224,7 @@ macro_rules! forward_opt {
+ forward!(small_data_threshold_support);
+ forward!(entry_name);
+ forward!(supports_xray);
++ forward!(cf_protection);
+
+ // we're going to run `update_from_cli`, but that won't change the target's AbiMap
+ // FIXME: better factor the Target definition so we enforce this on a type level
+@@ -408,6 +409,7 @@ macro_rules! target_option_val {
+ target_option_val!(entry_name);
+ target_option_val!(entry_abi);
+ target_option_val!(supports_xray);
++ target_option_val!(cf_protection);
+
+ // Serializing `-Clink-self-contained` needs a dynamic key to support the
+ // backwards-compatible variants.
+@@ -630,6 +632,7 @@ struct TargetSpecJson {
+ entry_name: Option<StaticCow<str>>,
+ supports_xray: Option<bool>,
+ entry_abi: Option<ExternAbiWrapper>,
++ cf_protection: Option<CFProtection>,
+ }
+
+ pub fn json_schema() -> schemars::Schema {
+--
2.55.0
reply other threads:[~2026-08-10 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178640005052.1.7199090959950899048.rpms-rust-84cf26f5cb9f@fedoraproject.org \
--to=murp@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox