* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1
@ 2026-12-02 16:13 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-12-02 16:13 UTC (permalink / raw)
To: ipfire-scm
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 <michael.tremer@ipfire.org>
Date: Wed Dec 2 16:13:08 2026 +0000
Merge branch 'master' into next
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 16:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 16:13 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 46175cdeb6e3bbbc14451dc65b417ad9da4f26c1 Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox