Hello community, here is the log from the commit of package diffutils for openSUSE:Factory checked in at 2020-09-04 10:53:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/diffutils (Old) and /work/SRC/openSUSE:Factory/.diffutils.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "diffutils" Fri Sep 4 10:53:17 2020 rev:42 rq:830967 version:3.7 Changes: -------- --- /work/SRC/openSUSE:Factory/diffutils/diffutils.changes 2019-10-10 11:47:22.368288242 +0200 +++ /work/SRC/openSUSE:Factory/.diffutils.new.3399/diffutils.changes 2020-09-04 10:53:31.150443580 +0200 @@ -1,0 +2,7 @@ +Mon Aug 31 10:02:12 UTC 2020 - Bernhard Voelker <m...@bernhard-voelker.de> + +- gnulib-test-avoid-FP-perror-strerror.patch: avoid false-positive + error in gnulib tests 'test-perror2' and 'test-strerror_r', + visible on armv7l. + +------------------------------------------------------------------- New: ---- gnulib-test-avoid-FP-perror-strerror.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ diffutils.spec ++++++ --- /var/tmp/diff_new_pack.y4viiN/_old 2020-09-04 10:53:33.114444633 +0200 +++ /var/tmp/diff_new_pack.y4viiN/_new 2020-09-04 10:53:33.118444634 +0200 @@ -1,7 +1,7 @@ # # spec file for package diffutils # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig Source2: %{name}.keyring +Patch0: gnulib-test-avoid-FP-perror-strerror.patch Requires(pre): %{install_info_prereq} Requires(preun): %{install_info_prereq} Provides: diff = %{version} @@ -38,7 +39,7 @@ %lang_package %prep -%setup -q +%autosetup -p1 %build %configure \ ++++++ gnulib-test-avoid-FP-perror-strerror.patch ++++++ Avoid false-positive error in gnulib tests 'test-perror2' and 'test-strerror_r'. On openSUSE OBS, the above gnulib tests fail on armv7l. Corresponding report on the gnulib mailing list: https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html From: Florian Weimer Date: Thu, 27 Aug 2020 09:41:34 +0200 Subject: Use-after-free in test-perror2, test-strerror_r The problem is visible with glibc 2.32 under valgrind: ==20== Invalid read of size 1 ==20== at 0x483DAB4: strcmp (vg_replace_strmem.c:847) ==20== by 0x109414: main (test-perror2.c:84) ==20== Address 0x4a1a3d0 is 0 bytes inside a block of size 17 free'd ==20== at 0x483A9F5: free (vg_replace_malloc.c:538) ==20== by 0x48E2134: strerror_l (in /usr/lib64/libc-2.32.so) ==20== by 0x109328: main (test-perror2.c:72) ==20== Block was alloc'd at ==20== at 0x4839809: malloc (vg_replace_malloc.c:307) ==20== by 0x48CA03F: __vasprintf_internal (in /usr/lib64/libc-2.32.so) ==20== by 0x48A46F9: asprintf (in /usr/lib64/libc-2.32.so) ==20== by 0x48E2184: strerror_l (in /usr/lib64/libc-2.32.so) ==20== by 0x1092E2: main (test-perror2.c:67) ==20== ==20== Invalid read of size 1 ==20== at 0x483DAC8: strcmp (vg_replace_strmem.c:847) ==20== by 0x109414: main (test-perror2.c:84) ==20== Address 0x4a1a3d1 is 1 bytes inside a block of size 17 free'd ==20== at 0x483A9F5: free (vg_replace_malloc.c:538) ==20== by 0x48E2134: strerror_l (in /usr/lib64/libc-2.32.so) ==20== by 0x109328: main (test-perror2.c:72) ==20== Block was alloc'd at ==20== at 0x4839809: malloc (vg_replace_malloc.c:307) ==20== by 0x48CA03F: __vasprintf_internal (in /usr/lib64/libc-2.32.so) ==20== by 0x48A46F9: asprintf (in /usr/lib64/libc-2.32.so) ==20== by 0x48E2184: strerror_l (in /usr/lib64/libc-2.32.so) ==20== by 0x1092E2: main (test-perror2.c:67) I think it's the test that's invalid. This was reported as an actual grep test failure (without valgrind) on 32-bit Arm, where glibc malloc happens to return a different buffer address for the internal allocation (so that msg3 != msg4). test-strerror_r has the same issue. Thanks, Florian Upstream patch: https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=175e0bc72808 From 175e0bc72808d564074c4adcc72aeadb74adfcc6 Mon Sep 17 00:00:00 2001 From: Paul Eggert <egg...@cs.ucla.edu> Date: Thu, 27 Aug 2020 17:52:58 -0700 Subject: [PATCH] perror, strerror_r: remove unportable tests Problem reported by Florian Weimer in: https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html * tests/test-perror2.c (main): * tests/test-strerror_r.c (main): Omit unportable tests. This downstream patch is identical to upstream one modulo the ChangeLog entry. --- gnulib-tests/test-perror2.c | 3 --- gnulib-tests/test-strerror_r.c | 3 --- 2 files changed, 6 deletions(-) --- a/gnulib-tests/test-perror2.c +++ b/gnulib-tests/test-perror2.c @@ -79,9 +79,6 @@ main (void) errno = -5; perror (""); ASSERT (!ferror (stderr)); - ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1)); - ASSERT (msg2 == msg4 || STREQ (msg2, str2)); - ASSERT (msg3 == msg4 || STREQ (msg3, str3)); ASSERT (STREQ (msg4, str4)); free (str1); --- a/gnulib-tests/test-strerror_r.c +++ b/gnulib-tests/test-strerror_r.c @@ -165,9 +165,6 @@ main (void) strerror_r (EACCES, buf, sizeof buf); strerror_r (-5, buf, sizeof buf); - ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1)); - ASSERT (msg2 == msg4 || STREQ (msg2, str2)); - ASSERT (msg3 == msg4 || STREQ (msg3, str3)); ASSERT (STREQ (msg4, str4)); free (str1);