public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust] rawhide: Fix shadow stack related test failures
@ 2026-08-10 22:14 Paul Murphy
  0 siblings, 0 replies; only message in thread
From: Paul Murphy @ 2026-08-10 22:14 UTC (permalink / raw)
  To: git-commits

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-10 22:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 22:14 [rpms/rust] rawhide: Fix shadow stack related test failures Paul Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox