public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mark Wielaard <mjw@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/valgrind] f45: 3.27.1-3 - Add VALGRIND_3_27_BRANCH patches
Date: Mon, 14 Sep 2026 12:18:11 GMT	[thread overview]
Message-ID: <178938829190.1.182039336102808974.rpms-valgrind-96eca612a840@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/valgrind
Branch : f45
Commit : 96eca612a84063e2233b20b5e7bee831f427db4f
Author : Mark Wielaard <mjw@fedoraproject.org>
Date   : 2026-09-14T14:01:29+02:00
Stats  : +102/-1 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/valgrind/c/96eca612a84063e2233b20b5e7bee831f427db4f?branch=f45

Log:
3.27.1-3 - Add VALGRIND_3_27_BRANCH patches

---
diff --git a/0001-Prepare-NEWS-for-branch-3.27.x-fixes.patch b/0001-Prepare-NEWS-for-branch-3.27.x-fixes.patch
new file mode 100644
index 0000000..19068f4
--- /dev/null
+++ b/0001-Prepare-NEWS-for-branch-3.27.x-fixes.patch
@@ -0,0 +1,32 @@
+From aef545c5b80a99b348a0af3db6aa24799f29380e Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Wed, 20 May 2026 15:11:50 +0200
+Subject: [PATCH 1/2] Prepare NEWS for branch 3.27.x fixes
+
+---
+ NEWS | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/NEWS b/NEWS
+index 045c363a23f6..8b36ae5cd572 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,3 +1,15 @@
++Branch 3.27.x
++~~~~~~~~~~~~~
++
++* ==================== FIXED BUGS ====================
++
++The following bugs have been fixed or resolved on this branch.
++
++To see details of a given bug, visit
++  https://bugs.kde.org/show_bug.cgi?id=XXXXXX
++where XXXXXX is the bug number as listed above.
++
++
+ Release 3.27.1 (20 May 2026)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 
+-- 
+2.55.0
+

diff --git a/0002-Valgrind-s-vgdb-extended-remote-mode-broken-on-aarch.patch b/0002-Valgrind-s-vgdb-extended-remote-mode-broken-on-aarch.patch
new file mode 100644
index 0000000..31a28ab
--- /dev/null
+++ b/0002-Valgrind-s-vgdb-extended-remote-mode-broken-on-aarch.patch
@@ -0,0 +1,57 @@
+From 49faf8b54475584091567402b421776c6146bd6f Mon Sep 17 00:00:00 2001
+From: Martin Cermak <marticak@gmx.com>
+Date: Thu, 10 Sep 2026 14:11:45 +0200
+Subject: [PATCH 2/2] Valgrind's vgdb extended-remote mode broken on aarch64
+
+At the moment, valgrind doesn't provide the target description XML
+on aarch64: target_xml() in valgrind-low-arm64.c isn't implemented
+yet. But it does advertise it via qXfer:features:read.
+
+Related commit 2d3d477689a688ab mentions: What remains to be done:
+* arm64 xml register description files (allowing shadow registers to be looked at).
+* ptrace invoker : currently disabled for both arm and arm64
+* cpsr transfer to/from gdb to be looked at (see also arm equivalent code)
+
+This patch prevents advertising qXfer:features:read on aarch64 and
+makes valgrind work with gdb-17 in extended-remote mode on aarch64.
+
+https://bugs.kde.org/show_bug.cgi?id=525478
+
+(cherry picked from commit 8d7fb56ed35c4cfa6a0af6a6e698bda9d5091a33)
+---
+ NEWS             | 2 ++
+ coregrind/vgdb.c | 3 +++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/NEWS b/NEWS
+index 8b36ae5cd572..8e7da00f68aa 100644
+--- a/NEWS
++++ b/NEWS
+@@ -5,6 +5,8 @@ Branch 3.27.x
+ 
+ The following bugs have been fixed or resolved on this branch.
+ 
++525478  Valgrind's vgdb extended-remote mode broken on aarch64
++
+ To see details of a given bug, visit
+   https://bugs.kde.org/show_bug.cgi?id=XXXXXX
+ where XXXXXX is the bug number as listed above.
+diff --git a/coregrind/vgdb.c b/coregrind/vgdb.c
+index 8cf524a4f80d..806c5456ac5d 100644
+--- a/coregrind/vgdb.c
++++ b/coregrind/vgdb.c
+@@ -1434,8 +1434,11 @@ void do_multi_mode(int check_trials, int in_port)
+                         "QCatchSyscalls+;"
+                         /* Just report support always. */
+                         "qXfer:auxv:read+;"
++/* https://bugs.kde.org/show_bug.cgi?id=525478 */
++#if !defined(VGA_arm64)
+                         /* We'll force --vgdb-shadow-registers=yes */
+                         "qXfer:features:read+;"
++#endif
+                         "qXfer:exec-file:read+;"
+                         "qXfer:siginfo:read+;"
+                         /* Extra vgdb support before valgrind starts up. */
+-- 
+2.55.0
+

diff --git a/valgrind.spec b/valgrind.spec
index f620ab3..aacbad8 100644
--- a/valgrind.spec
+++ b/valgrind.spec
@@ -3,7 +3,7 @@
 Summary: Dynamic analysis tools to detect memory or thread bugs and profile
 Name: %{?scl_prefix}valgrind
 Version: 3.27.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: 1
 
 # This ignores licenses that are only found in the test or perf sources
@@ -85,6 +85,10 @@ Patch3: valgrind-3.26.0-some-stack-protector.patch
 # Add some -Wl,z,now.
 Patch4: valgrind-3.26.0-some-Wl-z-now.patch
 
+# VALGRIND_3_27_BRANCH patches
+Patch5: 0001-Prepare-NEWS-for-branch-3.27.x-fixes.patch
+Patch6: 0002-Valgrind-s-vgdb-extended-remote-mode-broken-on-aarch.patch
+
 BuildRequires: make
 BuildRequires: glibc-devel
 
@@ -264,6 +268,9 @@ Valgrind User Manual for details.
 %patch -P3 -p1
 %patch -P4 -p1
 
+%patch -P5 -p1
+%patch -P6 -p1
+
 %build
 # LTO triggers undefined symbols in valgrind.  But valgrind has a
 # --enable-lto configure time option that we will use instead.
@@ -503,6 +510,11 @@ echo ===============END TESTING===============
 %endif
 
 %changelog
+* Mon Sep 14 2026 Mark Wielaard <mjw@fedoraproject.org> - 3.27.1-3
+- Add VALGRIND_3_27_BRANCH patches
+  - 0001-Prepare-NEWS-for-branch-3.27.x-fixes.patch
+  - 0002-Valgrind-s-vgdb-extended-remote-mode-broken-on-aarch.patch
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.27.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-09-14 12:18 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=178938829190.1.182039336102808974.rpms-valgrind-96eca612a840@fedoraproject.org \
    --to=mjw@fedoraproject.org \
    --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