]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Mon, 24 Jan 2022 08:34:35 +0000 (09:34 +0100)]
dnsdist: Move DownstreamConnectionsManager to its own header
Otto Moerbeek [Thu, 7 Apr 2022 10:48:27 +0000 (12:48 +0200)]
Merge pull request #11506 from omoerbeek/packetcache-unaligned-header
Another case of unaligned access of header data found by ubsan on OpenBSD
Otto Moerbeek [Thu, 7 Apr 2022 05:20:44 +0000 (07:20 +0200)]
Merge pull request #11509 from omoerbeek/rec-coverity-
20220406
Rec: three more coverity cases:
1487743 ,
1419403 and
1419401
Otto Moerbeek [Wed, 6 Apr 2022 12:00:23 +0000 (14:00 +0200)]
Only catch NetmaskException and leave out noexcept as OOM situations can still throw
Peter van Dijk [Wed, 6 Apr 2022 11:39:32 +0000 (13:39 +0200)]
Merge pull request #11299 from Zash/auto-svbc-version
Document which version adds svc-autohints
Otto Moerbeek [Wed, 6 Apr 2022 11:21:30 +0000 (13:21 +0200)]
Two Coverity reports:
1419403 Uncaught exception and
1419401 Uncaught exception
Both cases have the same root cause: a possible exception thrown
from NetmaskTree::copyTree. Coverity negelects to report the calling
context, I'm assuming it is from a static initializer. As a
NetmaskTree can only have valid nodes (insert does not allow an
invalid AF), reading from an existign tree should be fine.
Otto Moerbeek [Wed, 6 Apr 2022 09:54:04 +0000 (11:54 +0200)]
Coverity
1487743 : Unchecked return value
Otto Moerbeek [Wed, 6 Apr 2022 09:17:48 +0000 (11:17 +0200)]
Another case of unaligned access of header data found by ubsan on OpenSBD
Remi Gacogne [Tue, 5 Apr 2022 07:30:34 +0000 (09:30 +0200)]
Merge pull request #11497 from Y7n05h/master
dnsdist: Add setTCPFastOpenKey()
Peter van Dijk [Mon, 4 Apr 2022 14:10:13 +0000 (16:10 +0200)]
Merge pull request #11500 from paddg/patch-11
Update upgrade.rst
Y7n05h [Mon, 4 Apr 2022 13:42:17 +0000 (21:42 +0800)]
Update pdns/dnsdistdist/docs/reference/config.rst
Co-authored-by: Remi Gacogne <github@coredump.fr>
Y7n05h [Mon, 4 Apr 2022 13:41:09 +0000 (21:41 +0800)]
Update pdns/dnsdist-lua.cc
Co-authored-by: Remi Gacogne <github@coredump.fr>
Winfried Angele [Mon, 4 Apr 2022 13:20:18 +0000 (15:20 +0200)]
Update upgrade.rst
Oversight corrected
Otto Moerbeek [Mon, 4 Apr 2022 12:21:38 +0000 (14:21 +0200)]
Merge pull request #11483 from omoerbeek/rec-prep-459-462
Prep for 4.5.9 and 4.6.2 releases
Y7n05h [Mon, 4 Apr 2022 11:41:45 +0000 (19:41 +0800)]
dnsdist: add document for setTCPFastOpenKey()
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Y7n05h [Mon, 4 Apr 2022 11:11:11 +0000 (19:11 +0800)]
dnsdist: Change the type of g_TCPFastOpenKey and related variables
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Otto Moerbeek [Mon, 4 Apr 2022 11:10:56 +0000 (13:10 +0200)]
Merge pull request #11484 from omoerbeek/rec-syncres-tables3
rec: Use boost::mult-index for nsspeed table and make it shared.
Peter van Dijk [Mon, 4 Apr 2022 10:56:29 +0000 (12:56 +0200)]
Merge pull request #11466 from omoerbeek/2022-01-ixfr
ixfr: Fix a case where an incomplete read caused by network error might result in a truncated zone
Otto Moerbeek [Mon, 4 Apr 2022 10:19:36 +0000 (12:19 +0200)]
rename find to find_or_enter
Peter van Dijk [Mon, 4 Apr 2022 10:23:06 +0000 (12:23 +0200)]
Merge pull request #11489 from Habbie/dnsupdate-carsten
auth docs: fix typo in dnsupdate doc, thanks Carsten Strotmann
Otto Moerbeek [Mon, 4 Apr 2022 10:08:31 +0000 (12:08 +0200)]
Merge pull request #11496 from swegener/recursor-segfault-parseACL
Prevent segfault with empty allow-from-file and allow-from options
Otto Moerbeek [Mon, 4 Apr 2022 09:38:00 +0000 (11:38 +0200)]
Merge pull request #11495 from omoerbeek/luawrapper-exception-from-cp-ct
Coverity:
1419402 Uncaught exception in LuaWrapper
Y7n05h [Sun, 3 Apr 2022 07:43:25 +0000 (15:43 +0800)]
Add conditional compilation
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Y7n05h [Sun, 3 Apr 2022 04:05:51 +0000 (12:05 +0800)]
dnsdist: Add setTCPFastOpenKey()
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Sven Wegener [Sat, 2 Apr 2022 13:35:09 +0000 (15:35 +0200)]
Prevent segfault with empty allow-from-file and allow-from options
Always return a valid NetmaskGroup from parseACL()
Otto Moerbeek [Fri, 1 Apr 2022 13:53:09 +0000 (15:53 +0200)]
Merge pull request #11494 from omoerbeek/coverity-fixes-
20220401
Bunch of Coverity fixes
Otto Moerbeek [Fri, 1 Apr 2022 13:16:10 +0000 (15:16 +0200)]
Throw an exception on trying to get an address out of a non-A/AAAA record.
Better that the nullptr deref it was before.
Otto Moerbeek [Fri, 1 Apr 2022 12:48:05 +0000 (14:48 +0200)]
Coverity:
1419402 Uncaught exception
Catch any exception that might be thrown when (copy) constructing an object.
As the push method is declared `noexcept` we cannot have that.
Otto Moerbeek [Fri, 1 Apr 2022 10:46:01 +0000 (12:46 +0200)]
Formatting
Otto Moerbeek [Fri, 1 Apr 2022 10:28:43 +0000 (12:28 +0200)]
Coverity:
1469603 Uninitialized scalar field
1445929 Uninitialized scalar field
Otto Moerbeek [Fri, 1 Apr 2022 10:26:42 +0000 (12:26 +0200)]
Coverity:
1469685 Dereference null return value
Otto Moerbeek [Fri, 1 Apr 2022 10:26:00 +0000 (12:26 +0200)]
Coverity:
1466057 Unchecked return value
Otto Moerbeek [Fri, 1 Apr 2022 10:25:33 +0000 (12:25 +0200)]
Coverity:
1462718 Unchecked return value from library
Otto Moerbeek [Fri, 1 Apr 2022 10:23:59 +0000 (12:23 +0200)]
Coverity:
1487562 Uninitialized scalar variable
1469603 Uninitialized scalar field
1446991 Uninitialized scalar field
Otto Moerbeek [Fri, 1 Apr 2022 10:22:29 +0000 (12:22 +0200)]
Coverity
1469687 : Dereference null return value
Otto Moerbeek [Fri, 1 Apr 2022 08:52:46 +0000 (10:52 +0200)]
Merge pull request #11312 from omoerbeek/rec-pc-cleanup
Rec: packet cache improvements
Otto Moerbeek [Mon, 28 Mar 2022 08:21:02 +0000 (10:21 +0200)]
Use correct index for LRU delete
Otto Moerbeek [Wed, 23 Feb 2022 12:30:52 +0000 (13:30 +0100)]
Use correct counters to compute PC cache hit ratio and qps.
SyncRes::s_queries only counts queries handled by SyncRes.
Otto Moerbeek [Sun, 6 Feb 2022 15:25:12 +0000 (16:25 +0100)]
Format cachecleaner
Otto Moerbeek [Sun, 6 Feb 2022 14:38:48 +0000 (15:38 +0100)]
Tell packet cache it's max size and use it on insert to immediately
delete the oldest entry when we're over-sized.
Also, if we're seeing a stale cache item, don't move it to the front
of the sequence, as we're almost always going to update it and then
it will be moved again to the back.
Otto Moerbeek [Sun, 6 Feb 2022 09:49:41 +0000 (10:49 +0100)]
Only create PC for threads that need it
Peter van Dijk [Thu, 31 Mar 2022 09:41:56 +0000 (11:41 +0200)]
auth docs: fix typo in dnsupdate doc, thanks Carsten Strotmann
Otto Moerbeek [Mon, 28 Mar 2022 11:29:25 +0000 (13:29 +0200)]
Use boost::mult-index for nsspeed table and make it shared.
Otto Moerbeek [Wed, 30 Mar 2022 10:20:05 +0000 (12:20 +0200)]
Merge pull request #11444 from omoerbeek/rec-syncres-tables2
rec: Use nice format for timestamp printing
Otto Moerbeek [Wed, 23 Mar 2022 12:34:08 +0000 (13:34 +0100)]
Use nice format for timestamp printing
Otto Moerbeek [Wed, 30 Mar 2022 08:47:23 +0000 (10:47 +0200)]
Merge pull request #11476 from omoerbeek/rec-std-function
Switch from boost::function to std::function everywhere
Otto Moerbeek [Wed, 30 Mar 2022 08:34:04 +0000 (10:34 +0200)]
Merge pull request #11477 from omoerbeek/rec-docs-postresolve-ffi
rec: postresolve_ffi docs
Otto Moerbeek [Wed, 30 Mar 2022 08:33:38 +0000 (10:33 +0200)]
Merge pull request #11471 from omoerbeek/rec-sd_notify
rec: In the handler, call sd_notify just befere entering the main loop in RecursorThread
Remi Gacogne [Wed, 30 Mar 2022 08:25:18 +0000 (10:25 +0200)]
Merge pull request #11482 from rgacogne/fix-static-warnings
Fix a couple of static analysis warnings
Remi Gacogne [Tue, 29 Mar 2022 16:09:28 +0000 (18:09 +0200)]
LuaWrapper: Prevent referencing a temporary object
Reported by Coverity (CIDs 120403 and 145915)
Remi Gacogne [Tue, 29 Mar 2022 15:49:41 +0000 (17:49 +0200)]
LMDB: Clarify that the base commit() method should be called in the dtor
CodeQL warns that there might some ambiguity about whether the base
or derived commit() method is called in derived classes:
https://github.com/PowerDNS/pdns/security/code-scanning/379
Otto Moerbeek [Tue, 29 Mar 2022 10:00:21 +0000 (12:00 +0200)]
rec: postresolve_ffi docs
Plus fix a formatting issue in policyEventFilter docs.
Otto Moerbeek [Mon, 7 Mar 2022 08:52:33 +0000 (09:52 +0100)]
Prep for 4.5.9 and 4.6.2 releases
Otto Moerbeek [Tue, 29 Mar 2022 07:37:33 +0000 (09:37 +0200)]
Include <functional> where needed
Otto Moerbeek [Mon, 28 Mar 2022 15:07:27 +0000 (17:07 +0200)]
Move remaining boost:function to std::function
Otto Moerbeek [Tue, 8 Mar 2022 14:36:48 +0000 (15:36 +0100)]
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might result in a truncated zone.
As we might break from the loop early, we need to check if the end SOA was seen after the loop.
Also make sure we detect end conditions for both AXFR and IXFR style properly, to avoid processing
data after the end marker.
Peter van Dijk [Mon, 28 Mar 2022 15:58:59 +0000 (17:58 +0200)]
Merge pull request #11295 from tokred/contrib-pdnsutil-zcompl
auth: zsh completion script for pdnsutil
Otto Moerbeek [Mon, 28 Mar 2022 14:53:28 +0000 (16:53 +0200)]
Switch to std::fcuntion for broadcast functions. Fixes a mem leak report by scanbuild.
tokred [Sat, 5 Feb 2022 17:24:09 +0000 (18:24 +0100)]
auth: zsh completion script for pdnsutil
Otto Moerbeek [Mon, 28 Mar 2022 11:53:14 +0000 (13:53 +0200)]
In the handler, call sd_notify just befere entering the main loop in RecursorThread
There still is a race, but this is better than calling sd_notify before the handler is created.
Remi Gacogne [Mon, 28 Mar 2022 10:10:11 +0000 (12:10 +0200)]
Merge pull request #11437 from rgacogne/ddist-healthcheck-mplexer
dnsdist: Only allocate the health-check mplexer when needed
Otto Moerbeek [Mon, 28 Mar 2022 10:08:58 +0000 (12:08 +0200)]
Merge pull request #11470 from omoerbeek/rec-scanbuild-fixes
Rec: scanbuild fixes
Peter van Dijk [Mon, 28 Mar 2022 09:53:35 +0000 (11:53 +0200)]
Merge pull request #11426 from mind04/pdns-fix-decaf-signer
decaf signer did not compile after #11414
Peter van Dijk [Mon, 28 Mar 2022 09:23:59 +0000 (11:23 +0200)]
Merge pull request #11465 from omoerbeek/docs-2022-01-prs
Fill in PR#s for Security Advisory 2022-01
Otto Moerbeek [Mon, 28 Mar 2022 09:21:44 +0000 (11:21 +0200)]
Merge pull request #11445 from omoerbeek/rec-nod-log-too-long
rec: Only log "Unable to send NOD lookup" if log-comnon-errors is set
Otto Moerbeek [Mon, 28 Mar 2022 09:07:46 +0000 (11:07 +0200)]
Comment on the two remaining scanbuild cases. At first sight these are both false positives.
Otto Moerbeek [Mon, 28 Mar 2022 08:50:52 +0000 (10:50 +0200)]
Teach scanbuild that two divisions are safe: one by adding an assert, one by using a *const* table
Otto Moerbeek [Fri, 25 Mar 2022 14:41:48 +0000 (15:41 +0100)]
Add .cacche dir for pdns/pdns
Otto Moerbeek [Fri, 25 Mar 2022 10:17:44 +0000 (11:17 +0100)]
Scanbuid fixes
AFAIKS, a few false positives remain:
Unused code Dead assignment lwres.cc asyncresolve 444 1 View Report
Logic error Division by zero pdns_recursor.cc selectWorker 2423 49 View Report
Logic error Division by zero sillyrecords.cc precsize_aton 48 32 View Report
Memory error Memory leak recursordist/rec-main.cc wipeCaches 2716 18 View Report
Remi Gacogne [Mon, 28 Mar 2022 08:14:46 +0000 (10:14 +0200)]
Merge pull request #11467 from Habbie/spelling-202203
spelling: add missed words
Peter van Dijk [Fri, 25 Mar 2022 13:16:19 +0000 (14:16 +0100)]
spelling: add missed words
Peter van Dijk [Sat, 26 Mar 2022 00:06:52 +0000 (01:06 +0100)]
Merge pull request #11447 from jsoref/linguist-dns-zones
Add linguist-language tag for dns zones
Josh Soref [Fri, 25 Mar 2022 02:19:48 +0000 (22:19 -0400)]
Add linguist-language tag for dns zones
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Otto Moerbeek [Fri, 25 Mar 2022 14:13:26 +0000 (15:13 +0100)]
Fill in PR#s for Security Advisory 2022-01
Peter van Dijk [Fri, 25 Mar 2022 12:21:52 +0000 (13:21 +0100)]
secpoll: fix typos
Peter van Dijk [Fri, 25 Mar 2022 12:00:45 +0000 (13:00 +0100)]
Merge pull request #11452 from omoerbeek/prep-docs-2022-01
rec/auth: Prep for security release 2022-01 (low severity)
Fred Morcos [Fri, 25 Mar 2022 10:39:53 +0000 (11:39 +0100)]
Merge pull request #11450 from fredmorcos/checked-stoi-empty-str-fix
`checked_stoi` fix: Don't leave `idx`/`pos` uninitialized when the input string is empty
Kees Monshouwer [Fri, 25 Mar 2022 10:10:00 +0000 (11:10 +0100)]
format decafsigners.cc
Fred Morcos [Fri, 25 Mar 2022 08:52:29 +0000 (09:52 +0100)]
Don't leave idx/pos uninitialized when input str is empty
Peter van Dijk [Fri, 25 Mar 2022 09:12:49 +0000 (10:12 +0100)]
Merge pull request #11449 from rgacogne/docs-pin-jinja2
docs: Pin jinja2 to < 3.1.0
Remi Gacogne [Fri, 25 Mar 2022 08:45:55 +0000 (09:45 +0100)]
docs: Pin jinja2 to < 3.1.0
Jinja2 3.1.0 removed deprecated code that is still used by sphinx
1.8.x, and it looks like our custom sphinx extensions are not working
with more recent versions of sphinx..
See:
- https://github.com/pallets/jinja/issues/1631
- https://github.com/readthedocs/readthedocs.org/issues/9037
and
- https://github.com/PowerDNS/pdns/pull/7712
The exact error is:
```
Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py))
```
Otto Moerbeek [Fri, 25 Mar 2022 08:04:19 +0000 (09:04 +0100)]
Prep for 2022-01
Fred Morcos [Wed, 23 Mar 2022 14:02:16 +0000 (15:02 +0100)]
Merge pull request #11438 from fredmorcos/checked-conv-boundary-val-fix
Checked int conversions: Avoid checks when boundary values are equal
Otto Moerbeek [Wed, 23 Mar 2022 12:48:52 +0000 (13:48 +0100)]
Only log "Unable to send NOD lookup" if log-common-errors is set
Fixes #11440.
Otto Moerbeek [Wed, 23 Mar 2022 12:08:52 +0000 (13:08 +0100)]
Merge pull request #11443 from omoerbeek/rec-syncres-tables1
rec: Move implemenation of failed and non-resolving table to .cc file
Otto Moerbeek [Wed, 23 Mar 2022 12:08:40 +0000 (13:08 +0100)]
Merge pull request #11442 from omoerbeek/rec-docs-api-config-dir
rec: Note that api-config-dir and include-dir should be the same for updates via REST to work
Fred Morcos [Mon, 21 Mar 2022 13:52:55 +0000 (14:52 +0100)]
Checked int conversions: Avoid checks when boundary values are equal
Otto Moerbeek [Wed, 23 Mar 2022 09:38:59 +0000 (10:38 +0100)]
Move implemenation of failed and non-resolving table to .cc file
Otto Moerbeek [Wed, 23 Mar 2022 08:55:53 +0000 (09:55 +0100)]
Note that api-config-dir and include-dir should be the same for dynamic updates of config to work.
Plus fix assorted typos. Fixes #11439
Otto Moerbeek [Mon, 21 Mar 2022 11:35:51 +0000 (12:35 +0100)]
Merge pull request #11308 from omoerbeek/rec-save-parent-ns
rec: Remember parent NS set, to be able to fallback to it if needed
Otto Moerbeek [Mon, 21 Mar 2022 11:35:32 +0000 (12:35 +0100)]
Merge pull request #11396 from omoerbeek/rec-proxy-by-table
Rec: proxy by table
Otto Moerbeek [Tue, 1 Mar 2022 14:32:59 +0000 (15:32 +0100)]
proxyMapping: a table based approach to let the recursor know the actual IP address it should use for ACLS etc
Remi Gacogne [Mon, 21 Mar 2022 09:31:53 +0000 (10:31 +0100)]
Merge pull request #11436 from rgacogne/ddist-unbreak-optional
dnsdist: Fix compilation by adding a missing <optional> include in misc.cc
Remi Gacogne [Mon, 21 Mar 2022 09:27:30 +0000 (10:27 +0100)]
dnsdist: Only allocate the health-check mplexer when needed
When health-checking is disabled, or when a check delay longer than one
second is used, there is no need to allocate a new multiplexer object
every second.
Otto Moerbeek [Fri, 18 Mar 2022 16:04:52 +0000 (17:04 +0100)]
Apply suggestions from code review
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Otto Moerbeek [Fri, 18 Mar 2022 13:58:19 +0000 (14:58 +0100)]
Test for saved parent set
Otto Moerbeek [Fri, 18 Mar 2022 12:38:45 +0000 (13:38 +0100)]
Docs, and config switch (default off)
Otto Moerbeek [Fri, 18 Mar 2022 12:16:17 +0000 (13:16 +0100)]
Moved SavedParentSet class to syncres.cc
Otto Moerbeek [Tue, 15 Mar 2022 14:31:13 +0000 (15:31 +0100)]
The nsset can change, so we have to be prepared for that
Otto Moerbeek [Tue, 15 Mar 2022 12:35:54 +0000 (13:35 +0100)]
Process comment reviews