Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rspamd for openSUSE:Factory checked 
in at 2022-11-16 15:44:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rspamd (Old)
 and      /work/SRC/openSUSE:Factory/.rspamd.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rspamd"

Wed Nov 16 15:44:07 2022 rev:12 rq:1036202 version:3.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/rspamd/rspamd.changes    2022-11-09 
12:58:10.608598690 +0100
+++ /work/SRC/openSUSE:Factory/.rspamd.new.1597/rspamd.changes  2022-11-16 
15:44:09.368028678 +0100
@@ -1,0 +2,30 @@
+Mon Nov 14 16:35:33 UTC 2022 - Marcus Rueckert <mrueck...@suse.de>
+
+- Move cleanup code to %pre because otherwise it doesnt trigger
+  early enough
+
+-------------------------------------------------------------------
+Mon Nov 14 16:21:40 UTC 2022 - Marcus Rueckert <mrueck...@suse.de>
+
+- Upgrade to 3.4 again 
+  - Fix metadata_exporter with many recipients by @yo000 in #4294
+  - [Fix] Fix favicon.ico Content-Type header by @moisseev in #4302
+  - [Minor] Fix copy-paste error by @moisseev in #4305
+  - Add basic auth to metadata_exporter http pusher by @yo000 in
+    #4300
+  - [Enhancement] Add composite rule against AFF involving
+    freemailers by @twesterhever in #4304
+  - Penalize bounce spam by @frederikbosch in #4308
+- Added 068714f9f5a96fbd94560211cec75775ee023d02.patch:
+  Official patch for the unaligned memory issue described in
+  https://github.com/rspamd/rspamd/issues/4329
+- Add cleanup code to the %postun scriptlet to remove bad files,
+  created by earlier/unpatched 3.4 versions, during package upgrade
+
+-------------------------------------------------------------------
+Wed Nov  9 01:42:46 UTC 2022 - Marcus Rueckert <mrueck...@suse.de>
+
+- Downgrade to 3.3 until https://github.com/rspamd/rspamd/issues/4329
+  is solved.
+
+-------------------------------------------------------------------

New:
----
  068714f9f5a96fbd94560211cec75775ee023d02.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rspamd.spec ++++++
--- /var/tmp/diff_new_pack.3UQE1p/_old  2022-11-16 15:44:09.876031173 +0100
+++ /var/tmp/diff_new_pack.3UQE1p/_new  2022-11-16 15:44:09.880031193 +0100
@@ -67,6 +67,7 @@
 Patch0:         rspamd-conf.patch
 Patch1:         rspamd-after-redis-target.patch
 Patch2:         fix_missing_return.patch
+Patch3:         
https://github.com/rspamd/rspamd/commit/068714f9f5a96fbd94560211cec75775ee023d02.patch
 %if !0%{?is_opensuse}
 # because 80-check-malware-scan-clamav triggered in SLE-15-SP2
 BuildRequires:  -post-build-checks-malwarescan
@@ -273,6 +274,12 @@
 %pre
 %{_sbindir}/groupadd -r %{rspamd_group} 2>/dev/null || :
 %{_sbindir}/useradd -g %{rspamd_group} -c "Rmilter user" -s /bin/false -r 
%{rspamd_user} 2>/dev/null || :
+#
+# cleanup bad unser files from earlier 3.4 builds
+# see https://github.com/rspamd/rspamd/issues/4329 for the details
+#
+echo "Cleaning up '*.unser' files in /var/lib/rspamd"
+find /var/lib/rspamd/ -type f -name '*.unser' -delete -print ||:
 %if 0%{?suse_version} && %{with systemd}
 %service_add_pre %{name}.service
 

++++++ 068714f9f5a96fbd94560211cec75775ee023d02.patch ++++++
>From 068714f9f5a96fbd94560211cec75775ee023d02 Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov <vsevo...@rspamd.com>
Date: Fri, 11 Nov 2022 20:34:51 +0000
Subject: [PATCH] [CritFix] Deserialise hyperscan to the page-aligned space to
 prevent alignment issues

Issue: #4329
---
 src/libserver/hyperscan_tools.cxx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/libserver/hyperscan_tools.cxx 
b/src/libserver/hyperscan_tools.cxx
index 6187208a9..96366067d 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -306,7 +306,15 @@ auto load_cached_hs_file(const char *fname, std::int64_t 
offset = 0) -> tl::expe
                                                
msg_debug_hyperscan_lambda("multipattern: create new database in %s; %Hz size",
                                                        tmpfile_pattern.data(), 
unserialized_size);
                                                void *buf;
-                                               posix_memalign(&buf, 16, 
unserialized_size);
+#ifdef HAVE_GETPAGESIZE
+                                               auto page_size = getpagesize();
+#else
+                                               auto page_size = 
sysconf(_SC_PAGESIZE);
+#endif
+                                               if (page_size == -1) {
+                                                       page_size = 4096;
+                                               }
+                                               posix_memalign(&buf, page_size, 
unserialized_size);
                                                if (buf == nullptr) {
                                                        return 
tl::make_unexpected(error {"Cannot allocate memory", errno, 
error_category::CRITICAL });
                                                }

Reply via email to