public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ruby] rawhide: x86_64: Use ucontext based coroutines for CET compatibility
@ 2026-09-11 8:45 Arjun Shankar
0 siblings, 0 replies; only message in thread
From: Arjun Shankar @ 2026-09-11 8:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ruby
Branch : rawhide
Commit : 2457d5a3a501e0ed428133d912a09c88cb3e6568
Author : Arjun Shankar <arjun@redhat.com>
Date : 2026-09-10T19:11:51+02:00
Stats : +7/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ruby/c/2457d5a3a501e0ed428133d912a09c88cb3e6568?branch=rawhide
Log:
x86_64: Use ucontext based coroutines for CET compatibility
Ruby's x86_64 coroutine implementation uses hand-written assembly
(coroutine/amd64/Context.S) that is incompatible with Shadow Stack
support [1]. Therefore, switch to the ucontext coroutine backend which
delegates context switching to glibc's swapcontext().
[1] https://fedoraproject.org/wiki/Changes/ShadowStack
---
diff --git a/ruby.spec b/ruby.spec
index a2b36e1..e1b2c85 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -189,7 +189,7 @@
Summary: An interpreter of object-oriented scripting language
Name: ruby
Version: %{ruby_version}%{?development_release}
-Release: 38%{?dist}
+Release: 39%{?dist}
# Licenses, which are likely not included in binary RPMs:
# Apache-2.0:
# benchmark/gc/redblack.rb
@@ -845,6 +845,9 @@ pushd %{_vpath_builddir}
--enable-shared \
--with-ruby-version='' \
--enable-multiarch \
+%ifarch x86_64
+ --with-coroutine=ucontext \
+%endif
%{?with_yjit: --enable-yjit} \
%{?with_zjit: --enable-zjit} \
%{?with_rust: rustc_flags='%{build_rustflags}'} \
@@ -1952,6 +1955,9 @@ make -C %{_vpath_builddir} runruby TESTRUN_SCRIPT=" \
%changelog
+* Thu Sep 10 2026 Arjun Shankar <arjun@redhat.com> - 4.0.6-39
+- x86_64: Use ucontext based coroutines for CET compatibility
+
* Thu Sep 03 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0.6-38
- Backport upstream patch to update resolv to 0.7.2
- Resolves: CVE-2026-80212 (rhbz#2527308)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 8:45 [rpms/ruby] rawhide: x86_64: Use ucontext based coroutines for CET compatibility Arjun Shankar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox