public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/checkpointctl] epel10.3: Update checkpointctl to 1.7.0
@ 2026-10-19 12:22 Radostin Stoyanov
  0 siblings, 0 replies; only message in thread
From: Radostin Stoyanov @ 2026-10-19 12:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/checkpointctl
            Branch : epel10.3
            Commit : 59c51e9e6ff486a6d27d67fdac52586ea9054cc7
            Author : Radostin Stoyanov <rstoyanov@fedoraproject.org>
            Date   : 2026-10-19T12:56:45+01:00
            Stats  : +86/-5 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/checkpointctl/c/59c51e9e6ff486a6d27d67fdac52586ea9054cc7?branch=epel10.3

            Log:
            Update checkpointctl to 1.7.0

Update to the release that adds support for compressed CRIU memory images
and improves checkpoint comparison and archive extraction.

Include the proposed x/sys PowerPC fix so syscall wrappers work in PIE
builds. This avoids the crashes seen in the Fedora package tests.

The patch comes from https://go.dev/cl/850585.

---
diff --git a/.gitignore b/.gitignore
index caa7ad1..dd2b51f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@
 /checkpointctl-1.4.0-vendor.tar.bz2
 /checkpointctl-1.4.1.tar.gz
 /checkpointctl-1.4.1-vendor.tar.bz2
+/checkpointctl-1.7.0.tar.gz
+/checkpointctl-1.7.0-vendor.tar.bz2

diff --git a/checkpointctl.spec b/checkpointctl.spec
index 92b9173..1174c21 100644
--- a/checkpointctl.spec
+++ b/checkpointctl.spec
@@ -2,7 +2,7 @@
 
 # https://github.com/checkpoint-restore/checkpointctl
 %global goipath         github.com/checkpoint-restore/checkpointctl
-Version:                1.4.1
+Version:                1.7.0
 
 %gometa -L -f
 
@@ -12,14 +12,18 @@ Release:        %autorelease
 Summary:        A command-line tool for in-depth analysis of container checkpoints
 
 # Generated by go-vendor-tools
-License:        Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
+License:        Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
 URL:            %{gourl}
 Source0:        %{gosource}
 # Generated by go-vendor-tools
 Source1:        %{archivename}-vendor.tar.bz2
 Source2:        go-vendor-tools.toml
 
+# https://go.dev/cl/850585
+Patch0:         golang-x-sys-ppc64-pie.patch
+
 BuildRequires:  asciidoctor
+BuildRequires:  golang >= 1.26.0
 BuildRequires:  python3-click
 BuildRequires:  go-vendor-tools
 
@@ -30,12 +34,14 @@ container checkpoints created with Podman and Kubernetes.
 %prep
 %goprep -A
 %setup -q -T -D -a1 %{forgesetupargs}
+%patch -P 0 -p1 -d vendor/golang.org/x/sys
 
 %generate_buildrequires
 %go_vendor_license_buildrequires -c %{S:2}
 
 %build
 %global gomodulesmode GO111MODULE=on
+export GO_LDFLAGS="-X main.name=%{name} -X main.version=%{version}"
 %gobuild -o %{gobuilddir}/bin/checkpointctl %{goipath}
 
 %{gobuilddir}/bin/%{name} completion bash > %{name}.bash
@@ -52,7 +58,7 @@ v%{version}
 :manmanual: CHECKPOINTCTL Manual
 EOF
 
-for src in checkpointctl.adoc checkpointctl-inspect.adoc checkpointctl-memparse.adoc checkpointctl-show.adoc; do
+for src in checkpointctl*.adoc; do
     out="${src%.adoc}.1"
     asciidoctor -b manpage -d manpage -o "$out" "$src"
 done

