diff --git a/.gitignore b/.gitignore index 28125cd..2f2a560 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,2 @@ -libbsd-0.2.0.tar.gz -/libbsd-0.3.0.tar.gz -/libbsd-0.4.1.tar.gz -/libbsd-0.4.2.tar.gz -/libbsd-0.5.1.tar.xz -/libbsd-0.5.2.tar.xz -/libbsd-0.6.0.tar.xz -/libbsd-0.7.0.tar.xz -/libbsd-0.8.3.tar.xz -/libbsd-0.8.6.tar.xz -/libbsd-0.9.1.tar.xz -/libbsd-0.10.0.tar.xz +/libbsd-*.tar.xz +/libbsd-*.tar.xz.asc diff --git a/4F3E74F436050C10F5696574B972BF3EA4AE57A3 b/4F3E74F436050C10F5696574B972BF3EA4AE57A3 new file mode 100644 index 0000000..ecd7236 --- /dev/null +++ b/4F3E74F436050C10F5696574B972BF3EA4AE57A3 @@ -0,0 +1,63 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +xsFNBEoFrhoBEADux/XveApDkVYu+IgGAxB3PgMZ4nDjNheHZ6YMCtqPUEAPgGYE +ac5juI0k2j+4fLUFuZxjt6oPi+SGX6j35hgUcMQ6bsSkIrMTxPvoCIeFlgKkSZ0H +cH4ishvTTZpBIGDIFVOeiNtLQCyrdW/rbjMNfx+SCQi8w44hJMvcO+0M4TIs+2MY +3CVojhffYZ8RAAGmj5rMJ0mx96xgCNEkPUJtRlH8EGPeOwWdFGIrOy2fg0vakdCv +33FMQQrHu1QwhhyZIQiaXEEKRjbZm7uUA3m+I0MvTbWxqn0OUv5FjwWBGETAIfFA +WBmMZ1w55+IpLQ6GRExtWVAIk+iHE9mphl/lgMMZPUD2kat3yqmGdgcZT8T2D5R8 +Pxb83IRMNFw1yUfvaeI4aj/ssU2Hy1IPh99A8tLsE3d0fCXaTielNbvXc2DzhuEb +ni4/mPE8bngSnAj9dYPvjgiWX8saq9keOBrjvJPm2N3pF65O3xFBja+vi6FwBFsP +LsghM+T9srEzLLQ6kodY/1kbRKlfVQWqwtB3NJm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Hwb9ddjC9U8kT/eaNzC0EEXaxTR8HQSOaUrXBwr6fp1A== +=Gi+y +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libbsd-0.11.7-test-explicit_bzero.patch b/libbsd-0.11.7-test-explicit_bzero.patch new file mode 100644 index 0000000..d5017e2 --- /dev/null +++ b/libbsd-0.11.7-test-explicit_bzero.patch @@ -0,0 +1,83 @@ +From d5865759f8698f1c75339451a26fa3ae00276a51 Mon Sep 17 00:00:00 2001 +From: Guillem Jover +Date: Thu, 25 Aug 2022 00:52:43 +0200 +Subject: [PATCH] test: Fix explicit_bzero() test on the Hurd + +On the Hurd a small read(3) might end up (indirectly) copying the data +on the stack, which we will end up finding even when we have cleared +the buffer. + +To avoid these side effects, we add a new function, that we force not +to be inlined, so that we can reuse the same stack space, that will +blank any possible stack side effects. This should be portable +regardless of stack growing up or down. + +Diagnosis-by: Samuel Thibault +--- + COPYING | 2 +- + test/explicit_bzero.c | 15 +++++++++++++++ + 2 files changed, 16 insertions(+), 1 deletion(-) + +diff --git a/COPYING b/COPYING +index 67223d4..cf43edd 100644 +--- a/COPYING ++++ b/COPYING +@@ -369,7 +369,7 @@ Copyright: + Copyright © 2014 Theo de Raadt + Copyright © 2014 Google Inc. + Copyright © 2015 Michael Felt +- Copyright © 2015 Guillem Jover ++ Copyright © 2015, 2022 Guillem Jover + License: ISC + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above +diff --git a/test/explicit_bzero.c b/test/explicit_bzero.c +index 74993c2..bee29de 100644 +--- a/test/explicit_bzero.c ++++ b/test/explicit_bzero.c +@@ -1,6 +1,7 @@ + /* $OpenBSD: explicit_bzero.c,v 1.7 2021/03/27 11:17:58 bcook Exp $ */ + /* + * Copyright (c) 2014 Google Inc. ++ * Copyright (c) 2022 Guillem Jover + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above +@@ -123,6 +124,18 @@ populate_secret(char *buf, ssize_t len) + ASSERT_EQ(0, close(fds[0])); + } + ++static void __attribute__((__noinline__)) ++blank_stack_side_effects(char *buf, size_t len) ++{ ++ char scratch[SECRETBYTES * 4]; ++ ++ /* If the read(3) in populate_secret() wrote into the stack, as it ++ * might happen on the Hurd for small data, then we might incorrectly ++ * detect the wrong secret on the stack. */ ++ memset(scratch, 0xFF, sizeof(scratch)); ++ ASSERT_EQ(NULL, memmem(scratch, sizeof(scratch), buf, len)); ++} ++ + static int + count_secrets(const char *buf) + { +@@ -143,6 +156,7 @@ test_without_bzero(void) + char *res; + assert_on_stack(); + populate_secret(buf, sizeof(buf)); ++ blank_stack_side_effects(buf, sizeof(buf)); + res = memmem(altstack, ALTSTACK_SIZE, buf, sizeof(buf)); + ASSERT_NE(NULL, res); + return (res); +@@ -155,6 +169,7 @@ test_with_bzero(void) + char *res; + assert_on_stack(); + populate_secret(buf, sizeof(buf)); ++ blank_stack_side_effects(buf, sizeof(buf)); + res = memmem(altstack, ALTSTACK_SIZE, buf, sizeof(buf)); + ASSERT_NE(NULL, res); + explicit_bzero(buf, sizeof(buf)); +-- +GitLab + diff --git a/libbsd-0.8.3-deprecated.patch b/libbsd-0.8.3-deprecated.patch deleted file mode 100644 index a2fa13a..0000000 --- a/libbsd-0.8.3-deprecated.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -up libbsd-0.8.3/include/bsd/stdio.h~ libbsd-0.8.3/include/bsd/stdio.h ---- libbsd-0.8.3/include/bsd/stdio.h~ 2015-09-22 23:59:34.000000000 -0600 -+++ libbsd-0.8.3/include/bsd/stdio.h 2016-12-23 00:47:24.464930157 -0700 -@@ -41,15 +41,21 @@ - #include - #include - -+#if (__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 5)) -+#define DEPRECATED(x) __attribute__((deprecated)) -+#else -+#define DEPRECATED(x) __attribute__((deprecated(x))) -+#endif -+ - __BEGIN_DECLS - const char *fmtcheck(const char *, const char *); - - /* XXX: The function requires cooperation from the system libc to store the - * line buffer in the FILE struct itself. */ - char *fgetln(FILE *fp, size_t *lenp) -- __attribute__((deprecated("This functions cannot be safely ported, " -- "use getline(3) instead, as it is supported " -- "by GNU and POSIX.1-2008."))); -+ DEPRECATED("This functions cannot be safely ported, " -+ "use getline(3) instead, as it is supported " -+ "by GNU and POSIX.1-2008."); - - /* - * Note: We diverge from the FreeBSD, OpenBSD and DragonFlyBSD declarations, diff --git a/libbsd-0.8.6-compat.patch b/libbsd-0.8.6-compat.patch deleted file mode 100644 index a4f7868..0000000 --- a/libbsd-0.8.6-compat.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -up libbsd-0.8.6/src/explicit_bzero.c.compat libbsd-0.8.6/src/explicit_bzero.c ---- libbsd-0.8.6/src/explicit_bzero.c.compat 2018-05-22 16:06:09.926108522 -0600 -+++ libbsd-0.8.6/src/explicit_bzero.c 2018-05-22 16:06:43.102873673 -0600 -@@ -17,3 +17,5 @@ explicit_bzero(void *buf, size_t len) - memset(buf, 0, len); - __explicit_bzero_hook(buf, len); - } -+ -+asm(".symver explicit_bzero,explicit_bzero@LIBBSD_0.8"); -diff -up libbsd-0.8.6/src/reallocarray.c.compat libbsd-0.8.6/src/reallocarray.c ---- libbsd-0.8.6/src/reallocarray.c.compat 2018-05-22 16:07:32.247007073 -0600 -+++ libbsd-0.8.6/src/reallocarray.c 2018-05-22 16:08:10.687893640 -0600 -@@ -36,3 +36,5 @@ reallocarray(void *optr, size_t nmemb, s - } - return realloc(optr, size * nmemb); - } -+ -+asm(".symver reallocarray,reallocarray@LIBBSD_0.8"); diff --git a/libbsd-symver.patch b/libbsd-symver.patch deleted file mode 100644 index 34dbd58..0000000 --- a/libbsd-symver.patch +++ /dev/null @@ -1,167 +0,0 @@ -diff --git a/configure.ac b/configure.ac -index 6e9496d..abf891e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -96,7 +96,7 @@ AC_CACHE_CHECK( - [[ - static int rc = 1; - static void init(int argc) { if (argc == 1) rc = 0; } --void (*init_func)(int argc) __attribute__((__section__(".init_array"))) = init; -+__attribute__ ((used)) void (*init_func)(int argc) __attribute__((__section__(".init_array"))) = init; - int main() { return rc; } - ]] - )], -@@ -183,4 +183,13 @@ AC_CONFIG_FILES([ - test/Makefile - ]) - AC_CONFIG_HEADERS([config.h]) -+ -+# GCC tries to be "helpful" and only issue a warning for unrecognized -+# attributes. So we compile the test with Werror, so that if the -+# attribute is not recognized the compilation fails -+AC_LANG(C) -+AC_LANG_WERROR -+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[__attribute__ ((symver ("foo@foo_1"))) void frob (void) { }]])], -+ [AC_DEFINE([HAVE_ATTRIBUTE_SYMVER], [1], [Checking for symver attribute])], []) -+ - AC_OUTPUT -diff --git a/src/local-link.h b/src/local-link.h -index 0d4351a..5f98656 100644 ---- a/src/local-link.h -+++ b/src/local-link.h -@@ -32,16 +32,22 @@ - __attribute__((__used__,__section__(".gnu.warning." #symbol))) = msg; - - #ifdef __ELF__ --#define libbsd_symver_default(alias, symbol, version) \ -- __asm__(".symver " #symbol "," #alias "@@" #version) -- --#define libbsd_symver_variant(alias, symbol, version) \ -- __asm__(".symver " #symbol "," #alias "@" #version) -+# if HAVE_ATTRIBUTE_SYMVER -+# define libbsd_symver_default(alias, symbol, version) \ -+ __attribute__ ((symver (#alias "@@" #version))) -+# define libbsd_symver_variant(alias, symbol, version) \ -+ __attribute__ ((symver (#alias "@" #version))) -+# else -+# define libbsd_symver_default(alias, symbol, version) \ -+ __asm__(".symver " #symbol "," #alias "@@" #version); -+# define libbsd_symver_variant(alias, symbol, version) \ -+ __asm__(".symver " #symbol "," #alias "@" #version); -+# endif - #else --#define libbsd_symver_default(alias, symbol, version) \ -+# define libbsd_symver_default(alias, symbol, version) \ - extern __typeof(symbol) alias __attribute__((__alias__(#symbol))) - --#define libbsd_symver_variant(alias, symbol, version) -+# define libbsd_symver_variant(alias, symbol, version) - #endif - - #endif -diff --git a/src/setproctitle.c b/src/setproctitle.c -index ff32aa3..f8ede26 100644 ---- a/src/setproctitle.c -+++ b/src/setproctitle.c -@@ -222,6 +222,7 @@ setproctitle_init(int argc, char *argv[], char *envp[]) - #define SPT_MAXTITLE 255 - #endif - -+libbsd_symver_default(setproctitle, setproctitle_impl, LIBBSD_0.5) - void - setproctitle_impl(const char *fmt, ...) - { -@@ -281,7 +282,6 @@ setproctitle_impl(const char *fmt, ...) - *++nul = '\0'; - } - } --libbsd_symver_default(setproctitle, setproctitle_impl, LIBBSD_0.5); - - /* The original function introduced in 0.2 was a stub, it only got implemented - * in 0.5, make the implementation available in the old version as an alias -@@ -289,11 +289,12 @@ libbsd_symver_default(setproctitle, setproctitle_impl, LIBBSD_0.5); - * new version, so that new code depends on the implemented version. */ - #ifdef HAVE_TYPEOF - extern __typeof__(setproctitle_impl) -+libbsd_symver_variant(setproctitle, setproctitle_stub, LIBBSD_0.2) - setproctitle_stub - __attribute__((__alias__("setproctitle_impl"))); - #else - void -+libbsd_symver_variant(setproctitle, setproctitle_stub, LIBBSD_0.2) - setproctitle_stub(const char *fmt, ...) - __attribute__((__alias__("setproctitle_impl"))); - #endif --libbsd_symver_variant(setproctitle, setproctitle_stub, LIBBSD_0.2); -diff --git a/src/unvis.c b/src/unvis.c -index 166421a..218ec47 100644 ---- a/src/unvis.c -+++ b/src/unvis.c -@@ -563,16 +563,16 @@ strunvis(char *dst, const char *src) - * OpenBSD, 2001: strnunvis(char *dst, const char *src, size_t dlen); - * NetBSD: 2012, strnunvis(char *dst, size_t dlen, const char *src); - */ -+libbsd_symver_default(strnunvis, strnunvis_openbsd, LIBBSD_0.2) - ssize_t - strnunvis_openbsd(char *dst, const char *src, size_t dlen) - { - return strnunvisx(dst, dlen, src, 0); - } --libbsd_symver_default(strnunvis, strnunvis_openbsd, LIBBSD_0.2); - -+libbsd_symver_variant(strnunvis, strnunvis_netbsd, LIBBSD_0.9.1) - int - strnunvis_netbsd(char *dst, size_t dlen, const char *src) - { - return strnunvisx(dst, dlen, src, 0); - } --libbsd_symver_variant(strnunvis, strnunvis_netbsd, LIBBSD_0.9.1); -diff --git a/src/vis.c b/src/vis.c -index c8e5ae8..254f209 100644 ---- a/src/vis.c -+++ b/src/vis.c -@@ -732,19 +732,19 @@ strvis(char *mbdst, const char *mbsrc, int flags) - * OpenBSD, 2001: strnvis(char *dst, const char *src, size_t dlen, int flag); - * NetBSD: 2012, strnvis(char *dst, size_t dlen, const char *src, int flag); - */ -+libbsd_symver_default(strnvis, strnvis_openbsd, LIBBSD_0.2) - int - strnvis_openbsd(char *mbdst, const char *mbsrc, size_t dlen, int flags) - { - return istrsenvisxl(mbdst, &dlen, mbsrc, flags, "", NULL); - } --libbsd_symver_default(strnvis, strnvis_openbsd, LIBBSD_0.2); - -+libbsd_symver_variant(strnvis, strnvis_netbsd, LIBBSD_0.9.1) - int - strnvis_netbsd(char *mbdst, size_t dlen, const char *mbsrc, int flags) - { - return istrsenvisxl(mbdst, &dlen, mbsrc, flags, "", NULL); - } --libbsd_symver_variant(strnvis, strnvis_netbsd, LIBBSD_0.9.1); - - int - stravis(char **mbdstp, const char *mbsrc, int flags) -diff --git a/test/nlist.c b/test/nlist.c -index 82e24e9..0bfdb46 100644 ---- a/test/nlist.c -+++ b/test/nlist.c -@@ -38,14 +38,15 @@ extern int data_pub_init; - extern int data_pub_uninit[2048]; - extern int *data_pub_ptr; - --int *data_pub_ptr = &data_prv_init; --int data_pub_init = 10; --int data_pub_uninit[2048]; -+__attribute__ ((used)) int *data_pub_ptr = &data_prv_init; -+__attribute__ ((used)) int data_pub_init = 10; -+__attribute__ ((used)) int data_pub_uninit[2048]; - - extern int - func_pub(void); - - int -+__attribute__ ((used)) - func_pub(void) - { - return 42; diff --git a/libbsd.spec b/libbsd.spec index 39c3ce9..72035f2 100644 --- a/libbsd.spec +++ b/libbsd.spec @@ -1,18 +1,26 @@ Name: libbsd -Version: 0.10.0 -Release: 10%{?dist} +Version: 0.11.7 +Release: 1%{?dist} Summary: Library providing BSD-compatible functions for portability -URL: http://libbsd.freedesktop.org/ -License: BSD and ISC and Copyright only and Public Domain - -Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz -Patch1: %{name}-0.8.3-deprecated.patch -Patch2: %{name}-0.8.6-compat.patch -Patch3: %{name}-symver.patch - +URL: https://libbsd.freedesktop.org/ +# Breakdown in COPYING file of libbsd release tarball, see also: +# - https://gitlab.com/fedora/legal/fedora-license-data/-/issues/71 +# - https://gitlab.com/fedora/legal/fedora-license-data/-/issues/73 +License: Beerware AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND libutil-David-Nugent AND MIT AND LicenseRef-Fedora-Public-Domain + +Source0: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz +Source1: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz.asc +Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/4F3E74F436050C10F5696574B972BF3EA4AE57A3 +# https://gitlab.freedesktop.org/libbsd/libbsd/-/issues/14: Revert breaking commit in explicit_bzero test +Patch0: https://gitlab.freedesktop.org/libbsd/libbsd/-/commit/d5865759f8698f1c75339451a26fa3ae00276a51.patch#/libbsd-0.11.7-test-explicit_bzero.patch + +BuildRequires: autoconf +BuildRequires: automake BuildRequires: gcc -BuildRequires: autoconf automake libtool -BuildRequires: make +BuildRequires: gnupg2 +BuildRequires: libmd-devel +BuildRequires: libtool +BuildRequires: make %description libbsd provides useful functions commonly found on BSD systems, and @@ -40,12 +48,8 @@ configured using "pkg-config --libs libbsd-ctor". %prep %setup -q -%if 0%{?rhel} && 0%{?rhel} < 7 -%patch1 -p1 -b .deprecated -%patch2 -p1 -b .compat -%endif - -%patch3 -p1 -b .symver +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%patch0 -p1 -R -b .test-explicit_bzero %build autoreconf -fiv @@ -86,6 +90,9 @@ rm %{buildroot}%{_mandir}/man3/explicit_bzero.3bsd %{_libdir}/pkgconfig/%{name}-ctor.pc %changelog +* Thu Nov 24 2022 Robert Scheck - 0.11.7-1 +- Update to 0.11.7 (#1742611) + * Thu Jul 21 2022 Fedora Release Engineering - 0.10.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 981e55e..82ae719 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -SHA512 (libbsd-0.10.0.tar.xz) = b75529785b16c93d31401187f8a58258fbebe565dac071c8311775c913af989f62cd29d5ce2651af3ea6221cffd31cf04826577d3e546ab9ca14340f297777b9 +SHA512 (libbsd-0.11.7.tar.xz) = 51fda4724f41dd8a4628afd58c21236a7588d9045e337e06eeabf83805a9aaaa53705441ca901ad11f1c65f18e881523bdc97721a7d3d6a5cced27f2450d09a2 +SHA512 (libbsd-0.11.7.tar.xz.asc) = bdcce69ee261039900896c5be48659f1b6b809f3a6e8a5220aac30a6687926ac29e478a3ea737727d077d6575ee11b86eed896932568fdd261a9aaeb46d695b6