]> git.ipfire.org Git - thirdparty/unbound.git/log
thirdparty/unbound.git
4 days ago- Fix layout of comm_point_udp_ancil_callback. master
W.C.A. Wijngaards [Thu, 3 Jul 2025 13:57:49 +0000 (15:57 +0200)] 
- Fix layout of comm_point_udp_ancil_callback.

4 days ago- For #1300: implement sock-queue-timeout for FreeBSD as well.
W.C.A. Wijngaards [Thu, 3 Jul 2025 13:54:33 +0000 (15:54 +0200)] 
- For #1300: implement sock-queue-timeout for FreeBSD as well.

4 days ago- Fix #1300: Is 'sock-queue-timeout' a linux only feature.
W.C.A. Wijngaards [Thu, 3 Jul 2025 12:10:46 +0000 (14:10 +0200)] 
- Fix #1300: Is 'sock-queue-timeout' a linux only feature.

5 days agoChangelog note for #1299
W.C.A. Wijngaards [Wed, 2 Jul 2025 08:57:23 +0000 (10:57 +0200)] 
Changelog note for #1299
- Generate ltmain.sh and configure again.

5 days agoFix typos (#1299)
Jose Luis Duran [Wed, 2 Jul 2025 08:50:49 +0000 (05:50 -0300)] 
Fix typos (#1299)

12 days ago- For #1247, replay test (added tcp_transport to
Yorgos Thessalonikefs [Wed, 25 Jun 2025 12:02:47 +0000 (14:02 +0200)] 
- For #1247, replay test (added tcp_transport to
  outnet_serviced_query).

12 days ago- For #1247, turn off fetch-policy for delegation when looking into
Yorgos Thessalonikefs [Wed, 25 Jun 2025 11:59:17 +0000 (13:59 +0200)] 
- For #1247, turn off fetch-policy for delegation when looking into
  parent side name servers that may not update the addresses and hit
  NXNS limits.

12 days ago- Fix #1247: forward-first: ssl handshake failed on root nameservers.
Yorgos Thessalonikefs [Wed, 25 Jun 2025 11:56:50 +0000 (13:56 +0200)] 
- Fix #1247: forward-first: ssl handshake failed on root nameservers.

2 weeks agoChangelog entry for #1293:
Yorgos Thessalonikefs [Fri, 20 Jun 2025 12:11:22 +0000 (14:11 +0200)] 
Changelog entry for #1293:
- Fix #1293: EDE 6 is attached to insecure cached answers when client
  sends the CD bit.

2 weeks ago- Fix #1293: EDE 6 is attached to insecure cached answers when client sends
Yorgos Thessalonikefs [Fri, 20 Jun 2025 12:09:30 +0000 (14:09 +0200)] 
- Fix #1293: EDE 6 is attached to insecure cached answers when client sends
  the CD bit.

2 weeks ago- Fix rrset cache create allocation failure case.
W.C.A. Wijngaards [Thu, 19 Jun 2025 14:27:13 +0000 (16:27 +0200)] 
- Fix rrset cache create allocation failure case.

2 weeks agoChangelog note for #1297
W.C.A. Wijngaards [Thu, 19 Jun 2025 14:24:54 +0000 (16:24 +0200)] 
Changelog note for #1297
- Merge #1297: edns-subnet: fix NULL_AFTER_DEREF on subnetmod.

2 weeks agoedns-subnet: fix NULL_AFTER_DEREF on subnetmod (#1297)
Kostya [Thu, 19 Jun 2025 14:24:21 +0000 (17:24 +0300)] 
edns-subnet: fix NULL_AFTER_DEREF on subnetmod (#1297)

Found by static analyzer svace.
Static analyzer message: Redundant comparison with a NULL value at subnetmod.c:236 for pointer 'sn_env->subnet_msg_cache',
which was dereferenced at slabhash.c:228 by passing as 1st parameter to function 'slabhash_setmarkdel' at subnetmod.c:235.

Moved usage of sn_env->subnet_msg_cache in slabhash_setmarkdel after checking.

Signed-off-by: Konstantin Kamanin <bewflast@gmail.com>
2 weeks ago- Fix #1296: DNS over QUIC depends on a very outdated version of
W.C.A. Wijngaards [Thu, 19 Jun 2025 12:39:45 +0000 (14:39 +0200)] 
- Fix #1296: DNS over QUIC depends on a very outdated version of
  ngtcp2. Fixed so it works with ngtcp2 1.13.0 and OpenSSL 3.5.0.

2 weeks ago- Fix for consistent use of local zone CNAME alias for configured auth
Yorgos Thessalonikefs [Tue, 17 Jun 2025 13:03:29 +0000 (15:03 +0200)] 
- Fix for consistent use of local zone CNAME alias for configured auth
  zones. Now it also applies to downstream configured auth zones.

3 weeks ago- Fix #1295: Windows 32-bit binaries download seems to be missing dll
W.C.A. Wijngaards [Mon, 16 Jun 2025 12:26:54 +0000 (14:26 +0200)] 
- Fix #1295: Windows 32-bit binaries download seems to be missing dll
  dependency.

3 weeks ago- Fix to check control-interface addresses in unbound-checkconf.
W.C.A. Wijngaards [Mon, 16 Jun 2025 10:43:31 +0000 (12:43 +0200)] 
- Fix to check control-interface addresses in unbound-checkconf.

3 weeks ago- Fix header return value description for skip_pkt_rrs and
W.C.A. Wijngaards [Thu, 12 Jun 2025 10:17:01 +0000 (12:17 +0200)] 
- Fix header return value description for skip_pkt_rrs and
  parse_edns_from_query_pkt.

3 weeks ago- Fix conditional expressions with parentheses for bitwise and.
W.C.A. Wijngaards [Wed, 11 Jun 2025 14:42:43 +0000 (16:42 +0200)] 
- Fix conditional expressions with parentheses for bitwise and.

3 weeks ago- Fix bitwise operators in conditional expressions with parentheses.
W.C.A. Wijngaards [Wed, 11 Jun 2025 13:46:31 +0000 (15:46 +0200)] 
- Fix bitwise operators in conditional expressions with parentheses.

4 weeks ago- iana portlist updated.
W.C.A. Wijngaards [Thu, 5 Jun 2025 09:11:56 +0000 (11:11 +0200)] 
- iana portlist updated.

4 weeks ago- Fix comment for the dname_remove_label_limit_len function.
W.C.A. Wijngaards [Thu, 5 Jun 2025 09:11:32 +0000 (11:11 +0200)] 
- Fix comment for the dname_remove_label_limit_len function.

4 weeks ago- Fix unbound-anchor certificate file read for line ends and end of
W.C.A. Wijngaards [Thu, 5 Jun 2025 09:09:53 +0000 (11:09 +0200)] 
- Fix unbound-anchor certificate file read for line ends and end of
  file.

4 weeks ago- Small man page corrections for the 'disable-dnssec-lame-check' option.
Yorgos Thessalonikefs [Tue, 3 Jun 2025 12:10:53 +0000 (14:10 +0200)] 
- Small man page corrections for the 'disable-dnssec-lame-check' option.

6 weeks ago- Fix #1288: [FR] Improve fuzzing of unbound by adapting the netbound
W.C.A. Wijngaards [Wed, 21 May 2025 10:41:54 +0000 (12:41 +0200)] 
- Fix #1288: [FR] Improve fuzzing of unbound by adapting the netbound
  program.

6 weeks ago- Add more checks about respip in unbound-checkconf.
Yorgos Thessalonikefs [Tue, 20 May 2025 14:21:02 +0000 (16:21 +0200)] 
- Add more checks about respip in unbound-checkconf.
  Also fixes #310: unbound-checkconf not reporting RPZ configuration
  error.

6 weeks agoChangelog entry for #1285:
Yorgos Thessalonikefs [Tue, 20 May 2025 10:23:32 +0000 (12:23 +0200)] 
Changelog entry for #1285:
- Merge #1285:  RST man pages.

6 weeks agoRST man pages (#1285)
Yorgos Thessalonikefs [Tue, 20 May 2025 10:20:20 +0000 (12:20 +0200)] 
RST man pages (#1285)

Introduce restructuredText man pages to sync the online and source code man page documentation.
The templated man pages (*.in) are still part of the repo but generated with docutils from their .rst counterpart.
Documentation on how to generate those (mainly for core developers) are in README.man.

7 weeks ago- Fix for cname chain length with qtype ANY and qname minimisation.
W.C.A. Wijngaards [Mon, 19 May 2025 11:17:21 +0000 (13:17 +0200)] 
- Fix for cname chain length with qtype ANY and qname minimisation.
  Thanks to Jim Greenwood from Nominet for the report.

7 weeks ago- Fix config of slab values when there is no config file.
W.C.A. Wijngaards [Thu, 15 May 2025 12:34:18 +0000 (14:34 +0200)] 
- Fix config of slab values when there is no config file.

7 weeks ago- Adjusted so-sndbuf default to 4m.
W.C.A. Wijngaards [Tue, 13 May 2025 13:31:05 +0000 (15:31 +0200)] 
- Adjusted so-sndbuf default to 4m.

7 weeks ago- Change default for so-sndbuf to 1m, to mitigate a cross-layer
W.C.A. Wijngaards [Tue, 13 May 2025 13:04:32 +0000 (15:04 +0200)] 
- Change default for so-sndbuf to 1m, to mitigate a cross-layer
  issue where the UDP socket send buffers are exhausted waiting
  for ARP/NDP resolution. Thanks to Reflyable for the report.

7 weeks ago- Fix #1282: log-destaddr fail on long ipv6 addresses.
Yorgos Thessalonikefs [Tue, 13 May 2025 09:02:58 +0000 (11:02 +0200)] 
- Fix #1282: log-destaddr fail on long ipv6 addresses.

7 weeks ago- Fix #1284: NULL pointer deref in az_find_nsec_cover() (latent bug)
Yorgos Thessalonikefs [Tue, 13 May 2025 09:00:23 +0000 (11:00 +0200)] 
- Fix #1284: NULL pointer deref in az_find_nsec_cover() (latent bug)
  by adding a log_assert() to safeguard future development.

8 weeks ago- Fix #1283: Unsafe usage of atoi() while parsing the configuration
W.C.A. Wijngaards [Mon, 12 May 2025 12:57:42 +0000 (14:57 +0200)] 
- Fix #1283: Unsafe usage of atoi() while parsing the configuration
  file.

8 weeks agoChangelog entry for #1280:
Yorgos Thessalonikefs [Mon, 12 May 2025 12:29:11 +0000 (14:29 +0200)] 
Changelog entry for #1280:
- Merge #1280: Fix auth nsec3 code. Fixes NSEC3 code to not break on
  broken auth zones that include unsigned out of zone (above apex)
  data. Could lead to hang while trying to prove a wildcard answer.

8 weeks agoFix auth nsec3 code (#1280)
Yorgos Thessalonikefs [Mon, 12 May 2025 12:26:47 +0000 (14:26 +0200)] 
Fix auth nsec3 code (#1280)

- Fix NSEC3 code to not break on broken auth zones that include unsigned
  out of zone (above apex) data. Could lead to hang while trying to
  prove a wildcard answer.
  Reported by Dmitrii Kuvaiskii from Amazon Web Services.

- Tests for NSEC3 auth zones with out of zone data.

8 weeks ago- Fix #1281: forward-zone "name: ." conflicts with auth-zone "name: ."
W.C.A. Wijngaards [Fri, 9 May 2025 14:01:41 +0000 (16:01 +0200)] 
- Fix #1281: forward-zone "name: ." conflicts with auth-zone "name: ."
  in 1.23.0, but worked in 1.22.0.

2 months ago- Sync unbound and unbound-checkconf log output for unknown modules.
Yorgos Thessalonikefs [Mon, 5 May 2025 12:47:12 +0000 (14:47 +0200)] 
- Sync unbound and unbound-checkconf log output for unknown modules.

2 months agoChangelog entry for #1276:
Yorgos Thessalonikefs [Tue, 29 Apr 2025 13:23:07 +0000 (15:23 +0200)] 
Changelog entry for #1276:
- Merge #1276: Auto-configure '-slabs' values.

2 months agoAuto-configure '-slabs' values (#1276)
Yorgos Thessalonikefs [Tue, 29 Apr 2025 13:21:47 +0000 (15:21 +0200)] 
Auto-configure '-slabs' values (#1276)

- Auto-configure '-slabs' values to a power of 2 value close to num-threads
  by default for multi-threaded environments.

Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2 months ago- Fix dnstap to use protoc.
W.C.A. Wijngaards [Tue, 29 Apr 2025 10:43:56 +0000 (12:43 +0200)] 
- Fix dnstap to use protoc.

2 months ago- Fix for parallel build of dnstap protoc-c output.
W.C.A. Wijngaards [Tue, 29 Apr 2025 10:38:41 +0000 (12:38 +0200)] 
- Fix for parallel build of dnstap protoc-c output.

2 months agoChangelog entry for #1275:
Yorgos Thessalonikefs [Mon, 28 Apr 2025 13:50:03 +0000 (15:50 +0200)] 
Changelog entry for #1275:
- Merge #1275: Use macros for the fr_check_changed* functions.

2 months agoUse macros for the fr_check_changed* functions (#1275)
Yorgos Thessalonikefs [Mon, 28 Apr 2025 13:48:45 +0000 (15:48 +0200)] 
Use macros for the fr_check_changed* functions (#1275)

2 months ago- Fix #1272: assertion failure testcode/unitverify.c:202.
W.C.A. Wijngaards [Fri, 25 Apr 2025 09:12:28 +0000 (11:12 +0200)] 
- Fix #1272: assertion failure testcode/unitverify.c:202.

2 months ago- Tag for 1.23.0rc2. This became the release of 1.23.0 on 24 April
W.C.A. Wijngaards [Thu, 24 Apr 2025 08:17:45 +0000 (10:17 +0200)] 
- Tag for 1.23.0rc2. This became the release of 1.23.0 on 24 April
  2025. The code repository continues with 1.23.1 in development.

2 months agoMerge branch 'branch-1.23.0'
W.C.A. Wijngaards [Thu, 24 Apr 2025 08:14:02 +0000 (10:14 +0200)] 
Merge branch 'branch-1.23.0'

2 months ago- Increase default to `num-queries-per-thread: 2048`, when unbound is
W.C.A. Wijngaards [Wed, 16 Apr 2025 10:03:08 +0000 (12:03 +0200)] 
- Increase default to `num-queries-per-thread: 2048`, when unbound is
  compiled with libevent. It makes saturation of the task queue more
  resource intensive and less practical. Thanks to Shiming Liu,
  Network and Information Security Lab, Tsinghua University for the
  report.

2 months agoChangelog entry for #1265: branch-1.23.0 release-1.23.0 release-1.23.0rc2
Yorgos Thessalonikefs [Fri, 11 Apr 2025 13:07:25 +0000 (15:07 +0200)] 
Changelog entry for #1265:
- Merge #1265: Fix WSAPoll.

2 months agoFix WSAPoll (#1265)
Yorgos Thessalonikefs [Fri, 11 Apr 2025 13:05:52 +0000 (15:05 +0200)] 
Fix WSAPoll (#1265)

* Fix calling WSAPoll.

* fast_reload: explicitly set tcp_wouldblock on Windows when there is no
  command to read from the fast_reload thread.

* For poll(), also check for ENOMEM (Linux).

* Remove ifdefs for ENOMEM.
* Some systems return EAGAIN for poll.

2 months agoChangelog entry for #1265:
Yorgos Thessalonikefs [Fri, 11 Apr 2025 13:07:25 +0000 (15:07 +0200)] 
Changelog entry for #1265:
- Merge #1265: Fix WSAPoll.

2 months agoFix WSAPoll (#1265)
Yorgos Thessalonikefs [Fri, 11 Apr 2025 13:05:52 +0000 (15:05 +0200)] 
Fix WSAPoll (#1265)

* Fix calling WSAPoll.

* fast_reload: explicitly set tcp_wouldblock on Windows when there is no
  command to read from the fast_reload thread.

* For poll(), also check for ENOMEM (Linux).

* Remove ifdefs for ENOMEM.
* Some systems return EAGAIN for poll.

2 months ago- Fix for print of connection type in log-replies for dot and doh.
W.C.A. Wijngaards [Thu, 10 Apr 2025 07:33:51 +0000 (09:33 +0200)] 
- Fix for print of connection type in log-replies for dot and doh.

2 months agoMerge branch 'master' into branch-1.23.0
W.C.A. Wijngaards [Wed, 9 Apr 2025 12:20:22 +0000 (14:20 +0200)] 
Merge branch 'master' into branch-1.23.0

2 months ago- Fix #1264: unbound 1.22.0 leaks memory when doing DoH.
W.C.A. Wijngaards [Wed, 9 Apr 2025 12:13:58 +0000 (14:13 +0200)] 
- Fix #1264: unbound 1.22.0 leaks memory when doing DoH.

2 months ago- Fix to detect if atomic_store links in configure.
W.C.A. Wijngaards [Wed, 9 Apr 2025 09:06:25 +0000 (11:06 +0200)] 
- Fix to detect if atomic_store links in configure.

2 months agoMerge branch 'branch-1.23.0' of github.com:NLnetLabs/unbound into branch-1.23.0
W.C.A. Wijngaards [Tue, 8 Apr 2025 13:43:05 +0000 (15:43 +0200)] 
Merge branch 'branch-1.23.0' of github.com:NLnetLabs/unbound into branch-1.23.0

2 months ago- Fix fast_reload to print chroot with config file name.
W.C.A. Wijngaards [Tue, 8 Apr 2025 13:42:56 +0000 (15:42 +0200)] 
- Fix fast_reload to print chroot with config file name.

2 months ago- Update to the manpage for the fast_reload part.
Yorgos Thessalonikefs [Tue, 8 Apr 2025 13:34:51 +0000 (15:34 +0200)] 
- Update to the manpage for the fast_reload part.

2 months ago- Tag for 1.23.0rc1. release-1.23.0rc1
W.C.A. Wijngaards [Tue, 8 Apr 2025 06:37:30 +0000 (08:37 +0200)] 
- Tag for 1.23.0rc1.

3 months ago- More explicit text about memory usage during fast_reload.
Yorgos Thessalonikefs [Mon, 7 Apr 2025 14:56:38 +0000 (16:56 +0200)] 
- More explicit text about memory usage during fast_reload.

3 months agoChangelog entry for #902:
Yorgos Thessalonikefs [Mon, 7 Apr 2025 08:28:37 +0000 (10:28 +0200)] 
Changelog entry for #902:
- Merge #902: DNS Error Reporting (RFC 9567). Introduces new
  configuration option 'dns-error-reporting' and new statistics for
  'num.dns_error_reports'.

3 months agoDNS Error Reporting (RFC 9567) (#902)
Willem Toorop [Mon, 7 Apr 2025 08:25:10 +0000 (10:25 +0200)] 
DNS Error Reporting (RFC 9567) (#902)

* v1 EDER poc

* remove superfluous edns_list_get_option function

* create an EDER configurable

* Hackathon 114

* Fixes for version -04

* Generated configparser and configlexer are not versioned in master anymore

* Remove NOERROR DNS Error Reporting; not part of final RFC.
* Use assigned IANA EDNS0 Option Code for Report-Channel.

* Fix buffer protection and agent domain validity

* Use DNS Error Reporting instead of the eder nickname

* Update documentation.

* Fix typo.

* Bail out early if ede is not present.

* Forget previous EDNS options from upstream; this is what was
  implicitly happening but not deterministacally.

* Don't report LDNS_EDE_OTHER and bail early if there is no reporting
  agent.

* Only do DNS error reporting when a client asked for something that
  went wrong.

* Add an error reporting agent in the parent that should be ignored.

* review feedback.

* fixup for fast reload

* Add 'num.dns_error_reports' to stats and test for it.

---------

Co-authored-by: TCY16 <tom@nlnetlabs.nl>
Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
3 months ago- Fix to update common.sh for speed of kill_pid.
W.C.A. Wijngaards [Fri, 4 Apr 2025 09:55:42 +0000 (11:55 +0200)] 
- Fix to update common.sh for speed of kill_pid.

3 months ago- Fix test to speed up common.sh script kill_pid.
W.C.A. Wijngaards [Fri, 4 Apr 2025 09:37:42 +0000 (11:37 +0200)] 
- Fix test to speed up common.sh script kill_pid.

3 months agoFix typo in Changelog entry.
W.C.A. Wijngaards [Fri, 4 Apr 2025 09:00:16 +0000 (11:00 +0200)] 
Fix typo in Changelog entry.

3 months agoChangelog entry for #1019:
Yorgos Thessalonikefs [Fri, 4 Apr 2025 08:58:05 +0000 (10:58 +0200)] 
Changelog entry for #1019:
- Merge #1019: Redis read-only replica support.
  Introduces new 'redis-replica-*' options for the Redis cache backend.

3 months ago- Fix redis_replicat test for unused option defaults and log printout.
W.C.A. Wijngaards [Fri, 4 Apr 2025 08:57:53 +0000 (10:57 +0200)] 
- Fix redis_replicat test for unused option defaults and log printout.

3 months ago- Fix nettle compile for warnings and ticket keys.
W.C.A. Wijngaards [Fri, 4 Apr 2025 08:30:22 +0000 (10:30 +0200)] 
- Fix nettle compile for warnings and ticket keys.

3 months agoRedis read-only replica support (#1019)
Yorgos Thessalonikefs [Fri, 4 Apr 2025 08:20:47 +0000 (10:20 +0200)] 
Redis read-only replica support (#1019)

* Set version to 1.19.1 for point release.

* Initial work for Redis read-only replica support.

* Test for Redis replica.

* Documentation for the Redis replica timeouts.

* redis replica, rewrite set_timeout()

* clean merge.

* Add new options for fast reload.

* Apply suggestions from code review

Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
* some more typos

---------

Co-authored-by: W.C.A. Wijngaards <wouter@nlnetlabs.nl>
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
3 months ago- Fix comment name in the rpz nsdname test.
W.C.A. Wijngaards [Fri, 4 Apr 2025 06:58:54 +0000 (08:58 +0200)] 
- Fix comment name in the rpz nsdname test.

3 months ago- Fix mesh_copy_client_info to omit null contents from copy.
W.C.A. Wijngaards [Fri, 4 Apr 2025 06:57:24 +0000 (08:57 +0200)] 
- Fix mesh_copy_client_info to omit null contents from copy.

3 months ago- Fix parameter unused warning in net_help.c.
W.C.A. Wijngaards [Thu, 3 Apr 2025 13:21:16 +0000 (15:21 +0200)] 
- Fix parameter unused warning in net_help.c.

3 months ago- Fix test for stat_values for wait limit defaults for localhost.
W.C.A. Wijngaards [Thu, 3 Apr 2025 12:50:30 +0000 (14:50 +0200)] 
- Fix test for stat_values for wait limit defaults for localhost.

3 months ago- Fix ub_event and include dnstap and win_svc headers.
W.C.A. Wijngaards [Thu, 3 Apr 2025 08:59:41 +0000 (10:59 +0200)] 
- Fix ub_event and include dnstap and win_svc headers.

3 months ago- Fix wait-limit-netblock and wait-limit-cookie-netblock config parse
W.C.A. Wijngaards [Thu, 3 Apr 2025 07:53:27 +0000 (09:53 +0200)] 
- Fix wait-limit-netblock and wait-limit-cookie-netblock config parse
  to allow two arguments.

3 months ago- Fix #1263: Exempt loopback addresses from wait-limit.
W.C.A. Wijngaards [Thu, 3 Apr 2025 07:45:36 +0000 (09:45 +0200)] 
- Fix #1263: Exempt loopback addresses from wait-limit.

3 months ago- Fix that ub_event has the facility to deal with callbacks for
W.C.A. Wijngaards [Wed, 2 Apr 2025 14:25:58 +0000 (16:25 +0200)] 
- Fix that ub_event has the facility to deal with callbacks for
  fast reload, doq, windows-stop and dnstap.
- Fix fast reload test to check if pid exists before acting on it.

3 months ago- Fix unbound-control test so it counts the new flush_negative output,
W.C.A. Wijngaards [Wed, 2 Apr 2025 13:52:20 +0000 (15:52 +0200)] 
- Fix unbound-control test so it counts the new flush_negative output,
  also answers the _ta probe from testns and prints command output
  and skip a thread specific test when no threads are available.

3 months ago- For #1262, ifdef is no longer needed.
Yorgos Thessalonikefs [Wed, 2 Apr 2025 09:53:50 +0000 (11:53 +0200)] 
- For #1262, ifdef is no longer needed.

3 months agoChangelog entry for #1262:
Yorgos Thessalonikefs [Wed, 2 Apr 2025 09:52:04 +0000 (11:52 +0200)] 
Changelog entry for #1262:
- Merge #1262 from markyang92, fix build with
  'gcc-15 -Wbuiltin-declaration-mismatch' error in compat/malloc.c.

3 months agoMerge pull request #1262 from markyang92/master
Yorgos Thessalonikefs [Wed, 2 Apr 2025 09:49:49 +0000 (11:49 +0200)] 
Merge pull request #1262 from markyang92/master

fix build with gcc-15 -Wbuiltin-declaration-mismatch error in compat/malloc.c

3 months agofix build with gcc-15 -Wbuiltin-declaration-mismatch error 1262/head
mark.yang [Wed, 2 Apr 2025 06:25:42 +0000 (15:25 +0900)] 
fix build with gcc-15 -Wbuiltin-declaration-mismatch error

See more details: http://errors.yoctoproject.org/Errors/Details/850313
../git/compat/malloc.c:9:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
    9 | void *malloc ();
      |       ^~~~~~
../git/compat/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>'
    4 | #include "config.h"
  +++ |+#include <stdlib.h>
    5 | #undef malloc
../git/compat/malloc.c: In function 'rpl_malloc_unbound':
../git/compat/malloc.c:23:10: error: too many arguments to function 'malloc'; expected 0, have 1
   23 |   return malloc (n);
      |          ^~~~~~  ~
../git/compat/malloc.c:9:7: note: declared here
    9 | void *malloc ();
      |       ^~~~~~

* Seeing that there is '#undef malloc', it appears they don't want to
  use the malloc from stdlib.h.
  Therefore, we need to correctly define the parameters for malloc.

Signed-off-by: mark.yang <mark.yang@lge.com>
3 months ago- Enable the auth_tls.tdir and auth_tls_failcert.tdir tests.
W.C.A. Wijngaards [Tue, 1 Apr 2025 12:44:25 +0000 (14:44 +0200)] 
- Enable the auth_tls.tdir and auth_tls_failcert.tdir tests.

3 months ago- Fix escape more characters when printing an RR type with an unquoted
W.C.A. Wijngaards [Tue, 1 Apr 2025 11:53:29 +0000 (13:53 +0200)] 
- Fix escape more characters when printing an RR type with an unquoted
  string.

3 months ago- Skip the unit tests for auth_tls.tdir and auth_tls_failcert.tdir.
W.C.A. Wijngaards [Mon, 31 Mar 2025 14:04:07 +0000 (16:04 +0200)] 
- Skip the unit tests for auth_tls.tdir and auth_tls_failcert.tdir.

3 months agoFast Reload Option (#1042)
Wouter Wijngaards [Mon, 31 Mar 2025 13:25:24 +0000 (15:25 +0200)] 
Fast Reload Option (#1042)

* - fast-reload, add unbound-control fast_reload

* - fast-reload, make a thread to service the unbound-control command.

* - fast-reload, communication sockets for information transfer.

* - fast-reload, fix compile for unbound-dnstap-socket.

* - fast-reload, set nonblocking communication to keep the server thread
  responding to DNS requests.

* - fast-reload, poll routine to test for readiness, timeout fails connection.

* - fast-reload, detect loop in sock_poll_timeout routine.

* - fast-reload, send done and exited notification.

* - fast-reload, defines for constants in ipc.

* - fast-reload, ipc socket recv and send resists partial reads and writes and
  can continue byte by byte. Also it can continue after an interrupt.

* - fast-reload, send exit command to thread when done.

* - fast-reload, output strings for client on string list.

* - fast-reload, add newline to terminal output.

* - fast-reload, send client string to remote client.

* - fast-reload, better debug output.

* - fast-reload, print queue structure, for output to the remote client.

* - fast-reload, move print items to print queue from fast_reload_thread struct.

* - fast-reload, keep list of pending print queue items in daemon struct.

* - fast-reload, comment explains in_list for printq to print remainder.

* - fast-reload, unit test testdata/fast_reload_thread.tdir that tests the
  thread output.

* - fast-reload, fix test link for fast_reload_printq_list_delete function.

* - fast-reload, reread config file from disk.

* - fast-reload, unshare forwards, making the structure locked, with an rwlock.

* - 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.

* - fast-reload, unshared stub hints, making the structure locked, with an rwlock.

* - fast-reload, helpful comments for hints lookup function return value.

* - fast-reload, fix bug in fast reload printout, the strlist appendlist routine,
  and printout time statistics after the reload is done.

* - fast-reload, keep track of reloadtime and deletestime and print them.

* - fast-reload, keep track of constructtime and print it.

* - fast-reload, construct new items.

* - fast-reload, better comment.

* - fast-reload, reload the config and swap trees for forwards and stub hints.

* - fast-reload, in forwards_swap_tree set protection of trees with locks.

* - fast-reload, in hints_swap_tree also swap the node count of the trees.

* - fast-reload, reload ipc to stop and start threads.

* - fast-reload, unused forward declarations removed.

* - fast-reload, unit test that fast reload works with forwards and stubs.

* - fast-reload, fix clang analyzer warnings.

* - fast-reload, small documentation entry in unbound-control -h output.

* - fast-reload, printout memory use by fast reload, in bytes.

* - fast-reload, compile without threads.

* - fast-reload, document fast_reload in man page.

* - fast-reload, print ok when done successfully.

* - fast-reload, option for fast-reload commandline, +v verbosity option,
  with timing and memory use output.

* - fast-reload, option for fast-reload commandline, +p does not pause threads.

* - fast-reload, option for fast-reload commandline, +d drops mesh queries.

* - fast-reload, fix to poll every thread with nopause to make certain that
  resources are not held by the threads and can be deleted.

* - fast-reload, fix to use atomic store for config variables with nopause.

* - fast-reload, reload views.

* - fast-reload, when tag defines are different, it drops the queries.

* - fast-reload, fix tag define check.

* - fast-reload, document that tag change causes drop of queries.

* - fast-reload, fix space in documentation man page.

* - fast-reload, copy respip client information to query state, put views tree
  in module env for lookup.

* - fast-reload, nicer respip view comparison.

* - fast-reload, respip global set is in module env.

* - fast-reload, document that respip_client_info acl info is copied.

* - fast-reload, reload the respip_set.

* - fast-reload, document no pause and pick up of use_response_ip boolean.

* - fast-reload, fix test compile.

* - fast-reload, reload local zones.

* 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>
* - fast-reload, reload access-control.

* - fast-reload, reload access control interface, such as interface-action.

* - fast-reload, reload tcp-connection-limit.

* - fast-reload, improve comments on acl_list and tcl_list swap tree.

* - fast-reload, fixup references to old tcp connection limits in open tcp
  connections.

* - fast-reload, fixup to clean tcp connection also for different linked order.

* - fast-reload, if no tcp connection limits existed, no need to remove
  references for that.

* - fast-reload, document more options that work and do not work.

* - fast-reload, reload auth_zone and rpz data.

* - fast-reload, fix auth_zones_get_mem.

* - fast-reload, fix compilation of testbound for the new comm_timer_get_mem
  reference in remote control.

* - fast-reload, change use_rpz with reload.

* - fast-reload, list changes in auth zones and stop zonemd callbacks for
  deleted auth zones.

* - fast-reload, note xtree is not swapped, and why it is not swapped.

* - fast-reload, for added auth zones, pick up zone transfer and zonemd tasks.

* - fast-reload, unlock xfr when done with transfer pick up.

* - fast-reload, unlock z when picking up the xfr for it during transfer task
  pick up.

* - fast-reload, pick up task changes for added, deleted and modified auth zones.

* - fast-reload, remove xfr of auth zone deletion without tasks.

* - fast-reload, pick up zone transfer config.

* - fast-reload, the main worker thread picks up the transfer tasks and also
  performs setup of the xfer struct.

* - fast-reload, keep writelock on newzone when auth zone changes.

* - fast-reload, change cachedb_enabled setting.

* - fast-reload, pick up edns-strings config.

* - fast-reload, note that settings are not updated.

* - fast-reload, pick up dnstap config.

* - fast-reload, dnstap options that need to be loaded without +p.

* - fast-reload, fix auth zone reload

* - fast-reload, remove debug for auth zone test.

* - fast-reload, fix auth zone reload with zone transfer.

* - fast-reload, fix auth zone reload lock order.

* - fast-reload, remove debug from fast reload test.

* - fast-reload, remove unused function.

* - fast-reload, fix the worker trust anchor probe timer lock acquisition in
  the probe answer callback routine for trust anchor probes.

* - fast-reload, reload trust anchors.

* - fast-reload, fix trust anchor reload lock on autr global data and test
  for trust anchor reload.

* - fast-reload, adjust cache sizes.

* - fast-reload, reload cache sizes when changed.

* - fast-reload, reload validator env changes.

* - fast-reload, reload mesh changes.

* - fast-reload, check for incompatible changes.

* - fast-reload, improve error text for incompatible change.

* - fast-reload, fix check config option compatibility.

* - fast-reload, improve error text for nopause change.

* - fast-reload, fix spelling of incompatible options.

* - fast-reload, reload target-fetch-policy, outbound-msg-retry, max-sent-count
  and max-query-restarts.

* - fast-reload, check nopause config change for target-fetch-policy.

* - fast-reload, reload do-not-query-address, private-address and capt-exempt.

* - fast-reload, check nopause config change for do-not-query-address,
  private-address and capt-exempt.

* - fast-reload, check fast reload not possible due to interface and
  outgoing-interface changes.

* - fast-reload, reload nat64 settings.

* - fast-reload, reload settings stored in the infra structure.

* - fast-reload, fix modstack lookup and remove outgoing-range check.

* - fast-reload, more explanation for config parse failure.

* - fast-reload, reload worker outside network changes.

* - fast-reload, detect incompatible changes in network settings.

* fast-reload, commit test files.

* - fast-reload, fix warnings for call types in windows compile.

* - fast-reload, fix warnings and comm_point_internal for tcp wouldblock calls.

* - fast-reload, extend lock checks for repeat thread ids.

* - fast-reload, additional test cases, cache change and tag changes.

* - fast-reload, fix documentation for auth_zone_verify_zonemd_with_key.

* - fast-reload, fix copy_cfg type casts and memory leak on config parse failure.

* - fast-reload, fix use of WSAPoll.

* Review comments for the fast reload feature (#1259)

* - fast-reload review, respip set can be null from a view.

* - fast-reload review, typos.

* - fast-reload review, keep clang static analyzer happy.

* - fast-reload review, don't forget to copy tag_actions.

* - fast-reload review, less indentation.

* - fast-reload review, don't leak respip_actions when reloading.

* - fast-reload review, protect NULL pointer dereference in get_mem
  functions.

* - fast-reload review, add fast_reload_most_options.tdir to test most
  options with high verbosity when fast reloading.

* - fast-reload review, don't skip new line on long error printouts.

* - fast-reload review, typo.

* - fast-reload review, use new_z for consistency.

* - fast-reload review, nit for unlock ordering to make eye comparison
  with the lock counterpart easier.

* - fast-reload review, in case of error the sockets are already closed.

* - fast-reload review, identation.

* - fast-reload review, add static keywords.

* - fast-reload review, update unbound-control usage text.

* - fast-reload review, updates to the man page.

* - fast-reload, the fast-reload command is experimental.

* - fast-reload, fix compile of doqclient for fast reload functions.

* Changelog comment for #1042
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
  It reads changed config in a thread, then only briefly pauses the
  service threads, that keep running. DNS service is only interrupted
  briefly, less than a second.

---------

Co-authored-by: Yorgos Thessalonikefs <yorgos@nlnetlabs.nl>
3 months ago- iana portlist update.
W.C.A. Wijngaards [Mon, 31 Mar 2025 12:25:16 +0000 (14:25 +0200)] 
- iana portlist update.

3 months ago- Fix for ci test, expat is installed on the osx image.
W.C.A. Wijngaards [Thu, 27 Mar 2025 09:52:00 +0000 (10:52 +0100)] 
- Fix for ci test, expat is installed on the osx image.

3 months ago- Fix unit test dname log printout typecast.
W.C.A. Wijngaards [Thu, 27 Mar 2025 09:47:20 +0000 (10:47 +0100)] 
- Fix unit test dname log printout typecast.

3 months ago- For #1255, for ios try the latest expat version again.
Yorgos Thessalonikefs [Wed, 26 Mar 2025 15:51:46 +0000 (16:51 +0100)] 
- For #1255, for ios try the latest expat version again.

3 months ago- For #1255, for ios disable building tests that require C++11.
Yorgos Thessalonikefs [Wed, 26 Mar 2025 15:40:10 +0000 (16:40 +0100)] 
- For #1255, for ios disable building tests that require C++11.

3 months ago- For #1255, for ios use an older expat version that does not require
Yorgos Thessalonikefs [Wed, 26 Mar 2025 15:15:16 +0000 (16:15 +0100)] 
- For #1255, for ios use an older expat version that does not require
  C++11 language features.

3 months ago- Fix #1255: Multiple pinnings to vulnerable copies of libexpat.
Yorgos Thessalonikefs [Wed, 26 Mar 2025 13:58:54 +0000 (14:58 +0100)] 
- Fix #1255: Multiple pinnings to vulnerable copies of libexpat.

3 months ago- Fix #1254: `send failed: Socket is not connected` and
W.C.A. Wijngaards [Mon, 24 Mar 2025 07:54:54 +0000 (08:54 +0100)] 
- Fix #1254: `send failed: Socket is not connected` and
  `remote address is 0.0.0.0 port 53`.

3 months ago- Fix for #1253: Fix for redis cachedb backend to expect an integer
W.C.A. Wijngaards [Fri, 21 Mar 2025 13:07:22 +0000 (14:07 +0100)] 
- Fix for #1253: Fix for redis cachedb backend to expect an integer
  reply for the EXPIRE command.

3 months ago- Fix #1253: Cache entries fail to be removed from Redis cachedb
W.C.A. Wijngaards [Fri, 21 Mar 2025 11:56:21 +0000 (12:56 +0100)] 
- Fix #1253: Cache entries fail to be removed from Redis cachedb
  backend with unbound-control flush* +c.

3 months ago- Fix print of RR type NSAP-PTR, it is an unquoted string.
W.C.A. Wijngaards [Thu, 20 Mar 2025 14:51:03 +0000 (15:51 +0100)] 
- Fix print of RR type NSAP-PTR, it is an unquoted string.

3 months ago- Fix for windows compile create ssl contexts.
W.C.A. Wijngaards [Tue, 18 Mar 2025 13:01:53 +0000 (14:01 +0100)] 
- Fix for windows compile create ssl contexts.