]>
git.ipfire.org Git - thirdparty/unbound.git/log
zhailiangliang [Tue, 21 May 2024 08:40:16 +0000 (08:40 +0000)]
fix null pointer dereference issue in function ub_ctx_set_fwd of file libunbound/libunbound.c
Yorgos Thessalonikefs [Fri, 17 May 2024 08:29:35 +0000 (10:29 +0200)]
Changelog entry for #1069:
- Merge #1069: Fix unbound-control stdin commands for multi-process
Unbounds.
Yorgos Thessalonikefs [Fri, 17 May 2024 08:25:24 +0000 (10:25 +0200)]
Fix unbound-control stdin commands for multi-process Unbounds (#1069)
- Fix unbound-control commands that read stdin in multi-process
operation (local_zones_remove, local_zones, local_datas_remove,
local_datas, view_local_datas_remove, view_local_datas). They will
be properly distributed to all processes. dump_cache and load_cache
are no longer supported in multi-process operation.
- Remove testdata/remote-threaded.tdir. testdata/09-unbound-control.tdir
now checks both single and multi process/thread operation.
---------
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
W.C.A. Wijngaards [Thu, 16 May 2024 14:56:58 +0000 (16:56 +0200)]
- Fix #1071: [FR] Clear both in-memory and cachedb module cache with
`unbound-control flush*` commands.
Yorgos Thessalonikefs [Thu, 16 May 2024 11:43:24 +0000 (13:43 +0200)]
Changelog entry for #1070:
- Merge #1070: Fix rtt assignement for low values of
infra-cache-max-rtt.
Yorgos Thessalonikefs [Thu, 16 May 2024 11:42:32 +0000 (13:42 +0200)]
Fix rtt assignement for low values of infra-cache-max-rtt (#1070)
* Fix rtt assignement for still useful servers when a low value for
infra-cache-max-rtt is configured.
Yorgos Thessalonikefs [Wed, 15 May 2024 09:20:36 +0000 (11:20 +0200)]
- Add missing common functions to tdir tests.
W.C.A. Wijngaards [Fri, 10 May 2024 07:50:35 +0000 (09:50 +0200)]
- Fix when the mesh jostle is exceeded that nameserver targets are
marked as resolved, so that the lookup is not stuck on the
requestlist.
W.C.A. Wijngaards [Wed, 8 May 2024 14:40:41 +0000 (16:40 +0200)]
- Fix to squelch udp connect errors in the log at low verbosity about
invalid argument for IPv6 link local addresses.
W.C.A. Wijngaards [Wed, 8 May 2024 09:10:53 +0000 (11:10 +0200)]
The code repository continues with version 1.20.1.
W.C.A. Wijngaards [Tue, 7 May 2024 12:05:21 +0000 (14:05 +0200)]
- Fix for #1062: declaration before statement, avoid print of null,
and redundant check for array size.
And changelog note for merge of #1062.
Wouter Wijngaards [Tue, 7 May 2024 12:02:21 +0000 (14:02 +0200)]
Merge pull request #1062 from xiaoxiaoafeifei/master
Fix potential overflow bug while parsing port in function cfg_mark_ports
zhailiangliang [Tue, 7 May 2024 11:35:52 +0000 (11:35 +0000)]
Fix potential overflow bug while parsing port in function cfg_mark_ports
W.C.A. Wijngaards [Wed, 1 May 2024 08:15:12 +0000 (10:15 +0200)]
- Set version number to 1.20.0 for release.
W.C.A. Wijngaards [Wed, 1 May 2024 08:10:58 +0000 (10:10 +0200)]
- Fix for the DNSBomb vulnerability CVE-2024-33655. Thanks to Xiang Li
from the Network and Information Security Lab of Tsinghua University
for reporting it.
W.C.A. Wijngaards [Mon, 29 Apr 2024 11:42:26 +0000 (13:42 +0200)]
- Fix doxygen comment for errinf_to_str_bogus.
Yorgos Thessalonikefs [Mon, 29 Apr 2024 08:15:19 +0000 (10:15 +0200)]
- Cleanup unnecessary strdup calls for EDE strings.
W.C.A. Wijngaards [Fri, 26 Apr 2024 12:54:25 +0000 (14:54 +0200)]
- Man page entry for unbound-checkconf -q.
Yorgos Thessalonikefs [Fri, 26 Apr 2024 12:50:39 +0000 (14:50 +0200)]
- Fix #876: [FR] can unbound-checkconf be silenced when configuration
is valid?
W.C.A. Wijngaards [Fri, 26 Apr 2024 11:33:26 +0000 (13:33 +0200)]
- Add unit tests for cachedb and subnet cache expired data.
W.C.A. Wijngaards [Fri, 26 Apr 2024 11:32:15 +0000 (13:32 +0200)]
- Fix cachedb with serve-expired-client-timeout disabled. The edns
subnet module deletes global cache and cachedb cache when it
stores a result, and serve-expired is enabled, so that the global
reply, that is older than the ecs reply, does not return after
the ecs reply expires.
W.C.A. Wijngaards [Thu, 25 Apr 2024 15:06:06 +0000 (17:06 +0200)]
- Fix doc unit test for out of directory build.
W.C.A. Wijngaards [Thu, 25 Apr 2024 10:53:05 +0000 (12:53 +0200)]
- Fix to disable fragmentation on systems with IP_DONTFRAG,
with a nonzero value for the socket option argument.
W.C.A. Wijngaards [Thu, 25 Apr 2024 09:12:27 +0000 (11:12 +0200)]
Changelog note for #1041 and #1038.
- Merge #1041: Stub and Forward unshare. This has one structure
for them and fixes #1038: fatal error: Could not initialize
thread / error: reading root hints.
Wouter Wijngaards [Thu, 25 Apr 2024 09:11:00 +0000 (11:11 +0200)]
Merge pull request #1041 from NLnetLabs/stubfwd-unshare
Stub and Forward unshare
Yorgos Thessalonikefs [Thu, 25 Apr 2024 09:05:58 +0000 (11:05 +0200)]
Update locking management for iter_fwd and iter_hints methods. (#1054)
fast reload, move most of the locking management to iter_fwd and
iter_hints methods. The caller still has the ability to handle its
own locking, if desired, for atomic operations on sets of different
structs.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
W.C.A. Wijngaards [Thu, 25 Apr 2024 08:53:35 +0000 (10:53 +0200)]
- Fix configure flto check error, by finding grep for it.
W.C.A. Wijngaards [Wed, 24 Apr 2024 14:31:44 +0000 (16:31 +0200)]
- Fix ci workflow for macos for moved install locations.
Yorgos Thessalonikefs [Tue, 23 Apr 2024 12:24:07 +0000 (14:24 +0200)]
- Merge #1053: Remove child delegations from cache when grandchild
delegations are returned from parent.
Yorgos Thessalonikefs [Mon, 22 Apr 2024 13:46:06 +0000 (15:46 +0200)]
- When a granchild delegation is returned, remove any cached child delegations
up to parent to not cause delegation invalidation because of an
expired child delegation that would never be updated. Most likely to
happen without qname-minimisation. Reported by Roland van Rijswijk-Deij.
W.C.A. Wijngaards [Mon, 22 Apr 2024 11:44:42 +0000 (13:44 +0200)]
- Fix edns subnet to sort rrset references when storing messages
in the cache. This fixes a race condition in the rrset locks.
W.C.A. Wijngaards [Mon, 22 Apr 2024 11:42:35 +0000 (13:42 +0200)]
- Add checklock feature verbose_locking to trace locks and unlocks.
Yorgos Thessalonikefs [Mon, 15 Apr 2024 12:49:14 +0000 (14:49 +0200)]
Changelog entry for #1049:
- Merge #1049 from Petr Menšík: Py_NoSiteFlag is not needed since
Python 3.8
Yorgos Thessalonikefs [Mon, 15 Apr 2024 12:47:45 +0000 (14:47 +0200)]
Merge pull request #1049 from InfrastructureServices/python3.12-Py_NoSiteFlag-warning
Py_NoSiteFlag is not needed since Python 3.8
Petr Mensik [Mon, 15 Apr 2024 11:43:58 +0000 (13:43 +0200)]
Py_NoSiteFlag is not needed since Python 3.8
Python since 3.12 prints warning about Py_NoSiteFlag is deprecated. It
seems that variable is not needed since Python 3.8, since it sets in
such cases directly config.site_import variable few moments later.
Move using deprecated variable to versions before that flag in config
could be used only.
This should fix warning like:
pythonmod/pythonmod.c: In function 'pythonmod_init':
pythonmod/pythonmod.c:359:7: warning: 'Py_NoSiteFlag' is deprecated [-Wdeprecated-declarations]
359 | Py_NoSiteFlag = 1;
| ^~~~~~~~~~~~~
In file included from /usr/include/python3.12/Python.h:48,
from pythonmod/pythonmod.c:54:
/usr/include/python3.12/cpython/pydebug.h:14:37: note: declared here
14 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoSiteFlag;
| ^~~~~~~~~~~~~
https://docs.python.org/3/c-api/init.html#c.Py_NoSiteFlag
W.C.A. Wijngaards [Mon, 15 Apr 2024 10:17:56 +0000 (12:17 +0200)]
- Fix configure, autoconf for #1048.
W.C.A. Wijngaards [Mon, 15 Apr 2024 10:15:54 +0000 (12:15 +0200)]
Changelog note for #1048.
- Fix #1048: Update ax_pkg_swig.m4 and ax_pthread.m4.
Wouter Wijngaards [Mon, 15 Apr 2024 10:15:26 +0000 (12:15 +0200)]
Merge pull request #1048 from InfrastructureServices/configure-m4-refresh
Update ax_pkg_swig.m4 and ax_pthread.m4
Petr Mensik [Mon, 15 Apr 2024 09:30:19 +0000 (11:30 +0200)]
Update ax_pkg_swig.m4 and ax_pthread.m4
Use vanilla m4 files with known source. Prepared for possible removal at
build time if the system already has autoconf-archive source present.
Switch to AX_PKG_SWIG macro for versioned or unversioned swig detection.
W.C.A. Wijngaards [Fri, 12 Apr 2024 12:22:18 +0000 (14:22 +0200)]
- Fixup cachedb to not refetch when serve-expired-client-timeout is
used.
W.C.A. Wijngaards [Fri, 12 Apr 2024 09:51:00 +0000 (11:51 +0200)]
- Fixup unit test for cachedb server expired client timeout with
a check if response if from upstream or from cachedb.
W.C.A. Wijngaards [Fri, 12 Apr 2024 09:26:53 +0000 (11:26 +0200)]
- Fix cachedb for serve-expired with serve-expired-client-timeout.
W.C.A. Wijngaards [Wed, 10 Apr 2024 15:06:01 +0000 (17:06 +0200)]
- Fix to not reply serve expired unless enabled for cachedb.
W.C.A. Wijngaards [Wed, 10 Apr 2024 15:01:57 +0000 (17:01 +0200)]
- Fix cachedb for serve-expired with serve-expired-reply-ttl.
W.C.A. Wijngaards [Wed, 10 Apr 2024 12:04:39 +0000 (14:04 +0200)]
- Fix makefile dependencies for fake_event.c.
W.C.A. Wijngaards [Wed, 10 Apr 2024 11:08:23 +0000 (13:08 +0200)]
- Extended test for cachedb serve expired.
W.C.A. Wijngaards [Wed, 10 Apr 2024 10:36:21 +0000 (12:36 +0200)]
- Add test for cachedb serve expired.
W.C.A. Wijngaards [Wed, 10 Apr 2024 09:33:52 +0000 (11:33 +0200)]
- Fixup compile without cachedb.
W.C.A. Wijngaards [Wed, 10 Apr 2024 09:29:10 +0000 (11:29 +0200)]
- Fixup compile without cachedb.
W.C.A. Wijngaards [Wed, 10 Apr 2024 09:27:08 +0000 (11:27 +0200)]
- Fixup compile without cachedb.
W.C.A. Wijngaards [Wed, 10 Apr 2024 09:21:28 +0000 (11:21 +0200)]
- Implement cachedb-check-when-serve-expired: yes option, default
is enabled. When serve expired is enabled with cachedb, it first
checks cachedb before serving the expired response.
Yorgos Thessalonikefs [Tue, 9 Apr 2024 14:57:37 +0000 (16:57 +0200)]
- Merge #1043 from xiaoxiaoafeifei: Add loongarch support; updates
config.guess(2024-01-01) and config.sub(2024-01-01), verified
with upstream.
zhailiangliang [Tue, 9 Apr 2024 03:15:08 +0000 (11:15 +0800)]
Add loongarch support:
1. update config.guess(2024-01-01) and config.sub(2024-01-01)
2. add loongarch to little endian support
Yorgos Thessalonikefs [Mon, 8 Apr 2024 12:15:03 +0000 (14:15 +0200)]
- Fix #595: unbound-anchor cannot deal with full disk; it will now
first write out to a temp file before replacing the original one,
like Unbound already does for auto-trust-anchor-file.
W.C.A. Wijngaards [Fri, 5 Apr 2024 14:11:29 +0000 (16:11 +0200)]
- Fix comment syntax for view function views_find_view.
Yorgos Thessalonikefs [Fri, 5 Apr 2024 09:42:53 +0000 (11:42 +0200)]
- Merge #1027: Introduce 'cache-min-negative-ttl' option.
Yorgos Thessalonikefs [Wed, 3 Apr 2024 13:18:13 +0000 (15:18 +0200)]
- Fix #369: dnstap showing extra responses; for client responses
right from the cache when replying with expired data or
prefetching.
W.C.A. Wijngaards [Fri, 5 Jan 2024 15:14:38 +0000 (16:14 +0100)]
- fast-reload, helpful comments for hints lookup function return value.
W.C.A. Wijngaards [Fri, 5 Jan 2024 12:36:41 +0000 (13:36 +0100)]
- fast-reload, unshared stub hints, making the structure locked, with an rwlock.
W.C.A. Wijngaards [Thu, 4 Jan 2024 16:01:21 +0000 (17:01 +0100)]
- fast-reload, for nonthreaded, the unbound-control commands forward,
forward_add and forward_delete should be distributed to other processes,
but when threaded, they should not be distributed to other threads because
the structure is not thread specific any more.
W.C.A. Wijngaards [Thu, 4 Jan 2024 15:53:02 +0000 (16:53 +0100)]
- fast-reload, unshare forwards, making the structure locked, with an rwlock.
Yorgos Thessalonikefs [Wed, 3 Apr 2024 11:37:57 +0000 (13:37 +0200)]
- Fix #1035: Potential Bug while parsing port from the "stub-host"
string; also affected forward-zones and remote-control host
directives.
W.C.A. Wijngaards [Wed, 3 Apr 2024 08:16:18 +0000 (10:16 +0200)]
- For #1040: adjust error text and disallow negative ports in other
parts of cfg_mark_ports.
W.C.A. Wijngaards [Wed, 3 Apr 2024 08:03:04 +0000 (10:03 +0200)]
Changelog note for #1040
- Fix #1040: fix heap-buffer-overflow issue in function cfg_mark_ports
of file util/config_file.c.
Wouter Wijngaards [Wed, 3 Apr 2024 08:02:45 +0000 (10:02 +0200)]
Merge pull request #1040 from xiaoxiaoafeifei/master
fix heap-buffer-overflow issue in function cfg_mark_ports of file util/config_file.c
zhailiangliang [Wed, 3 Apr 2024 07:40:58 +0000 (15:40 +0800)]
fix heap-buffer-overflow issue in function cfg_mark_ports of file util/config_file.c
W.C.A. Wijngaards [Thu, 28 Mar 2024 08:58:57 +0000 (09:58 +0100)]
- Fix for crypto related failures to have a better error string.
W.C.A. Wijngaards [Thu, 28 Mar 2024 08:58:03 +0000 (09:58 +0100)]
- Fix #1034: DoT forward-zone via unbound-control.
W.C.A. Wijngaards [Wed, 27 Mar 2024 13:52:25 +0000 (14:52 +0100)]
- Fix that the server does not chown the pidfile.
W.C.A. Wijngaards [Wed, 27 Mar 2024 13:07:54 +0000 (14:07 +0100)]
- Fix that when the server truncates the pidfile, it does not follow
symbolic links.
W.C.A. Wijngaards [Wed, 27 Mar 2024 12:33:46 +0000 (13:33 +0100)]
- Fix to add unit test for lruhash space that exercises the routines.
W.C.A. Wijngaards [Wed, 27 Mar 2024 11:30:00 +0000 (12:30 +0100)]
- Fix comment in lruhash space function.
W.C.A. Wijngaards [Wed, 27 Mar 2024 10:49:20 +0000 (11:49 +0100)]
- Fix for #1032, add safeguard to make table space positive.
W.C.A. Wijngaards [Wed, 27 Mar 2024 10:45:34 +0000 (11:45 +0100)]
- Fix #1032: The size of subnet_msg_cache calculation mistake cause
memory usage increased beyond expectations.
W.C.A. Wijngaards [Wed, 27 Mar 2024 10:43:55 +0000 (11:43 +0100)]
- Fix name of unit test for subnet cache response.
Yorgos Thessalonikefs [Mon, 25 Mar 2024 21:02:08 +0000 (22:02 +0100)]
- For #831: Format text, use exclamation icon and explicit label
names.
Yorgos Thessalonikefs [Mon, 25 Mar 2024 15:46:25 +0000 (16:46 +0100)]
Changelog entry for #831
- Merge #831 from Pierre4012: Improve Windows NSIS installer
script (setup.nsi).
Pierre4012 [Mon, 25 Mar 2024 15:43:49 +0000 (16:43 +0100)]
Improve Windows NSIS installer script (setup.nsi) (#831)
* Improve Windows NSIS installer script (setup.nsi)
Two improvements of installer script :
- avoid error message when Unbound is running,
- add "DisplayVersion" in registry thus Windows package manager (Winget) can handle Unbound.
* Update setup.nsi ask user to stop unbound service + DisplayVersion in Windows registry
W.C.A. Wijngaards [Tue, 19 Mar 2024 09:21:10 +0000 (10:21 +0100)]
- Fix localdata and rpz localdata to match CNAME only if no direct
type match is available.
W.C.A. Wijngaards [Tue, 19 Mar 2024 08:32:53 +0000 (09:32 +0100)]
- Fix rpz so that rpz CNAME can apply after rpz CNAME. And fix that
clientip and nsip can give a CNAME.
W.C.A. Wijngaards [Mon, 18 Mar 2024 13:36:29 +0000 (14:36 +0100)]
- Fix rpz for qtype CNAME after nameserver trigger.
W.C.A. Wijngaards [Mon, 18 Mar 2024 13:11:43 +0000 (14:11 +0100)]
- Add rpz unit test for nsip action override.
W.C.A. Wijngaards [Mon, 18 Mar 2024 12:52:59 +0000 (13:52 +0100)]
- Fix rpz that copies the cname override completely to the temp
region, so there are no references to the rpz region.
W.C.A. Wijngaards [Mon, 18 Mar 2024 11:45:00 +0000 (12:45 +0100)]
- Fix rpz, it follows iterator CNAMEs for nsip and nsdname and sets
the reply query_info values, that is better for debug logging.
W.C.A. Wijngaards [Mon, 18 Mar 2024 10:25:29 +0000 (11:25 +0100)]
- Fix that rpz CNAME content is limited to the max number of cnames.
Yorgos Thessalonikefs [Fri, 15 Mar 2024 16:20:22 +0000 (17:20 +0100)]
Merge branch 'features/makedist-persist-windir'
Yorgos Thessalonikefs [Fri, 15 Mar 2024 15:59:46 +0000 (16:59 +0100)]
- For windows build, persist the openssl and expat directories for
repeated builds while debugging.
W.C.A. Wijngaards [Fri, 15 Mar 2024 12:39:49 +0000 (13:39 +0100)]
- Fix that addrinfo is not kept around but copied and freed, so that
log-destaddr uses a copy of the information, much like NSD does.
W.C.A. Wijngaards [Thu, 14 Mar 2024 09:33:13 +0000 (10:33 +0100)]
- The code repository continues with version 1.19.4.
W.C.A. Wijngaards [Wed, 13 Mar 2024 16:14:14 +0000 (17:14 +0100)]
- Fix rpz for cname override action after nsdname and nsip triggers.
W.C.A. Wijngaards [Wed, 13 Mar 2024 15:12:48 +0000 (16:12 +0100)]
- Fix to unify codepath for local alias for rpz cname action override.
W.C.A. Wijngaards [Wed, 13 Mar 2024 15:04:58 +0000 (16:04 +0100)]
- Fix rpz that the rpz override is taken in case of clientip triggers.
Fix that the clientip passthru action is logged. Fix that the
clientip localdata action is logged. Fix rpz override action cname
for the clientip trigger.
W.C.A. Wijngaards [Wed, 13 Mar 2024 12:45:04 +0000 (13:45 +0100)]
- Fix #1029: rpz trigger clientip and action rpz-passthru not working
as expected.
Yorgos Thessalonikefs [Tue, 12 Mar 2024 13:52:57 +0000 (14:52 +0100)]
Changelog entry for #1028:
- Merge #1028: Clearer documentation for tcp-idle-timeout and
edns-tcp-keepalive-timeout.
Yorgos Thessalonikefs [Tue, 12 Mar 2024 13:52:00 +0000 (14:52 +0100)]
Clearer documentation for tcp-idle-timeout and edns-tcp-keepalive-timeout (#1028)
* - Clearer documentation for tcp-idle-timeout and
edns-tcp-keepalive-timeout.
* - Address review comment.
Yorgos Thessalonikefs [Tue, 12 Mar 2024 10:20:44 +0000 (11:20 +0100)]
- Introduce 'cache-min-negative-ttl' option to bound the minimum TTL for
negative answers overriding 'cache-min-ttl'.
W.C.A. Wijngaards [Mon, 11 Mar 2024 15:31:58 +0000 (16:31 +0100)]
- Fix #1021 Inconsistent Behavior with Changing rpz-cname-override
and doing a unbound-control reload.
W.C.A. Wijngaards [Mon, 11 Mar 2024 11:30:24 +0000 (12:30 +0100)]
Update doc/Changelog to note the fixes included in 1.19.3rc2.
W.C.A. Wijngaards [Fri, 8 Mar 2024 16:18:05 +0000 (17:18 +0100)]
- Fix unbound-control-setup.cmd to have CA v3 basicConstraints,
like unbound-control-setup.sh has.
W.C.A. Wijngaards [Fri, 8 Mar 2024 15:43:24 +0000 (16:43 +0100)]
- Fix doc test so it ignores but outputs unsupported doxygen options.