From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jfjV80sm4z2xRF for ; Wed, 02 Dec 2026 16:13:20 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jfjV80TlCz2xJk for ; Wed, 02 Dec 2026 16:13:20 +0000 (UTC) Received: from people01.haj.ipfire.org (people01.haj.ipfire.org [IPv6:2001:678:b28::161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bit raw public key) server-digest SHA256 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "people01.haj.ipfire.org", Issuer "YE1" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4jfjV724pZz6ly for ; Wed, 02 Dec 2026 16:13:19 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1796227999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=rZvL18eg71CT9h21Bduwo566xRd1esU/2pq7GIGCrAc=; b=Sigv7wGppMn0B7BFGlAGi+B8BpELbYrpu5STN2FaFOI3G+yDfxce+bQPUs28l+FwkmoqZ7 8xPRYOPHfLLBYuBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1796227999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=rZvL18eg71CT9h21Bduwo566xRd1esU/2pq7GIGCrAc=; b=Z2+2GZ+KjB6FzV6vTeeqLcy0LzCsBxA5pgmLiOzj5j5CeuOB2/0QMjfWamHIA0Y7TSIwEd HVo6jJ96ZrzifyQ6rAVR83cmy7zLWr6ynttPe7CDPmUWmLPVP+fcj++Q8ug3nxyhmxb2nM Ik78xLAebpdxUCJ3+Wsg8zRBfydSkneSju18F/mBjhJxCg8BLauSm6x3cS8lX2j6/pdGS+ WavwrMuYkLEjcPUqxNkdez8cpktNQLW5DIuLy9UeG0ACHq36ZDPVr4bT5+y/H/oiAUmQk5 kUq0xGI7mISC9V4paCgvP/W+J/xdjhyR1CZxxvmoozN/TJN2kr3nHgYGMTKsCw== Received: by people01.haj.ipfire.org (Postfix, from userid 1000) id 4jfjV63yRcz2xbl; Wed, 02 Dec 2026 16:13:18 +0000 (UTC) To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1 X-Git-Refname: refs/heads/next X-Git-Reftype: branch X-Git-Oldrev: 82f7f9e3f34f21f44f3480db956dfec30307a19b X-Git-Newrev: 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1 Message-Id: <4jfjV63yRcz2xbl@people01.haj.ipfire.org> Date: Wed, 02 Dec 2026 16:13:18 +0000 (UTC) From: Michael Tremer Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1 (commit) via 004b1ce1dc6b63afce57f0f69876d44a45e9f87a (commit) via 24c801b0c65d3249a7bea7ae6f19ef729cade2fb (commit) via 2ea8ebadf05c4e9766316418d71ac407da33e05c (commit) via 933e27f1ab9cf0a114afa6c64af443d10ca132cf (commit) via fb69bf35455e312076fa53ef893c83060d954ed2 (commit) via fdd6eceba8ececa15c582b659602e37251da8095 (commit) via c574b21d0c028f1e066550203659fcfa607cb88c (commit) via 395463bd19f797e2c30684e4532c91f4a9b361ac (commit) via d664e26e988fcd91b4ebd8bc14e2099e3eef0693 (commit) via b61a0fbec8445849a3d4ee058fab865a24a6e7b3 (commit) via 419e00ed68ad1070589b5dd62f09bea44a9a45b8 (commit) via 101336912f21fda25cc49f909f4cd99bdda2cf2f (commit) via 996f5b385cde4e5a233cd00c2a3d86b3b86136c4 (commit) via 55dc7b962a7390074632739f86659993c2372a95 (commit) via 6fddf33649bb79550e826c60c4c889dd852089cd (commit) via 6f55a70abd8337b682c0faa9d233196a2c9de5d4 (commit) from 82f7f9e3f34f21f44f3480db956dfec30307a19b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1 Merge: 82f7f9e3f 004b1ce1d Author: Michael Tremer Date: Wed Dec 2 16:13:08 2026 +0000 Merge branch 'master' into next Signed-off-by: Michael Tremer # Conflicts: # config/rootfiles/common/fireinfo # config/rootfiles/oldcore/207/filelists/fireinfo # config/rootfiles/oldcore/207/filelists/libcpuid # html/cgi-bin/index.cgi # html/cgi-bin/pppsetup.cgi ----------------------------------------------------------------------- Summary of changes: config/knot-resolver/config.yaml | 4 +- config/rootfiles/oldcore/207/filelists/files | 3 ++ .../{core/208 => oldcore/207}/filelists/fireinfo | 0 .../{core/208 => oldcore/207}/filelists/libcpuid | 0 config/rootfiles/oldcore/207/update.sh | 7 ++++ lfs/knot-resolver | 2 + .../knot-resolver-6.4.2-tls-task-leak.patch | 28 +++++++++++++ src/patches/knot-resolver-6.4.2-workers-max.patch | 48 ++++++++++++++++++++++ 8 files changed, 91 insertions(+), 1 deletion(-) copy config/rootfiles/{core/208 => oldcore/207}/filelists/fireinfo (100%) copy config/rootfiles/{core/208 => oldcore/207}/filelists/libcpuid (100%) create mode 100644 src/patches/knot-resolver-6.4.2-tls-task-leak.patch create mode 100644 src/patches/knot-resolver-6.4.2-workers-max.patch Difference in files: diff --git a/config/knot-resolver/config.yaml b/config/knot-resolver/config.yaml index 7a2dd29fb8..22d90f9ecd 100644 --- a/config/knot-resolver/config.yaml +++ b/config/knot-resolver/config.yaml @@ -14,8 +14,10 @@ network: do-ipv4: true do-ipv6: false -# Start as many workers as we have CPU threads +# Start as many workers as we have CPU threads, but not more than eight +# because every worker uses its own memory workers: auto +workers-max: 8 # Enable a persistent cache cache: diff --git a/config/rootfiles/oldcore/207/filelists/files b/config/rootfiles/oldcore/207/filelists/files index bad5ca4671..6249307895 100644 --- a/config/rootfiles/oldcore/207/filelists/files +++ b/config/rootfiles/oldcore/207/filelists/files @@ -1,6 +1,7 @@ etc/httpd/conf/loadmodule.conf etc/httpd/conf/vhosts.d/ipfire-interface-ssl.conf etc/rc.d/init.d/apache +etc/rc.d/init.d/connectd etc/rc.d/init.d/firewall etc/rc.d/init.d/functions etc/rc.d/init.d/knot-resolver @@ -23,6 +24,8 @@ etc/rc.d/rc6.d/K84telemetryd etc/strongswan.d/charon.conf etc/sysconfig/createfiles etc/sysctl.conf +usr/bin/systemd-detect-virt +usr/lib/libsystemd-shared-261.so usr/local/bin/smartstatus usr/local/bin/update-location-database var/ipfire/backup/bin/backup.pl diff --git a/config/rootfiles/oldcore/207/filelists/fireinfo b/config/rootfiles/oldcore/207/filelists/fireinfo new file mode 120000 index 0000000000..c46115521f --- /dev/null +++ b/config/rootfiles/oldcore/207/filelists/fireinfo @@ -0,0 +1 @@ +../../../common/fireinfo \ No newline at end of file diff --git a/config/rootfiles/oldcore/207/filelists/libcpuid b/config/rootfiles/oldcore/207/filelists/libcpuid new file mode 120000 index 0000000000..296e8ddad3 --- /dev/null +++ b/config/rootfiles/oldcore/207/filelists/libcpuid @@ -0,0 +1 @@ +../../../common/libcpuid \ No newline at end of file diff --git a/config/rootfiles/oldcore/207/update.sh b/config/rootfiles/oldcore/207/update.sh index fbe8ab18a3..76dd51dc17 100644 --- a/config/rootfiles/oldcore/207/update.sh +++ b/config/rootfiles/oldcore/207/update.sh @@ -588,6 +588,13 @@ fi /etc/init.d/messagebus reload /etc/init.d/telemetryd start +# The status of the OpenVPN Roadwarrior server is now read in the "version 3" +# format which is only written once the configuration has been regenerated +if grep -q "^status-version 1" /var/ipfire/ovpn/server.conf 2>/dev/null; then + sed -i -e "s/^status-version 1\$/status-version 3/" /var/ipfire/ovpn/server.conf + /etc/init.d/openvpn-rw restart +fi + # Restart Apache /etc/init.d/apache restart diff --git a/lfs/knot-resolver b/lfs/knot-resolver index 3c9839d908..dc6984329c 100644 --- a/lfs/knot-resolver +++ b/lfs/knot-resolver @@ -72,6 +72,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/knot-resolver-6.5-keep-dst-ip.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/knot-resolver-6.4.2-api-socket-permissions.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/knot-resolver-6.4.2-workers-max.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/knot-resolver-6.4.2-tls-task-leak.patch cd $(DIR_APP) && meson setup \ --buildtype=release \ --prefix=/usr \ diff --git a/src/patches/knot-resolver-6.4.2-tls-task-leak.patch b/src/patches/knot-resolver-6.4.2-tls-task-leak.patch new file mode 100644 index 0000000000..44629c2b66 --- /dev/null +++ b/src/patches/knot-resolver-6.4.2-tls-task-leak.patch @@ -0,0 +1,28 @@ +daemon/worker: do not register tasks with sessions closed while sending + +When a write on a TLS connection to an upstream server cannot be completed +at once, kresd closes the session from within session2_wrap(). qr_task_send() +still returned success and added the task to the task list of the closed +session, which had already been cleaned up. The task was never freed again. + +Upstream: https://gitlab.nic.cz/knot/knot-resolver/-/work_items/967 + +diff --git a/daemon/worker.c b/daemon/worker.c +index 63d07a644..47e591754 100644 +--- a/daemon/worker.c ++++ b/daemon/worker.c +@@ -675,6 +675,14 @@ static int qr_task_send(struct qr_task *task, struct session2 *session, + payload.ttl = packet_ttl(pkt); + ret = session2_wrap(session, payload, comm, &task->ctx->req, qr_task_wrap_finished, task); + ++ /* The session might have been closed while sending (e.g. when the OS ++ * buffer was full). It has already been cleaned up by then, so the task ++ * must not be registered with it, or it would never be released. */ ++ if (ret >= 0 && session->closing) { ++ VERBOSE_MSG(NULL, "session closed while sending, not registering task\n"); ++ ret = kr_error(ECONNRESET); ++ } ++ + if (ret >= 0) { + session2_touch(session); + if (session->outgoing) { diff --git a/src/patches/knot-resolver-6.4.2-workers-max.patch b/src/patches/knot-resolver-6.4.2-workers-max.patch new file mode 100644 index 0000000000..0fb62df7a8 --- /dev/null +++ b/src/patches/knot-resolver-6.4.2-workers-max.patch @@ -0,0 +1,48 @@ +diff --git a/python/knot_resolver/datamodel/config_schema.py b/python/knot_resolver/datamodel/config_schema.py +--- a/python/knot_resolver/datamodel/config_schema.py ++++ b/python/knot_resolver/datamodel/config_schema.py +@@ -96,6 +96,7 @@ class KresConfig(ConfigSchema): + hostname: Internal DNS resolver hostname. Default is machine hostname. + rundir: Directory where the resolver can create files and which will be it's cwd. + workers: The number of running kresd (Knot Resolver daemon) workers. If set to 'auto', it is equal to number of CPUs available. ++ workers_max: The maximum number of kresd (Knot Resolver daemon) workers to start if 'workers' is set to 'auto'. + management: Configuration of management HTTP API. + options: Fine-tuning global parameters of DNS resolver operation. + network: Network connections and protocols configuration. +@@ -118,6 +119,7 @@ class KresConfig(ConfigSchema): + hostname: Optional[EscapedStr] = None + rundir: WritableDir = lazy_default(WritableDir, str(RUN_DIR)) + workers: Union[Literal["auto"], IntPositive] = IntPositive(1) ++ workers_max: Optional[IntPositive] = None + management: ManagementSchema = lazy_default(ManagementSchema, {"unix-socket": str(API_SOCK_FILE)}) + options: OptionsSchema = OptionsSchema() + network: NetworkSchema = NetworkSchema() +@@ -141,6 +143,7 @@ class KresConfig(ConfigSchema): + hostname: EscapedStr + rundir: WritableDir + workers: IntPositive ++ workers_max: Optional[IntPositive] + management: ManagementSchema + options: OptionsSchema + network: NetworkSchema +@@ -180,6 +183,9 @@ class KresConfig(ConfigSchema): + + count = _cpu_count() + if count: ++ # do not start more workers than allowed ++ if obj.workers_max is not None: ++ count = min(count, int(obj.workers_max)) + return IntPositive(count) + raise ValueError( + "The number of available CPUs to automatically set the number of running 'kresd' workers could not be determined." +diff --git a/python/knot_resolver/manager/manager.py b/python/knot_resolver/manager/manager.py +--- a/python/knot_resolver/manager/manager.py ++++ b/python/knot_resolver/manager/manager.py +@@ -118,6 +118,7 @@ class KresManager: # pylint: disable=too-many-instance-attributes + config.hostname, + # config.rundir not allowed to change + config.workers, ++ # config.workers_max is already reflected in config.workers + # config.management not allowed to change and not affecting workers anyway + config.options, + config.network, hooks/post-receive -- IPFire 2.x development tree