Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package iputils for openSUSE:Factory checked in at 2022-10-04 20:37:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/iputils (Old) and /work/SRC/openSUSE:Factory/.iputils.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "iputils" Tue Oct 4 20:37:02 2022 rev:65 rq:1007676 version:20211215 Changes: -------- --- /work/SRC/openSUSE:Factory/iputils/iputils.changes 2022-02-17 00:29:51.809440198 +0100 +++ /work/SRC/openSUSE:Factory/.iputils.new.2275/iputils.changes 2022-10-04 20:37:10.652869541 +0200 @@ -1,0 +2,7 @@ +Mon Oct 3 11:45:30 UTC 2022 - Petr Vorel <pvo...@suse.cz> + +- Backport 2 fixes for bsc#1203957: + 0001-ping-Add-SA_RESTART-to-sa_flags.patch + 0002-ping-Make-ping_rts-struct-static.patch + +------------------------------------------------------------------- New: ---- 0001-ping-Add-SA_RESTART-to-sa_flags.patch 0002-ping-Make-ping_rts-struct-static.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iputils.spec ++++++ --- /var/tmp/diff_new_pack.mWPBe0/_old 2022-10-04 20:37:11.252870394 +0200 +++ /var/tmp/diff_new_pack.mWPBe0/_new 2022-10-04 20:37:11.256870400 +0200 @@ -24,6 +24,8 @@ Group: Productivity/Networking/Other URL: https://github.com/iputils/iputils Source0: https://github.com/iputils/iputils/archive/%{version}.tar.gz +Patch1: 0001-ping-Add-SA_RESTART-to-sa_flags.patch +Patch2: 0002-ping-Make-ping_rts-struct-static.patch BuildRequires: docbook5-xsl-stylesheets BuildRequires: docbook_5 BuildRequires: iproute2 ++++++ 0001-ping-Add-SA_RESTART-to-sa_flags.patch ++++++ >From ea0eb08a17866f1bc586f0c3d5c2a44babd7a67f Mon Sep 17 00:00:00 2001 From: Petr Vorel <pvo...@suse.cz> Date: Tue, 20 Sep 2022 21:30:12 +0200 Subject: [PATCH 1/2] ping: Add SA_RESTART to sa_flags To avoid missing output in write on aarch64. This error was in ping since ever (since git era), but got visible only after 4655ecc ("libcommon: check standard streams status at exit"). Issue found with LTP net stress interface tests. Fixes: 3337034 ("Initial import of iputils") Fixes: https://github.com/iputils/iputils/issues/424 Reported-by: Petr Vorel <pvo...@suse.cz> Suggested-by: Benjamin Poirier <benjamin.poir...@gmail.com> Suggested-by: Cyril Hrubis <chru...@suse.cz> Reviewed-by: Cyril Hrubis <chru...@suse.cz> Signed-off-by: Petr Vorel <pvo...@suse.cz> [ upstream status: https://github.com/iputils/iputils/commit/09f1b3706e90e748910c82612bc9d28fbfe0e9fb ] --- ping/ping.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ping/ping.h b/ping/ping.h index 007ae28..3fb5156 100644 --- a/ping/ping.h +++ b/ping/ping.h @@ -316,6 +316,7 @@ static inline void set_signal(int signo, void (*handler)(int)) memset(&sa, 0, sizeof(sa)); sa.sa_handler = (void (*)(int))handler; + sa.sa_flags = SA_RESTART; sigaction(signo, &sa, NULL); } -- 2.37.3 ++++++ 0002-ping-Make-ping_rts-struct-static.patch ++++++ >From eb6fb669f64aa3af2baf0e5cef5d46793fc97129 Mon Sep 17 00:00:00 2001 From: Petr Vorel <pvo...@suse.cz> Date: Tue, 20 Sep 2022 22:23:44 +0200 Subject: [PATCH 2/2] ping: Make ping_rts struct static This allows accessing global_rts->exiting in sigexit() signal handler after main() has exited. Problem occurred on aarch64, which occasionally delivered signal after main() has exited, which causes segfault. Fixes: b3a41a6 ("ping: move global variables to runtime config structure") Fixes: https://github.com/iputils/iputils/issues/423 Closes: https://github.com/iputils/iputils/pull/425 Reported-by: linzhanglong Suggested-by: Cyril Hrubis <chru...@suse.cz> Reviewed-by: Cyril Hrubis <chru...@suse.cz> Signed-off-by: Petr Vorel <pvo...@suse.cz> [ upstream status: https://github.com/iputils/iputils/commit/7861af993bf47fccaf37c5659d66c09832844ae3 ] --- ping/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping/ping.c b/ping/ping.c index 7a27b63..176410a 100644 --- a/ping/ping.c +++ b/ping/ping.c @@ -267,7 +267,7 @@ main(int argc, char **argv) socket_st sock6 = { .fd = -1 }; char *target; char *outpack_fill = NULL; - struct ping_rts rts = { + static struct ping_rts rts = { .interval = 1000, .preload = 1, .lingertime = MAXWAIT * 1000, -- 2.37.3