diff --git a/golang-x-sys-ppc64-pie.patch b/golang-x-sys-ppc64-pie.patch
new file mode 100644
index 0000000..6648ea2
--- /dev/null
+++ b/golang-x-sys-ppc64-pie.patch
@@ -0,0 +1,73 @@
+From fdc93002c14b8a3224c0bb94c6a1e8f8940d9793 Mon Sep 17 00:00:00 2001
+From: Juan Manuel Mendez Rey <vejeta@gmail.com>
+Date: Mon, 19 Oct 2026 02:33:30 +0200
+Subject: [PATCH] unix: set R12 before the ppc64x syscall branch
+
+The four ppc64x syscall trampolines jump to the global entry point of
+the generated ABI0 wrapper without setting R12. In a PIE that entry
+point derives its TOC from R12, as ELFv2 requires of a caller entering
+there, so the callee computes a wrong TOC and every global access
+afterwards reads or writes the wrong memory. Any PIE binary that calls
+unix.Syscall dies at startup on ppc64le.
+
+Setting R12 to the target address fixes it and keeps the indirect jump,
+so this does not reintroduce the linker range problem that
+golang/go#81981 reported. In a non-PIE build the wrapper has no TOC
+prologue and never reads R12, so the extra instruction costs nothing.
+
+Measured on a ten line program that calls unix.Syscall once, cross
+compiled for ppc64le and run under qemu-user, three runs each:
+
+    unpatched  -buildmode=pie     SIGSEGV  3/3
+    patched    -buildmode=pie     ok       3/3
+    unpatched  no -buildmode=pie  ok       3/3
+
+Debian's ppc64el buildd hit this on real hardware while building siso,
+which is how it was found.
+
+Fixes golang/go#82324
+
+Change-Id: I5f65469083461519f87597065646bf8b10750f72
+---
+
+diff --git a/unix/asm_linux_ppc64x.s b/unix/asm_linux_ppc64x.s
+index 2e1f4c3..e754442 100644
+--- a/unix/asm_linux_ppc64x.s
++++ b/unix/asm_linux_ppc64x.s
+@@ -12,14 +12,22 @@
+ 
+ // Just jump to package syscall's implementation for all these functions.
+ // The runtime may know about them.
++//
++// The indirect branch targets the global entry point of the generated ABI0
++// wrapper, which in a PIE derives its TOC from R12 as ELFv2 requires of a caller
++// entering there. Each trampoline must set R12 to the target address first. In a
++// non-PIE build the wrapper has no TOC prologue and never reads R12, so the
++// extra instruction is harmless.
+ 
+ TEXT ·Syscall(SB),NOSPLIT,$0-56
+ 	MOVD	$syscall·Syscall(SB), R31
++	MOVD	R31, R12
+ 	MOVD	R31, CTR
+ 	JMP	(CTR)
+ 
+ TEXT ·Syscall6(SB),NOSPLIT,$0-80
+ 	MOVD	$syscall·Syscall6(SB), R31
++	MOVD	R31, R12
+ 	MOVD	R31, CTR
+ 	JMP	(CTR)
+ 
+@@ -40,11 +48,13 @@
+ 
+ TEXT ·RawSyscall(SB),NOSPLIT,$0-56
+ 	MOVD	$syscall·RawSyscall(SB), R31
++	MOVD	R31, R12
+ 	MOVD	R31, CTR
+ 	JMP	(CTR)
+ 
+ TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
+ 	MOVD	$syscall·RawSyscall6(SB), R31
++	MOVD	R31, R12
+ 	MOVD	R31, CTR
+ 	JMP	(CTR)
+ 

diff --git a/sources b/sources
index f2c4f06..d162ddd 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (checkpointctl-1.4.1.tar.gz) = a1fe3e1d6f9186e3f40560d7e981145375e4093d20c8d2a7892460f46a76469561a0c637fe6f494de4ff7a6f89d52f698d4dbaa4b01d0fe857f799a8508587d7
-SHA512 (checkpointctl-1.4.1-vendor.tar.bz2) = 0100a0e7ddcce8c2153b1f208a5051dde7ad7825e4298297ccfd1885bbf0e982f2785f7bc2b860c133310a54d35c1df506a2e01fdb484ec89247aa878465d7e6
+SHA512 (checkpointctl-1.7.0.tar.gz) = 290bb474e67ba6879dd32ea6cfe3b4a21bca37f21cb17a42558bcf6848a0d7f3c84bdd3f90a9e8651bf766aa8052623a705df13bf953c8b70d2e93a7bccdb816
+SHA512 (checkpointctl-1.7.0-vendor.tar.bz2) = 97ea8e93d0181579d8b7c008f06cf1c573acea2779b0429958c3ac75e28ed0a54ef1f99dfba8ac090cdcd6c080b0eefcd7374768b4f6a1a4a9f39bc945872e0d

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 12:22 [rpms/checkpointctl] epel10.3: Update checkpointctl to 1.7.0 Radostin Stoyanov

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