public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Friesse <jfriesse@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/corosync] rawhide: New upstream release
Date: Tue, 27 Oct 2026 17:56:10 GMT	[thread overview]
Message-ID: <179312377069.1.9747684738792768931.rpms-corosync-ca238fcfd5e6@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/corosync
            Branch : rawhide
            Commit : ca238fcfd5e62535923f71bb3bf64872f2c17625
            Author : Jan Friesse <jfriesse@redhat.com>
            Date   : 2026-10-27T18:53:00+01:00
            Stats  : +7/-815 in 8 file(s)
            URL    : https://src.fedoraproject.org/rpms/corosync/c/ca238fcfd5e62535923f71bb3bf64872f2c17625?branch=rawhide

            Log:
            New upstream release

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index be468d1..da5230e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,3 +52,4 @@ corosync-1.2.7.tar.gz
 /corosync-3.1.8.tar.gz
 /corosync-3.1.9.tar.gz
 /corosync-3.1.10.tar.gz
+/corosync-3.2.0.tar.gz

diff --git a/0001-Enforce-encryption-at-compile-time.patch b/0001-Enforce-encryption-at-compile-time.patch
deleted file mode 100644
index e7a615b..0000000
--- a/0001-Enforce-encryption-at-compile-time.patch
+++ /dev/null
@@ -1,608 +0,0 @@
-From f83c5d760e5642380ace8f582b3144c06cd0fe29 Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Thu, 2 Apr 2026 12:00:06 +0200
-Subject: [PATCH] Enforce encryption at compile time
-
-This patch strictly enforces encryption by completely removing
-the ability to run unencrypted configurations from the default
-build.
-
-The primary goal is to protect against maliciously crafted packets
-that could trigger crashes or undefined behavior. By making
-encryption mandatory, we ensure such attacks are only possible
-if an attacker has already compromised the private keys.
-
-Because this enforcement happens at compile time, the code to
-handle unencrypted traffic is omitted by default. Restoring these
-features now requires explicit opt-in via two new configure flags:
-
---enable-unencrypted: Allows crypto_cipher/hash to be set to 'none'.
-
---enable-udpu: Restores the legacy totemudp and udpu transports.
-(Note: This flag strictly requires --enable-unencrypted).
-
-To help administrators easily verify a binary compile options,
-the "Built-in features" list (visible via `corosync -v`) has been
-updated to reflect these states. Standard secure builds will now
-explicitly display 'enforce_encryption' and 'without_udpu'. If the
-legacy flags are used, these are replaced with 'unencrypted' and
-'udpu' respectively.
-
-This does not mean we will stop fixing bugs related to malformed
-packets. However, it drastically minimizes the unauthenticated
-remote attack vector, allowing for a more measured response to
-future parsing flaws.
-
-These compile options provide an escape hatch. Package maintainers
-or users compiling from source must now consciously opt-in using
-these flags if they wish to restore legacy capabilities.
-
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
----
- conf/corosync.conf.example     |  8 -----
- configure.ac                   | 31 ++++++++++++++++++
- corosync.spec.in               |  8 +++++
- exec/Makefile.am               |  7 ++--
- exec/cfg.c                     |  2 ++
- exec/totemconfig.c             | 59 +++++++++++++++++++++++++++++++---
- exec/totemnet.c                | 12 ++++++-
- include/corosync/totem/totem.h |  6 ++++
- man/corosync.conf.5            | 34 +++++++++++++-------
- 9 files changed, 139 insertions(+), 28 deletions(-)
-
-diff --git a/conf/corosync.conf.example b/conf/corosync.conf.example
-index 4658a86f..9f424b7f 100644
---- a/conf/corosync.conf.example
-+++ b/conf/corosync.conf.example
-@@ -4,14 +4,6 @@ totem {
- 
- 	# Set name of the cluster
- 	cluster_name: ExampleCluster
--
--	# crypto_cipher and crypto_hash: Used for mutual node authentication.
--	# If you choose to enable this, then do remember to create a shared
--	# secret with "corosync-keygen".
--	# enabling crypto_cipher, requires also enabling of crypto_hash.
--	# crypto works only with knet transport
--	crypto_cipher: none
--	crypto_hash: none
- }
- 
- logging {
-diff --git a/configure.ac b/configure.ac
-index 0c2b8f20..9a895e28 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -449,6 +449,17 @@ AC_ARG_ENABLE([nozzle],
- 	[  --enable-nozzle                 : Support for nozzle ],,
- 	[ enable_nozzle="no" ])
- 
-+AC_ARG_ENABLE([unencrypted],
-+	[  --enable-unencrypted            : Enable running Corosync unencrypted ],,
-+	[ default="no" ])
-+AM_CONDITIONAL(BUILD_UNENCRYPTED, test x$enable_unencrypted = xyes)
-+
-+AC_ARG_ENABLE([udpu],
-+	[  --enable-udpu                   : Enable UDP and UDPU transports for Corosync (requires unencrypted)],,
-+	[ default="no" ])
-+AM_CONDITIONAL(BUILD_UDPU, test x$enable_udpu = xyes)
-+
-+
- # *FLAGS handling goes here
- 
- ENV_CFLAGS="$CFLAGS"
-@@ -562,6 +573,26 @@ if test "x${enable_nozzle}" = xyes; then
- 	WITH_LIST="$WITH_LIST --with nozzle"
- fi
- 
-+if test "x${enable_unencrypted}" = xyes; then
-+	AC_DEFINE([ENABLE_UNENCRYPTED], [1], [Enable running Corosync unencrypted])
-+	PACKAGE_FEATURES="$PACKAGE_FEATURES unencrypted"
-+	WITH_LIST="$WITH_LIST --with unencrypted"
-+else
-+	PACKAGE_FEATURES="$PACKAGE_FEATURES enforce_encryption"
-+fi
-+
-+if test "x${enable_udpu}" = xyes; then
-+	if test ! "x${enable_unencrypted}" = xyes; then
-+		AC_MSG_ERROR([Enabling UDPU requires enabled unencrypted support (--enable-unencrypted)])
-+	fi
-+
-+	AC_DEFINE([ENABLE_UDPU], [1], [Enable UDP/UDPU transports])
-+	PACKAGE_FEATURES="$PACKAGE_FEATURES udpu"
-+	WITH_LIST="$WITH_LIST --with udpu"
-+else
-+	PACKAGE_FEATURES="$PACKAGE_FEATURES without_udpu"
-+fi
-+
- do_snmp=0
- if test "x${enable_snmp}" = xyes; then
- 	AC_PATH_PROGS([SNMPCONFIG], [net-snmp-config])
-diff --git a/corosync.spec.in b/corosync.spec.in
-index 7cb70114..c1c16641 100644
---- a/corosync.spec.in
-+++ b/corosync.spec.in
-@@ -15,6 +15,8 @@
- %bcond_with vqsim
- %bcond_with runautogen
- %bcond_with userflags
-+%bcond_with unencrypted
-+%bcond_with udpu
- 
- %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
- %global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
-@@ -112,6 +114,12 @@ BuildRequires: readline-devel
- %if %{with vqsim}
- 	--enable-vqsim \
- %endif
-+%if %{with unencrypted}
-+	--enable-unencrypted \
-+%endif
-+%if %{with udpu}
-+	--enable-udpu \
-+%endif
- %if %{with userflags}
- 	--enable-user-flags \
- %endif
-diff --git a/exec/Makefile.am b/exec/Makefile.am
-index 1c31f8c2..e3de4ffd 100644
---- a/exec/Makefile.am
-+++ b/exec/Makefile.am
-@@ -45,8 +45,7 @@ corosync_SOURCES	= vsf_ykd.c coroparse.c vsf_quorum.c sync.c \
- 			  votequorum.c util.c schedwrk.c main.c \
- 			  apidef.c quorum.c icmap.c timer.c stats.c \
- 			  ipc_glue.c service.c logconfig.c totemconfig.c \
--			  totemip.c totemnet.c totemudp.c \
--			  totemudpu.c totemsrp.c \
-+			  totemip.c totemnet.c totemsrp.c \
- 			  totempg.c totemknet.c
- 
- if BUILD_MONITORING
-@@ -57,6 +56,10 @@ if BUILD_WATCHDOG
- corosync_SOURCES	+= wd.c
- endif
- 
-+if BUILD_UDPU
-+corosync_SOURCES	+= totemudp.c totemudpu.c
-+endif
-+
- corosync_CPPFLAGS	= -DLOGCONFIG_USE_ICMAP=1
- 
- corosync_CFLAGS         = $(statgrab_CFLAGS) $(libsystemd_CFLAGS) $(knet_CFLAGS) $(nozzle_CFLAGS)
-diff --git a/exec/cfg.c b/exec/cfg.c
-index 5832e5f8..0ef96a81 100644
---- a/exec/cfg.c
-+++ b/exec/cfg.c
-@@ -776,6 +776,7 @@ static void message_handler_req_exec_cfg_reload_config (
- 	assert(new_config.interfaces != NULL);
- 	memset(new_config.interfaces, 0, sizeof (struct totem_interface) * INTERFACE_MAX);
- 
-+#ifdef ENABLE_UDPU
- 	/* For UDP[U] the configuration on link0 is static (apart from the nodelist) and only read at
- 	   startup. So preserve it here */
- 	if ( (new_config.transport_number == TOTEM_TRANSPORT_UDP) ||
-@@ -783,6 +784,7 @@ static void message_handler_req_exec_cfg_reload_config (
- 		memcpy(&new_config.interfaces[0], &new_config.orig_interfaces[0],
- 		       sizeof(struct totem_interface));
- 	}
-+#endif
- 
- 	/* Calculate new node and interface definitions */
- 	if (totemconfig_configure_new_params(&new_config, temp_map, &error_string) == -1) {
-diff --git a/exec/totemconfig.c b/exec/totemconfig.c
-index 01913908..aa91501f 100644
---- a/exec/totemconfig.c
-+++ b/exec/totemconfig.c
-@@ -549,8 +549,13 @@ static int totem_get_crypto(struct totem_config *totem_config, icmap_map_t map,
- 	char *crypto_model_str;
- 	int res = 0;
- 
-+#ifdef ENABLE_UNENCRYPTED
- 	tmp_hash = "none";
- 	tmp_cipher = "none";
-+#else
-+	tmp_hash = "sha256";
-+	tmp_cipher = "aes256";
-+#endif
- 	tmp_model = "none";
- 
- 	crypto_model_str = NULL;
-@@ -561,6 +566,9 @@ static int totem_get_crypto(struct totem_config *totem_config, icmap_map_t map,
- 	}
- 
- 	if (icmap_get_string_r(map, "totem.secauth", &str) == CS_OK) {
-+		tmp_hash = "none";
-+		tmp_cipher = "none";
-+
- 		if (strcmp(str, "on") == 0) {
- 			tmp_cipher = "aes256";
- 			tmp_hash = "sha256";
-@@ -606,6 +614,7 @@ static int totem_get_crypto(struct totem_config *totem_config, icmap_map_t map,
- 		free(str);
- 	}
- 
-+#ifdef ENABLE_UNENCRYPTED
- 	if ((strcmp(tmp_cipher, "none") != 0) &&
- 	    (strcmp(tmp_hash, "none") == 0)) {
- 		*error_string = "crypto_cipher requires crypto_hash with value other than none";
-@@ -613,6 +622,14 @@ static int totem_get_crypto(struct totem_config *totem_config, icmap_map_t map,
- 
- 		goto out_free_crypto_model_str;
- 	}
-+#else
-+	if (strcmp(tmp_cipher, "none") == 0 || strcmp(tmp_hash, "none") == 0) {
-+		*error_string = "corosync is compiled to require enabled encryption";
-+		res = -1;
-+
-+		goto out_free_crypto_model_str;
-+	}
-+#endif
- 
- 	if (strcmp(tmp_model, "none") == 0) {
- 		/*
-@@ -920,9 +937,11 @@ static enum totem_ip_version_enum totem_config_get_ip_version(struct totem_confi
- 
- 	res = TOTEM_IP_VERSION_6_4;
- 
-+#ifdef ENABLE_UDPU
- 	if (totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
- 		res = TOTEM_IP_VERSION_4;
- 	}
-+#endif
- 
- 	if (icmap_get_string("totem.ip_version", &str) == CS_OK) {
- 		if (strcmp(str, "ipv4") == 0) {
-@@ -943,6 +962,7 @@ static enum totem_ip_version_enum totem_config_get_ip_version(struct totem_confi
- 	return (res);
- }
- 
-+#ifdef ENABLE_UDPU
- static uint16_t generate_cluster_id (const char *cluster_name)
- {
- 	int i;
-@@ -993,6 +1013,7 @@ static int get_cluster_mcast_addr (
- 
- 	return (err);
- }
-+#endif
- 
- static unsigned int generate_nodeid(
- 	struct totem_config *totem_config,
-@@ -1386,7 +1407,6 @@ static int put_nodelist_members_to_config(struct totem_config *totem_config, icm
- 		iter2 = icmap_iter_init_r(map, tmp_key);
- 		while ((iter_key2 = icmap_iter_next(iter2, NULL, NULL)) != NULL) {
- 			unsigned int nodeid;
--			char *str;
- 
- 			snprintf(tmp_key, ICMAP_KEYNAME_MAXLEN, "nodelist.node.%u.nodeid", node_pos);
- 			if (icmap_get_uint32_r(map, tmp_key, &nodeid) != CS_OK) {
-@@ -1412,10 +1432,13 @@ static int put_nodelist_members_to_config(struct totem_config *totem_config, icm
- 				continue;
- 			}
- 
-+#ifdef ENABLE_UDPU
- 			/* Generate nodeids if they are not provided and transport is UDP/U */
- 			if (!nodeid &&
- 			    (totem_config->transport_number == TOTEM_TRANSPORT_UDP ||
- 			     totem_config->transport_number == TOTEM_TRANSPORT_UDPU)) {
-+				char *str;
-+
- 				snprintf(tmp_key, ICMAP_KEYNAME_MAXLEN, "nodelist.node.%u.ring0_addr", node_pos);
- 				if (icmap_get_string_r(map, tmp_key, &str) == CS_OK) {
- 					nodeid = generate_nodeid(totem_config, str);
-@@ -1443,6 +1466,7 @@ static int put_nodelist_members_to_config(struct totem_config *totem_config, icm
- 					(void)icmap_set_uint32_r(map, tmp_key, nodeid);
- 				}
- 			}
-+#endif
- 
- 			if (!nodeid && totem_config->transport_number == TOTEM_TRANSPORT_KNET) {
- 				sprintf(error_string_response,
-@@ -1554,7 +1578,6 @@ static int get_interface_params(struct totem_config *totem_config, icmap_map_t m
- 	uint32_t u32;
- 	char *str;
- 	char *cluster_name = NULL;
--	enum totem_ip_version_enum tmp_ip_version = TOTEM_IP_VERSION_4;
- 	int ret = 0;
- 
- 	if (reload) {
-@@ -1582,9 +1605,11 @@ static int get_interface_params(struct totem_config *totem_config, icmap_map_t m
- 			continue;
- 		}
- 
-+#ifdef ENABLE_UDPU
- 		if (strcmp(tmp_key, "bindnetaddr") != 0 && totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
- 			continue;
- 		}
-+#endif
- 
- 		member_count = 0;
- 		linknumber = atoi(linknumber_key);
-@@ -1640,13 +1665,16 @@ static int get_interface_params(struct totem_config *totem_config, icmap_map_t m
- 				}
- 
- 				free(str);
--			} else if (totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
-+			}
-+#ifdef ENABLE_UDPU
-+			else if (totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
- 				/*
- 				 * User not specified address -> autogenerate one from cluster_name key
- 				 * (if available). Return code is intentionally ignored, because
- 				 * udpu doesn't need mcastaddr and validity of mcastaddr for udp is
- 				 * checked later anyway.
- 				 */
-+				enum totem_ip_version_enum tmp_ip_version = TOTEM_IP_VERSION_4;
- 
- 				if (totem_config->interfaces[0].bindnet.family == AF_INET) {
- 					tmp_ip_version = TOTEM_IP_VERSION_4;
-@@ -1659,6 +1687,7 @@ static int get_interface_params(struct totem_config *totem_config, icmap_map_t m
- 							      tmp_ip_version,
- 							      &totem_config->interfaces[linknumber].mcast_addr);
- 			}
-+#endif
- 
- 			snprintf(tmp_key, ICMAP_KEYNAME_MAXLEN, "totem.interface.%u.broadcast", linknumber);
- 			if (icmap_get_string(tmp_key, &str) == CS_OK) {
-@@ -1801,7 +1830,6 @@ extern int totem_config_read (
- 	int res = 0;
- 	char *str, *ring0_addr_str;
- 	char tmp_key[ICMAP_KEYNAME_MAXLEN];
--	uint16_t u16;
- 	int i;
- 	int local_node_pos;
- 	uint32_t u32;
-@@ -1817,14 +1845,21 @@ extern int totem_config_read (
- 
- 	totem_config->transport_number = TOTEM_TRANSPORT_KNET;
- 	if (icmap_get_string("totem.transport", &str) == CS_OK) {
-+#ifdef ENABLE_UDPU
- 		if (strcmp (str, "udpu") == 0) {
- 			totem_config->transport_number = TOTEM_TRANSPORT_UDPU;
- 		} else if (strcmp (str, "udp") == 0) {
- 			totem_config->transport_number = TOTEM_TRANSPORT_UDP;
--		} else if (strcmp (str, "knet") == 0) {
-+		} else
-+#endif
-+		if (strcmp (str, "knet") == 0) {
- 			totem_config->transport_number = TOTEM_TRANSPORT_KNET;
- 		} else {
-+#ifdef ENABLE_UDPU
- 			*error_string = "Invalid transport type. Should be udpu, udp or knet";
-+#else
-+			*error_string = "Invalid transport type. Should be knet";
-+#endif
- 		        free(str);
- 			return -1;
- 		}
-@@ -1922,10 +1957,13 @@ extern int totem_config_read (
- 	totem_config->ip_dscp = 0;
- 	(void)icmap_get_uint8("totem.ip_dscp", &totem_config->ip_dscp);
- 
-+#ifdef ENABLE_UDPU
- 	/*
- 	 * Store automatically generated items back to icmap only for UDP
- 	 */
- 	if (totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
-+		uint16_t u16;
-+
- 		for (i = 0; i < INTERFACE_MAX; i++) {
- 			if (!totem_config->interfaces[i].configured) {
- 				continue;
-@@ -1944,6 +1982,7 @@ extern int totem_config_read (
- 			}
- 		}
- 	}
-+#endif
- 
- 	/*
- 	 * Store mcastport value to cmap runtime section for KNET
-@@ -1981,6 +2020,7 @@ extern int totem_config_read (
- 				return -1;
- 			}
- 
-+#ifdef ENABLE_UDPU
- 			if ((totem_config->transport_number == TOTEM_TRANSPORT_UDP ||
- 			     totem_config->transport_number == TOTEM_TRANSPORT_UDPU) && (!totem_config->node_id)) {
- 
-@@ -1999,6 +2039,7 @@ extern int totem_config_read (
- 
- 				free(str);
- 			}
-+#endif
- 
- 			/* Users must not change this */
- 			icmap_set_ro_access("nodelist.local_node_pos", 0, 1);
-@@ -2066,6 +2107,7 @@ int totem_config_validate (
- 
- 		memset (&null_addr, 0, sizeof (struct totem_ip_address));
- 
-+#ifdef ENABLE_UDPU
- 		if ((totem_config->transport_number == TOTEM_TRANSPORT_UDP) &&
- 			memcmp (&totem_config->interfaces[i].mcast_addr, &null_addr,
- 				sizeof (struct totem_ip_address)) == 0) {
-@@ -2073,6 +2115,7 @@ int totem_config_validate (
- 					"No multicast address specified for interface %u", i);
- 			goto parse_error;
- 		}
-+#endif
- 
- 		if (totem_config->interfaces[i].ip_port == 0) {
- 		        snprintf (local_error_reason, sizeof(local_error_reason),
-@@ -2085,8 +2128,12 @@ int totem_config_validate (
- 					"Invalid TTL (should be 0..255) for interface %u", i);
- 			goto parse_error;
- 		}
-+#ifdef ENABLE_UDPU
- 		if (totem_config->transport_number != TOTEM_TRANSPORT_UDP &&
- 		    totem_config->interfaces[i].ttl != 1) {
-+#else
-+		if (totem_config->interfaces[i].ttl != 1) {
-+#endif
- 		        snprintf (local_error_reason, sizeof(local_error_reason),
- 					"Can only set ttl on multicast transport types for interface %u", i);
- 			goto parse_error;
-@@ -2110,6 +2157,7 @@ int totem_config_validate (
- 			goto parse_error;
- 		}
- 
-+#ifdef ENABLE_UDPU
- 		if (totem_config->broadcast_use == 0 && totem_config->transport_number == TOTEM_TRANSPORT_UDP) {
- 			if (totem_config->interfaces[i].mcast_addr.family != totem_config->interfaces[i].bindnet.family) {
- 				snprintf (local_error_reason, sizeof(local_error_reason),
-@@ -2123,6 +2171,7 @@ int totem_config_validate (
- 				goto parse_error;
- 			}
- 		}
-+#endif
- 	}
- 
- 	if (totem_config->version != 2) {
-diff --git a/exec/totemnet.c b/exec/totemnet.c
-index 58992e67..dd948174 100644
---- a/exec/totemnet.c
-+++ b/exec/totemnet.c
-@@ -37,8 +37,10 @@
- 
- #include <assert.h>
- 
-+#ifdef ENABLE_UDPU
- #include <totemudp.h>
- #include <totemudpu.h>
-+#endif
- #include <totemknet.h>
- #include <totemnet.h>
- #include <qb/qbloop.h>
-@@ -168,6 +170,7 @@ struct transport {
- };
- 
- struct transport transport_entries[] = {
-+#ifdef ENABLE_UDPU
- 	{
- 		.name = "UDP/IP Multicast",
- 		.initialize = totemudp_initialize,
-@@ -218,6 +221,14 @@ struct transport transport_entries[] = {
- 		.reconfigure = totemudpu_reconfigure,
- 		.crypto_reconfigure_phase = NULL
- 	},
-+#else
-+	{
-+		.name = "UDP/IP Multicast (disabled - expect crash)",
-+	},
-+	{
-+		.name = "UDP/IP Unicast (disabled - expect crash)",
-+	},
-+#endif
- 	{
- 		.name = "Kronosnet",
- 		.initialize = totemknet_initialize,
-@@ -280,7 +291,6 @@ static void totemnet_instance_initialize (
- 	instance->totemnet_log_printf = config->totem_logging_configuration.log_printf;
- 	instance->totemnet_subsys_id = config->totem_logging_configuration.log_subsys_id;
- 
--
- 	transport = config->transport_number;
- 
- 	log_printf (LOGSYS_LEVEL_NOTICE,
-diff --git a/include/corosync/totem/totem.h b/include/corosync/totem/totem.h
-index 8d104fb6..857aa5ce 100644
---- a/include/corosync/totem/totem.h
-+++ b/include/corosync/totem/totem.h
-@@ -139,6 +139,12 @@ enum {
- 
- enum { TOTEM_LINK_MODE_BYTES = 64 };
- 
-+
-+/*
-+ * Keep compatibility with old applications. For Corosync 4.0, remove
-+ * TOTEM_TRANSPORT_UDP/TOTEM_TRANSPORT_UDPU, set TOTEM_TRANSPORT_KNET to 1
-+ * and change totemnet.c
-+ */
- typedef enum {
- 	TOTEM_TRANSPORT_UDP = 0,
- 	TOTEM_TRANSPORT_UDPU = 1,
-diff --git a/man/corosync.conf.5 b/man/corosync.conf.5
-index 0eb090a9..8945c85f 100644
---- a/man/corosync.conf.5
-+++ b/man/corosync.conf.5
-@@ -1,6 +1,6 @@
- .\"/*
- .\" * Copyright (c) 2005 MontaVista Software, Inc.
--.\" * Copyright (c) 2006-2025 Red Hat, Inc.
-+.\" * Copyright (c) 2006-2026 Red Hat, Inc.
- .\" *
- .\" * All rights reserved.
- .\" *
-@@ -32,7 +32,7 @@
- .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- .\" * THE POSSIBILITY OF SUCH DAMAGE.
- .\" */
--.TH COROSYNC_CONF 5 2025-06-12 "corosync Man Page" "Corosync Cluster Engine Programmer's Manual"
-+.TH COROSYNC_CONF 5 2026-04-07 "corosync Man Page" "Corosync Cluster Engine Programmer's Manual"
- .SH NAME
- corosync.conf - corosync executive configuration file
- 
-@@ -68,11 +68,20 @@ nozzle { }
- This top level directive contains configuration options for a libnozzle device.
- 
- .PP
--Corosync supports multiple types of network transports for communication between the nodes in the cluster. There are three types of transports:
-+Corosync uses KNET as the standard network transport for communication
-+between nodes in the cluster. Legacy unencrypted transports are strictly
-+disabled in standard builds for security reasons.
- .RS
- .IP 1.
--KNET. This is a default and recommended transport introduced in Corosync 3. It provides several advantages over the UDP and UDPU transports,
--including better performance, link-level redundancy, automatic link recovery, and native IP compression and encryption.
-+KNET. This is a default and recommended transport introduced in Corosync 3.
-+It provides several advantages over the UDP and UDPU transports,
-+including better performance, link-level redundancy, automatic link recovery,
-+and native IP compression and encryption.
-+.RE
-+
-+Legacy unencrypted transports (available only for udpu builds; run
-+`corosync -v` and check for "udpu" under "Built-in features"):
-+.RS
- .IP 2.
- UDPU. This is for unicast communication. This transport is deprecated.
- .IP 3.
-@@ -241,20 +250,21 @@ The default is nss.
- .TP
- crypto_hash
- This specifies which HMAC authentication should be used to authenticate all
--messages. Valid values are none (no authentication), md5, sha1, sha256,
--sha384 and sha512. Encrypted transmission is only supported for
--the KNET transport.
-+messages. Valid values are md5, sha1, sha256, sha384, sha512 and
-+(for unencrypted builds only) none (no authentication). Encrypted transmission
-+is only supported for the KNET transport.
- 
--The default is none.
-+The default is sha256 (none for unencrypted builds).
- 
- .TP
- crypto_cipher
- This specifies which cipher should be used to encrypt all messages.
--Valid values are none (no encryption), aes256, aes192 and aes128.
-+Valid values are aes256, aes192, aes128 and
-+(for unencrypted builds only) also none (no encryption).
- Enabling crypto_cipher, requires also enabling of crypto_hash. Encrypted
- transmission is only supported for the KNET transport.
- 
--The default is none.
-+The default is aes256 (none for unencrypted builds).
- 
- .TP
- secauth
-@@ -262,7 +272,7 @@ This implies crypto_cipher=aes256 and crypto_hash=sha256, unless those options
- are explicitly set. Encrypted transmission is only supported for the KNET
- transport.
- 
--The default is off.
-+The default is on (off for unencrypted builds).
- 
- .TP
- keyfile
--- 
-2.47.3
-

diff --git a/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch b/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
deleted file mode 100644
index 457716c..0000000
--- a/0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 83920f2e36b5f1acd7dcf033c0820043cc29f82a Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Wed, 2 Sep 2026 15:08:31 +0200
-Subject: [PATCH 1/2] totemsrp: Fix int overflow in commit_token_sanity
-
-This commit addresses an integer overflow (wraparound) vulnerability
-in the check_memb_commit_token_sanity function.
-
-Previously, on 32-bit systems, a large unsigned network value for
-addr_entries (>= 153391690) could cause an integer overflow when
-multiplied by the sizes of the srp_addr and memb_commit_token_memb_entry
-structures. This wraparound resulted in a required_len that was smaller
-than the actual required memory size, potentially bypassing the
-subsequent message length bounds check.
-
-To fix this, we now reject the message if addr_entries exceeds
-PROCESSOR_COUNT_MAX before any multiplication or addition occurs.
-
-Fixes: CVE-2026-81666
-
-Reported-by: Tristan Madani <tristan@talencesecurity.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Reviewed-by: Tristan Madani <tristan@talencesecurity.com>
-Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
----
- exec/totemsrp.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index 67596911..1802bb34 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3829,6 +3829,14 @@ static int check_memb_commit_token_sanity(
- 		addr_entries = swab32(addr_entries);
- 	}
- 
-+	if (addr_entries > PROCESSOR_COUNT_MAX) {
-+		log_printf (instance->totemsrp_log_level_security,
-+		    "Received commit_token message addr_entries exceeds the maximum "
-+		    "allowed value...  ignoring.");
-+
-+		return (-1);
-+	}
-+
- 	required_len = sizeof(struct memb_commit_token) +
- 	    (addr_entries * (sizeof(struct srp_addr) + sizeof(struct memb_commit_token_memb_entry)));
- 	if (msg_len < required_len) {
--- 
-2.51.1
-

diff --git a/0001-totemsrp-Return-error-if-sanity-check-fails.patch b/0001-totemsrp-Return-error-if-sanity-check-fails.patch
deleted file mode 100644
index 4923d2d..0000000
--- a/0001-totemsrp-Return-error-if-sanity-check-fails.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From a16614accfdb3481264d7281843fadf439d9ab1b Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Thu, 2 Apr 2026 09:00:39 +0200
-Subject: [PATCH 1/2] totemsrp: Return error if sanity check fails
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Previously, the check_memb_commit_token_sanity function correctly
-checked the minimum message length. However, if the message was too
-short, it incorrectly returned a success code (0) instead of the
-expected failure code (-1).
-
-This commit ensures the appropriate error code is returned when the
-message length sanity check fails.
-
-Fixes: CVE-2026-35091
-
-Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <sebasjosue84@gmail.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Also-proposed-by: nicholasyang <nicholas.yang@suse.com>
-Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
----
- exec/totemsrp.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index a716ae9..372a96d 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3811,10 +3811,10 @@ static int check_memb_commit_token_sanity(
- 		log_printf (instance->totemsrp_log_level_security,
- 		    "Received memb_commit_token message is too short...  ignoring.");
- 
--		return (0);
-+		return (-1);
- 	}
- 
--	addr_entries= mct_msg->addr_entries;
-+	addr_entries = mct_msg->addr_entries;
- 	if (endian_conversion_needed) {
- 		addr_entries = swab32(addr_entries);
- 	}
--- 
-1.8.3.1
-

diff --git a/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch b/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
deleted file mode 100644
index 7f5e746..0000000
--- a/0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 5148bf07dffa61bcfa92ca2c058e7d0f0a981cf3 Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Wed, 2 Sep 2026 15:53:33 +0200
-Subject: [PATCH 2/2] totempg: Replace assert with check in deliver_fn
-
-If assert() is compiled out in release builds, a
-new message could be appended past the end of the assembly buffer,
-resulting in a buffer overflow.
-
-To prevent this, replace the assertion with a standard runtime bounds
-check. If the incoming message exceeds the maximum buffer size, it is
-now safely logged and ignored.
-
-Fixes: CVE-2026-81665
-
-Reported-by: Tristan Madani <tristan@talencesecurity.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Reviewed-by: Tristan Madani <tristan@talencesecurity.com>
-Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
----
- exec/totempg.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/exec/totempg.c b/exec/totempg.c
-index d9beb899..b086bad9 100644
---- a/exec/totempg.c
-+++ b/exec/totempg.c
-@@ -659,7 +659,14 @@ static void totempg_deliver_fn (
- 		return ;
- 	}
- 
--	assert((assembly->index+msg_len) < sizeof(assembly->data));
-+	if (assembly->index + msg_len >= sizeof(assembly->data)) {
-+		log_printf(LOG_WARNING,
-+		    "Message (totempg_mcast) received from node " CS_PRI_NODE_ID
-+		    " would create too long message of %u bytes...  Ignoring.",
-+		    nodeid, assembly->index + msg_len);
-+
-+		return ;
-+	}
- 	memcpy (&assembly->data[assembly->index], &data[datasize],
- 		msg_len - datasize);
- 
--- 
-2.51.1
-

diff --git a/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch b/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
deleted file mode 100644
index 32b652d..0000000
--- a/0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 4082294f5094a7591e4e00658c5a605f05d644f1 Mon Sep 17 00:00:00 2001
-From: Jan Friesse <jfriesse@redhat.com>
-Date: Thu, 2 Apr 2026 09:44:06 +0200
-Subject: [PATCH 2/2] totemsrp: Fix integer overflow in memb_join_sanity
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This commit addresses an integer overflow (wraparound) vulnerability
-in the check_memb_join_sanity function.
-
-Previously, the 32-bit unsigned network values proc_list_entries and
-failed_list_entries were added together before being promoted to
-size_t. This allowed the addition to wrap around in 32-bit arithmetic
-(e.g., 0x80000000 + 0x80000000 = 0), resulting in a required_len
-calculation that was incorrectly small.
-
-The solution is to cast the list entries to size_t and verify that
-neither exceeds the maximum allowed value before the addition occurs.
-
-Fixes: CVE-2026-35092
-
-Reported-by: Sebastián Alba Vives (@Sebasteuo / 0xS4bb1) <sebasjosue84@gmail.com>
-Signed-off-by: Jan Friesse <jfriesse@redhat.com>
-Also-proposed-by: nicholasyang <nicholas.yang@suse.com>
-Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
----
- exec/totemsrp.c | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/exec/totemsrp.c b/exec/totemsrp.c
-index 372a96d..6759691 100644
---- a/exec/totemsrp.c
-+++ b/exec/totemsrp.c
-@@ -3786,7 +3786,17 @@ static int check_memb_join_sanity(
- 		failed_list_entries = swab32(failed_list_entries);
- 	}
- 
--	required_len = sizeof(struct memb_join) + ((proc_list_entries + failed_list_entries) * sizeof(struct srp_addr));
-+	if (proc_list_entries > PROCESSOR_COUNT_MAX ||
-+	    failed_list_entries > PROCESSOR_COUNT_MAX) {
-+		log_printf (instance->totemsrp_log_level_security,
-+		    "Received memb_join message list_entries exceeds the maximum "
-+		    "allowed value...  ignoring.");
-+
-+		return (-1);
-+	}
-+
-+	required_len = sizeof(struct memb_join) +
-+	  (((size_t)proc_list_entries + (size_t)failed_list_entries) * sizeof(struct srp_addr));
- 	if (msg_len < required_len) {
- 		log_printf (instance->totemsrp_log_level_security,
- 		    "Received memb_join message is too short...  ignoring.");
--- 
-1.8.3.1
-

diff --git a/corosync.spec b/corosync.spec
index bc49986..b628f2e 100644
--- a/corosync.spec
+++ b/corosync.spec
@@ -16,18 +16,12 @@
 
 Name: corosync
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
-Version: 3.1.10
-Release: 8%{?dist}
+Version: 3.2.0
+Release: 1%{?dist}
 License: BSD-3-Clause
 URL: http://corosync.github.io/corosync/
 Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
 
-Patch0: 0001-totemsrp-Return-error-if-sanity-check-fails.patch
-Patch1: 0002-totemsrp-Fix-integer-overflow-in-memb_join_sanity.patch
-Patch2: 0001-Enforce-encryption-at-compile-time.patch
-Patch3: 0001-totemsrp-Fix-int-overflow-in-commit_token_sanity.patch
-Patch4: 0002-totempg-Replace-assert-with-check-in-deliver_fn.patch
-
 # Runtime bits
 # The automatic dependency overridden in favor of explicit version lock
 Requires: corosynclib%{?_isa} = %{version}-%{release}
@@ -303,6 +297,9 @@ network splits)
 %endif
 
 %changelog
+* Tue Oct 27 2026 Jan Friesse <jfriesse@redhat.com> - 3.2.0-1
+- New upstream release
+
 * Fri Sep 04 2026 Jan Friesse <jfriesse@redhat.com> - 3.1.10-8
 - totemsrp: Fix int overflow in commit_token_sanity
   (fixes CVE-2026-81666)

diff --git a/sources b/sources
index 9c626fd..b8e20ee 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (corosync-3.1.10.tar.gz) = cf2014d15fdbd3495cfe64629255f7855a79651a595938dac7bc7ec67338d843079ae40cf1c15de23b50d85cb39b2c2e3e3448a9cc33759ad8988b8c85ce59d3
+SHA512 (corosync-3.2.0.tar.gz) = 438e13339ed34c9abac9bc2e06bd596959be39ad353954549da522490dbf138c35872b9bd48b952796ded4d3fa96342ff21c6ecc4dbbb147058df638f023099e

                 reply	other threads:[~2026-10-27 17:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179312377069.1.9747684738792768931.rpms-corosync-ca238fcfd5e6@fedoraproject.org \
    --to=jfriesse@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox