]>
git.ipfire.org Git - thirdparty/unbound.git/log
xiangbao227 [Wed, 13 Jan 2021 02:33:41 +0000 (10:33 +0800)]
I found that in function lruhash_remove, table was locked at first ,then lru_remove the entry , then unlock the table, and then markdel entry , but in function rrset_cache_touch , the entry will be touched to lru again before markdelling entry in function lruhash_remove. This is a bug!
W.C.A. Wijngaards [Tue, 12 Jan 2021 12:40:45 +0000 (13:40 +0100)]
And man page documentation for them.
W.C.A. Wijngaards [Tue, 12 Jan 2021 12:39:07 +0000 (13:39 +0100)]
- Fix so local zone types always_nodata and always_deny can be used
from the config file.
W.C.A. Wijngaards [Tue, 12 Jan 2021 12:35:05 +0000 (13:35 +0100)]
- Fix #397: [Feature request] add new type always_null to local-zone
similar to always_nxdomain.
W.C.A. Wijngaards [Fri, 8 Jan 2021 10:10:05 +0000 (11:10 +0100)]
- Fix clang analysis warning.
W.C.A. Wijngaards [Fri, 8 Jan 2021 10:01:06 +0000 (11:01 +0100)]
- Add comment documentation.
W.C.A. Wijngaards [Fri, 8 Jan 2021 08:55:55 +0000 (09:55 +0100)]
- For #391: more double casts in python start time calculation.
W.C.A. Wijngaards [Fri, 8 Jan 2021 08:53:52 +0000 (09:53 +0100)]
- For #391: fix indentation.
W.C.A. Wijngaards [Fri, 8 Jan 2021 08:47:46 +0000 (09:47 +0100)]
- For #391: use struct timeval* start_time for callback information.
W.C.A. Wijngaards [Fri, 8 Jan 2021 08:36:37 +0000 (09:36 +0100)]
Changelog note for #391
- Merge PR #391 from fhriley: Add start_time to reply callbacks so
modules can compute the response time.
Wouter Wijngaards [Fri, 8 Jan 2021 08:35:07 +0000 (09:35 +0100)]
Merge pull request #391 from fhriley/reply_cb_start_time
Add start_time to reply callbacks so modules can compute the response…
W.C.A. Wijngaards [Wed, 6 Jan 2021 12:42:00 +0000 (13:42 +0100)]
- Fix #387: client-subnet-always-forward seems to effectively bypass
any caching?
W.C.A. Wijngaards [Wed, 6 Jan 2021 12:19:46 +0000 (13:19 +0100)]
Changelog note for #395
- Merge PR #395 from mptre: add missing null check.
Wouter Wijngaards [Wed, 6 Jan 2021 12:19:30 +0000 (13:19 +0100)]
Merge pull request #395 from mptre/log-addr-null
add missing null check
Anton Lindqvist [Wed, 6 Jan 2021 11:35:22 +0000 (12:35 +0100)]
add missing null check
I have a unbound forward zone configured on my router for my $DAYJOB.
The address associated with the zone is only accessible when the router
is connected to a VPN. If the VPN connection is absent, trying to
resolve any domain that must be handled by the zone crashes unbound.
Turns out there's a missing NULL check in `comm_point_send_udp_msg()`.
The same routine already has `if (addr) {} else {}` branches so I guess
protecting the call to `log_addr()` using the same conditional is
reasonable
I have also committed the same fix to unbound shipped with OpenBSD[1].
[1] https://marc.info/?l=openbsd-cvs&m=
160993335615698 &w=2
W.C.A. Wijngaards [Wed, 6 Jan 2021 09:36:23 +0000 (10:36 +0100)]
- Fix #379: zone loading over HTTP appears to have buffer issues.
W.C.A. Wijngaards [Tue, 5 Jan 2021 12:43:53 +0000 (13:43 +0100)]
Changelog note for #375 and -h output.
- Merge PR #375 by fhriley: Add rpz_enable and rpz_disable commands
to unbound-control.
Wouter Wijngaards [Tue, 5 Jan 2021 12:40:32 +0000 (13:40 +0100)]
Merge pull request #375 from fhriley/disable-rpz
Add rpz_enable and rpz_disable commands to unbound-control
W.C.A. Wijngaards [Tue, 5 Jan 2021 11:48:27 +0000 (12:48 +0100)]
Fix acx_nlnetlabs.m4 for aclocal
W.C.A. Wijngaards [Tue, 5 Jan 2021 09:27:13 +0000 (10:27 +0100)]
- Fix #385: autoconf 2.70 impacts unbound build
W.C.A. Wijngaards [Mon, 4 Jan 2021 13:18:24 +0000 (14:18 +0100)]
- iana portlist updated.
W.C.A. Wijngaards [Mon, 4 Jan 2021 13:05:50 +0000 (14:05 +0100)]
- For #376: Fix that comm point event is not double removed or double
added to event map.
Frank Riley [Fri, 1 Jan 2021 22:29:32 +0000 (15:29 -0700)]
Add start_time to reply callbacks so modules can compute the response time.
George Thessalonikefs [Wed, 16 Dec 2020 16:11:41 +0000 (17:11 +0100)]
- Fix error cases when udp-connect is set and send() returns an error
(modified patch from Xin Li @delphij).
Frank Riley [Sun, 13 Dec 2020 19:35:11 +0000 (12:35 -0700)]
Add rpz_enable and rpz_disable commands to unbound-control.
W.C.A. Wijngaards [Fri, 11 Dec 2020 13:34:39 +0000 (14:34 +0100)]
- Fix missing prototypes in the code.
W.C.A. Wijngaards [Fri, 11 Dec 2020 13:07:42 +0000 (14:07 +0100)]
Changelog note for #373
- Merge PR #373 from fobser: Warning: arithmetic on a pointer to void
is a GNU extension.
Wouter Wijngaards [Fri, 11 Dec 2020 13:07:30 +0000 (14:07 +0100)]
Merge pull request #373 from fobser/void-arithmetic
Warning: arithmetic on a pointer to void is a GNU extension.
W.C.A. Wijngaards [Fri, 11 Dec 2020 13:04:01 +0000 (14:04 +0100)]
Changelog note for #335
- Merge PR #335 from fobser: Sprinkle in some static to prevent
missing prototype warnings.
Wouter Wijngaards [Fri, 11 Dec 2020 13:03:46 +0000 (14:03 +0100)]
Merge pull request #335 from fobser/static
Sprinkle in some static to prevent missing prototype warnings.
Florian Obser [Fri, 11 Dec 2020 13:00:20 +0000 (14:00 +0100)]
Warning: arithmetic on a pointer to void is a GNU extension.
W.C.A. Wijngaards [Fri, 11 Dec 2020 09:30:54 +0000 (10:30 +0100)]
- Fix to squelch permission denied and other errors from remote host,
they are logged at higher verbosity but not on low verbosity.
W.C.A. Wijngaards [Fri, 11 Dec 2020 08:33:56 +0000 (09:33 +0100)]
- Fix #371: unbound-control timeout when Unbound is not running.
W.C.A. Wijngaards [Thu, 3 Dec 2020 09:27:19 +0000 (10:27 +0100)]
- iana portlist updated.
W.C.A. Wijngaards [Thu, 3 Dec 2020 09:26:37 +0000 (10:26 +0100)]
- make depend.
W.C.A. Wijngaards [Thu, 3 Dec 2020 09:14:14 +0000 (10:14 +0100)]
Code repo continues for 1.13.1 in development.
W.C.A. Wijngaards [Wed, 2 Dec 2020 15:17:26 +0000 (16:17 +0100)]
- Fix update, with write event check with streamreuse and fastopen.
W.C.A. Wijngaards [Wed, 2 Dec 2020 14:42:24 +0000 (15:42 +0100)]
- Fix for #283: fix stream reuse and tcp fast open.
W.C.A. Wijngaards [Wed, 2 Dec 2020 10:58:24 +0000 (11:58 +0100)]
- Fix on windows to ignore connection failure on UDP, unless verbose.
W.C.A. Wijngaards [Wed, 2 Dec 2020 10:51:54 +0000 (11:51 +0100)]
- Fix unbound-dnstap-socket to not use log routine from interrupt
handler and not print so frequently when invoked in sequence.
W.C.A. Wijngaards [Wed, 2 Dec 2020 09:10:27 +0000 (10:10 +0100)]
- Fix #356: deadlock when listening tcp.
W.C.A. Wijngaards [Wed, 2 Dec 2020 08:51:26 +0000 (09:51 +0100)]
- Fix #360: for the additionally reported TCP Fast Open makes TCP
connections fail, in that case we print a hint that this is
happening with the error in the logs.
W.C.A. Wijngaards [Tue, 1 Dec 2020 08:09:13 +0000 (09:09 +0100)]
- Fix #358: Squelch udp connect 'no route to host' errors on low
verbosity.
W.C.A. Wijngaards [Mon, 30 Nov 2020 11:52:04 +0000 (12:52 +0100)]
Changelog entry for rc tags 1.13.0rc3 and rc4.
W.C.A. Wijngaards [Mon, 30 Nov 2020 08:41:33 +0000 (09:41 +0100)]
- Fix assertion failure on double callback when iterator loses
interest in query at head of line that then has the tcp stream
not kept for reuse.
W.C.A. Wijngaards [Fri, 27 Nov 2020 14:08:31 +0000 (15:08 +0100)]
- Fix contrib/metrics.awk for FreeBSD awk compatibility.
W.C.A. Wijngaards [Fri, 27 Nov 2020 09:11:14 +0000 (10:11 +0100)]
- Fix compile warnings in rpz initialization.
W.C.A. Wijngaards [Fri, 27 Nov 2020 09:01:55 +0000 (10:01 +0100)]
- Fix compile warnings for windows.
W.C.A. Wijngaards [Fri, 27 Nov 2020 08:57:08 +0000 (09:57 +0100)]
- Fix when use free buffer to initialize rbtree for stream reuse.
W.C.A. Wijngaards [Fri, 27 Nov 2020 08:08:48 +0000 (09:08 +0100)]
- Fix compile warning for type cast in http2_submit_dns_response.
W.C.A. Wijngaards [Thu, 26 Nov 2020 11:23:18 +0000 (12:23 +0100)]
- Clear readagain upon decommission of pending tcp structure.
W.C.A. Wijngaards [Thu, 26 Nov 2020 11:12:52 +0000 (12:12 +0100)]
- Fix that after failed read, the readagain cannot activate.
W.C.A. Wijngaards [Thu, 26 Nov 2020 10:00:48 +0000 (11:00 +0100)]
- For #352: contrib/metrics.awk for Prometheus style metrics output.
W.C.A. Wijngaards [Thu, 26 Nov 2020 08:39:54 +0000 (09:39 +0100)]
- Fix to omit UDP receive errors from log, if verbosity low.
These happen because of udp-connect.
W.C.A. Wijngaards [Wed, 25 Nov 2020 13:03:32 +0000 (14:03 +0100)]
- tag for the 1.13.0rc2 release.
W.C.A. Wijngaards [Wed, 25 Nov 2020 12:46:28 +0000 (13:46 +0100)]
- Fix readagain and writeagain callback functions for comm point
cleanup.
W.C.A. Wijngaards [Wed, 25 Nov 2020 11:12:35 +0000 (12:12 +0100)]
- Attempt fix for libevent state in tcp reuse cases after a packet
is written.
W.C.A. Wijngaards [Wed, 25 Nov 2020 11:04:38 +0000 (12:04 +0100)]
- Fix memory leak for edns client tag opcode config element.
W.C.A. Wijngaards [Wed, 25 Nov 2020 11:02:51 +0000 (12:02 +0100)]
- Remove debug commands from reuse tests.
W.C.A. Wijngaards [Wed, 25 Nov 2020 09:22:11 +0000 (10:22 +0100)]
- Better fix for reuse tree comparison for is-tls sockets. Where
the tree key identity is preserved after cleanup of the TLS state.
W.C.A. Wijngaards [Wed, 25 Nov 2020 08:55:01 +0000 (09:55 +0100)]
- Fix udp-connect on FreeBSD, do send calls on connected UDP socket.
W.C.A. Wijngaards [Wed, 25 Nov 2020 08:41:06 +0000 (09:41 +0100)]
- with udp-connect ignore connection refused with UDP timeouts.
W.C.A. Wijngaards [Tue, 24 Nov 2020 16:06:54 +0000 (17:06 +0100)]
- Fix padding of struct regional for 32bit systems.
W.C.A. Wijngaards [Tue, 24 Nov 2020 15:58:51 +0000 (16:58 +0100)]
- Fix crash when TLS connection is closed prematurely, when
reuse tree comparison is not properly identical to insertion.
W.C.A. Wijngaards [Tue, 24 Nov 2020 14:01:44 +0000 (15:01 +0100)]
- tag for the 1.13.0rc1 release.
W.C.A. Wijngaards [Tue, 24 Nov 2020 13:16:06 +0000 (14:16 +0100)]
- Fix one port unit test for udp-connect.
W.C.A. Wijngaards [Tue, 24 Nov 2020 12:17:15 +0000 (13:17 +0100)]
- iana portlist updated.
Wouter Wijngaards [Tue, 24 Nov 2020 07:28:08 +0000 (08:28 +0100)]
- set version of main branch to 1.13.0 for upcoming release.
Wouter Wijngaards [Tue, 24 Nov 2020 07:23:24 +0000 (08:23 +0100)]
Changelog note for #283.
- Merge PR #283 : Stream reuse. This implements upstream stream
reuse for performing several queries over the same TCP or TLS
channel.
Wouter Wijngaards [Tue, 24 Nov 2020 07:21:07 +0000 (08:21 +0100)]
Merge pull request #283 from NLnetLabs/stream-reuse
Stream reuse
Wouter Wijngaards [Tue, 24 Nov 2020 07:20:07 +0000 (08:20 +0100)]
Merge branch 'master' into stream-reuse
George Thessalonikefs [Mon, 23 Nov 2020 16:37:46 +0000 (17:37 +0100)]
Changelog note for #313:
- Merge PR #313 from Ralph Dolmans: Replace edns-client-tag with
edns-client-string option.
gthess [Mon, 23 Nov 2020 16:34:42 +0000 (17:34 +0100)]
Merge pull request #313 from NLnetLabs/edns-string
Replace edns-client-tag with edns-client-string option
George Thessalonikefs [Mon, 23 Nov 2020 15:58:30 +0000 (16:58 +0100)]
Merge branch 'master' into edns-string
George Thessalonikefs [Mon, 23 Nov 2020 15:35:58 +0000 (16:35 +0100)]
Merge branch 'master' into edns-string
George Thessalonikefs [Mon, 23 Nov 2020 15:32:00 +0000 (16:32 +0100)]
- Update manpage.
W.C.A. Wijngaards [Mon, 23 Nov 2020 13:17:58 +0000 (14:17 +0100)]
Fix writepid for retvalue 0.
W.C.A. Wijngaards [Mon, 23 Nov 2020 12:48:04 +0000 (13:48 +0100)]
Further fix for CVE-2020-28935, so the chown is omitted when the pidfile
fails due to a symlink.
W.C.A. Wijngaards [Mon, 23 Nov 2020 12:42:11 +0000 (13:42 +0100)]
- Fix for #303 CVE-2020-28935 : Fix that symlink does not interfere
with chown of pidfile.
W.C.A. Wijngaards [Mon, 23 Nov 2020 10:06:53 +0000 (11:06 +0100)]
- Option to toggle udp-connect, default is enabled.
W.C.A. Wijngaards [Mon, 23 Nov 2020 09:36:22 +0000 (10:36 +0100)]
stream reuse, up connection reuse time to 60 seconds.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:56:01 +0000 (09:56 +0100)]
+ - Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:49:26 +0000 (09:49 +0100)]
Merge branch 'master' into stream-reuse
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:46:26 +0000 (09:46 +0100)]
stream reuse, fix review comments.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:44:56 +0000 (09:44 +0100)]
stream reuse, fix review comments.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:40:15 +0000 (09:40 +0100)]
stream reuse, review comments.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:37:26 +0000 (09:37 +0100)]
stream reuse, fix review comments.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:35:58 +0000 (09:35 +0100)]
stream reuse, rename ssl_reuse test to tls_reuse test.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:33:28 +0000 (09:33 +0100)]
stream reuse, renamed ssl_reuse.tdir to tls_reuse.tdir.
W.C.A. Wijngaards [Mon, 23 Nov 2020 08:29:26 +0000 (09:29 +0100)]
stream reuse, debug output with verbose level instead of number.
W.C.A. Wijngaards [Mon, 23 Nov 2020 07:58:41 +0000 (08:58 +0100)]
Changelog notes for #350 and #351
- Merge #351 from dvzrv: Add AF_NETLINK to set of allowed socket
address families.
- Fix #350: with the AF_NETLINK permission, to fix 1.12.0 error:
failed to list interfaces: getifaddrs: Address family not
supported by protocol.
Wouter Wijngaards [Mon, 23 Nov 2020 07:57:23 +0000 (08:57 +0100)]
Merge pull request #351 from dvzrv/issues/350
Add AF_NETLINK to set of allowed socket address families
David Runge [Sat, 21 Nov 2020 13:10:39 +0000 (14:10 +0100)]
Add AF_NETLINK to set of allowed socket address families
contrib/unbound{,_portable}.service.in:
With the changes introduced in
f6a527c25ad2e60e2dc129fff3605e6ec48c30f2
it is now necessary to also allow access to the AF_NETLINK socket
address family to be able to get information from interfaces.
Without the AF_NETLINK address family the systemd service errors with:
```
error: failed to list interfaces: getifaddrs: Address family not
supported by protocol
```
Fixes #350
W.C.A. Wijngaards [Thu, 12 Nov 2020 12:36:37 +0000 (13:36 +0100)]
- Retry for interfaces with unused ports if possible.
W.C.A. Wijngaards [Thu, 12 Nov 2020 11:28:10 +0000 (12:28 +0100)]
Changelog note.
W.C.A. Wijngaards [Thu, 12 Nov 2020 11:27:41 +0000 (12:27 +0100)]
- Fix to connect() to UDP destinations, default turned on,
this lowers vulnerability to ICMP side channels.
Ralph Dolmans [Wed, 11 Nov 2020 10:38:06 +0000 (11:38 +0100)]
Merge branch 'master' into edns-string
Ralph Dolmans [Wed, 11 Nov 2020 10:37:32 +0000 (11:37 +0100)]
Merge branch 'master' into edns-string
W.C.A. Wijngaards [Tue, 10 Nov 2020 14:31:20 +0000 (15:31 +0100)]
- Fix #343: Fail to build --with-libnghttp2 with error: 'SSIZE_MAX'
undeclared.
W.C.A. Wijngaards [Tue, 10 Nov 2020 12:51:56 +0000 (13:51 +0100)]
- Fix memory leak after fix for possible memory leak failure.