]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
3 years agofixup! WIP: daemon/worker: weak pointer logic for tasks daemon-refactor
Oto Šťáva [Fri, 24 Jun 2022 08:56:18 +0000 (10:56 +0200)] 
fixup! WIP: daemon/worker: weak pointer logic for tasks

3 years agofixup! WIP: daemon/worker: weak pointer logic for tasks
Oto Šťáva [Thu, 23 Jun 2022 12:09:38 +0000 (14:09 +0200)] 
fixup! WIP: daemon/worker: weak pointer logic for tasks

3 years agoWIP: daemon/worker: weak pointer logic for tasks
Oto Šťáva [Fri, 10 Jun 2022 08:08:26 +0000 (10:08 +0200)] 
WIP: daemon/worker: weak pointer logic for tasks

Replaces the reference-counting logic for `struct qr_task` with
weak-pointer-like logic (in `lib/weakptr`). Pointers to `struct qr_task`
outside of `daemon/worker` are replaced with a unique task identifier
(`qr_task_weakptr_t`), which may be passed to worker functions. If a
weak pointer is no longer valid, operations are (usually silently)
skipped, because it is assumed that a task that has been freed has
already been finished, and any pending operations on it are no longer
needed.

(This is a work in progress and still has some bugs that need to be
resolved)

3 years agodaemon: refactor stage 1
Oto Šťáva [Mon, 23 May 2022 10:18:38 +0000 (12:18 +0200)] 
daemon: refactor stage 1

3 years agoMerge !1311: daemon/http: improve URI checks obs-knot-resolver-es11k1/deployments/2177 obs-knot-resolver-es11k1/deployments/2178 obs-knot-resolver-es11k1/deployments/2179 obs-knot-resolver-es11k1/deployments/2180
Vladimír Čunát [Thu, 23 Jun 2022 07:39:54 +0000 (09:39 +0200)] 
Merge !1311: daemon/http: improve URI checks

Fixes #746

3 years agodaemon/http: improve URI checks obs-knot-resolver-bs4hbr/deployments/2173
Oto Šťáva [Fri, 17 Jun 2022 08:57:58 +0000 (10:57 +0200)] 
daemon/http: improve URI checks

The `check_uri()` function now only checks that the endpoint is either
`/doh` or `/dns-query`. Parameter checks were moved into
`process_uri_path()` so that the check only takes place for GET
requests. POST requests now do not care about parameters at all.

3 years agoMerge branch 'release-5-5-1' into 'master' obs-knot-resolver-8xyvhu/deployments/2162 obs-knot-resolver-8xyvhu/deployments/2166 obs-knot-resolver-bs4hbr/deployments/2163 obs-knot-resolver-es11k1/deployments/2167 obs-knot-resolver-es11k1/deployments/2168 obs-knot-resolver-es11k1/deployments/2169 obs-knot-resolver-es11k1/deployments/2170 obs-knot-resolver-es11k1/deployments/2172 obs-knot-resolver-es11k1/deployments/2174 obs-knot-resolver-es11k1/deployments/2175 obs-knot-resolver-es11k1/deployments/2176 obs-knot-resolver-kv62s6/deployments/2161 obs-knot-resolver-kv62s6/deployments/2164 obs-knot-resolver-kv62s6/deployments/2165 v5.5.1
Aleš Mrázek [Tue, 14 Jun 2022 07:13:12 +0000 (09:13 +0200)] 
Merge branch 'release-5-5-1' into 'master'

release 5.5.1

See merge request knot/knot-resolver!1308

3 years agoNEWS: date update
Aleš Mrázek [Tue, 14 Jun 2022 06:54:46 +0000 (08:54 +0200)] 
NEWS: date update

3 years agoci/images: git://github.com won't work anymore obs-knot-resolver-bs4hbr/deployments/2158 obs-knot-resolver-bs4hbr/deployments/2159
Vladimír Čunát [Mon, 13 Jun 2022 18:33:22 +0000 (20:33 +0200)] 
ci/images: git://github.com won't work anymore

3 years agoAUTHORS update obs-knot-resolver-bs4hbr/deployments/2157
Aleš Mrázek [Mon, 13 Jun 2022 12:30:04 +0000 (14:30 +0200)] 
AUTHORS update

3 years agorelease 5.5.1
Aleš Mrázek [Mon, 13 Jun 2022 11:40:58 +0000 (13:40 +0200)] 
release 5.5.1

3 years agoMerge !1307: tests/config: improve difference prints of tables obs-knot-resolver-es11k1/deployments/2153 obs-knot-resolver-es11k1/deployments/2154 obs-knot-resolver-es11k1/deployments/2155 obs-knot-resolver-es11k1/deployments/2156 obs-knot-resolver-es11k1/deployments/2160
Vladimír Čunát [Thu, 9 Jun 2022 12:51:54 +0000 (14:51 +0200)] 
Merge !1307: tests/config: improve difference prints of tables

3 years agotests/config: improve difference prints of tables
Vladimír Čunát [Thu, 9 Jun 2022 12:45:57 +0000 (14:45 +0200)] 
tests/config: improve difference prints of tables

3 years agoMerge !1306: renumber: get rid of netmask limitation, now support any netmask
Vladimír Čunát [Thu, 9 Jun 2022 11:42:35 +0000 (13:42 +0200)] 
Merge !1306: renumber: get rid of netmask limitation, now support any netmask

3 years agorenumber: fix incorrect masking of bytes after netmask boundary
Oto Šťáva [Thu, 9 Jun 2022 06:28:02 +0000 (08:28 +0200)] 
renumber: fix incorrect masking of bytes after netmask boundary

(we changed the original fix a bit)

3 years agorenumber: test for arbitrary netmask
Oto Šťáva [Thu, 9 Jun 2022 06:10:48 +0000 (08:10 +0200)] 
renumber: test for arbitrary netmask

3 years agorenumber: get rid of netmask limitation, now support any netmask
cronfy [Sat, 4 Jun 2022 13:48:44 +0000 (17:48 +0400)] 
renumber: get rid of netmask limitation, now support any netmask

(with minor cleanups from vcunat)

3 years agoMerge !1299: tweak inlining
Vladimír Čunát [Thu, 9 Jun 2022 09:20:36 +0000 (11:20 +0200)] 
Merge !1299: tweak inlining

3 years agoci: fixup lint:scan-build
Vladimír Čunát [Tue, 24 May 2022 13:20:52 +0000 (15:20 +0200)] 
ci: fixup lint:scan-build

I have no idea why this one appeared right now (part not touched),
and it does not make sense at all:

../../../lib/utils.c:524:20: warning: Out of bound memory access (accessed memory precedes memory block)
        buf[len_need - 1] = 0;
        ~~~~~~~~~~~~~~~~~~^~~

3 years agotweak inlining
Vladimír Čunát [Tue, 24 May 2022 09:35:14 +0000 (11:35 +0200)] 
tweak inlining

I used -Winline (optimizing, gcc 11 or 12) to gather warnings
about cases that were considered too expensive for inlining.
Some of these probably used not to happen when we were dropping
assertions during preprocessing in -DNDEBUG builds.
This commit mainly improves size of the compiled binary by several KiB.

- queue_head_impl(): optionally (un)inline; not big but in warnings
- queue_pop_impl(): uninline; too complex for my today's eyes
- kr_rand_bytes(): optionally (un)inline
  The inlining potential there comes from calling with a constant.
- kr_straddr(): uninline.  It's never been meant for hot code,
  and this gives us large savings due to deduplicating the static array.
- For some I couldn't see a good resolution due to restrictions in C.

C hint: `static inline` is probably well known;
the other inline combination is well explained at:
https://stackoverflow.com/a/6312813/587396

3 years agoMerge !1298: lib/selection: improve IPv6 avoidance if broken + debug logs
Vladimír Čunát [Thu, 9 Jun 2022 07:22:24 +0000 (09:22 +0200)] 
Merge !1298: lib/selection: improve IPv6 avoidance if broken + debug logs

3 years agolib/selection debug logs: print one more line
Vladimír Čunát [Tue, 24 May 2022 08:36:50 +0000 (10:36 +0200)] 
lib/selection debug logs: print one more line

And that made the "NO6: is KO" line extraneous.
Example in context:
[select][14162.01]   => id: '15271' choosing from addresses: 0 v4 + 1 v6; names to resolve: 6 v4 + 5 v6; force_resolve: 0; NO6: IPv6 is OK
[select][14162.01]   => id: '15271' choosing: 'ns1.p31.dynect.net.'@'2600:2000:2210::31#00053' with timeout 774 ms zone cut: 'amazon.com.'
[select][14162.01]   => id: '15271' updating: 'ns1.p31.dynect.net.'@'2600:2000:2210::31#00053' zone cut: 'amazon.com.' with rtt 316 to srtt: 311 and variance: 89

3 years agolib/selection: improve IPv6 avoidance if broken
Vladimír Čunát [Tue, 24 May 2022 07:02:53 +0000 (09:02 +0200)] 
lib/selection: improve IPv6 avoidance if broken

It was still possible to get into a deadlock here.
https://forum.turris.cz/t/not-connecting-to-applications-like-discord/17111/7
If A records for a NS fell out of cache but AAAA remained,
with probability 1-\epsilon we'd choose an AAAA address
even if IPv6 was considered broken.

I looked at *the whole* no6 strategy again, and I do think that
there are no such holes anymore.  A few percent attempts will still
go over IPv6 even if it's considered broken, but that sounds OK-ish.

3 years agoMerge !1304: tests/packaging: print build_log of failed commands obs-knot-resolver-es11k1/deployments/2150 obs-knot-resolver-es11k1/deployments/2151 obs-knot-resolver-es11k1/deployments/2152
Vladimír Čunát [Mon, 6 Jun 2022 14:10:38 +0000 (16:10 +0200)] 
Merge !1304: tests/packaging: print build_log of failed commands

3 years agotests/packaging: print build_log of failed commands
Oto Šťáva [Wed, 1 Jun 2022 11:34:12 +0000 (13:34 +0200)] 
tests/packaging: print build_log of failed commands

3 years agoMerge !1284: ci: add x86+arm matrices where simple obs-knot-resolver-es11k1/deployments/2148 obs-knot-resolver-es11k1/deployments/2149
Vladimír Čunát [Sat, 4 Jun 2022 13:55:41 +0000 (15:55 +0200)] 
Merge !1284: ci: add x86+arm matrices where simple

3 years agoci docker: make into a x86+arm matrix
Vladimír Čunát [Thu, 7 Apr 2022 18:44:05 +0000 (20:44 +0200)] 
ci docker: make into a x86+arm matrix

No other job can do it, as we don't have docker images ready for that,
and the usual manual workflow won't be well usable with arm64.
We'll need to convert their generation to (manual?) CI schedules.

3 years agoci/pkgtest: make nixos-unstable into a x86+arm matrix
Vladimír Čunát [Thu, 7 Apr 2022 17:29:04 +0000 (19:29 +0200)] 
ci/pkgtest: make nixos-unstable into a x86+arm matrix

Other pkgtest jobs can't do this, as they're designed for LXC
and we don't have an arm+LXC runner.

3 years agoMerge !1305: nits: abort() and #include
Vladimír Čunát [Sat, 4 Jun 2022 13:34:43 +0000 (15:34 +0200)] 
Merge !1305: nits: abort() and #include

3 years agodrop unused #include lines
Vladimír Čunát [Fri, 3 Jun 2022 15:52:25 +0000 (17:52 +0200)] 
drop unused #include lines

https://clangd.llvm.org/design/include-cleaner
Though somehow I'm all the time getting false positives for
"daemon/bindings/impl.h"

3 years agoreplace some occurrences of abort() by kr_require()
Vladimír Čunát [Fri, 3 Jun 2022 15:29:41 +0000 (17:29 +0200)] 
replace some occurrences of abort() by kr_require()

It provides more information and the condition is typically
easier to read, too.

3 years agoMerge !1303: meson nit: deal with warning about future of run_command obs-knot-resolver-es11k1/deployments/2146 obs-knot-resolver-es11k1/deployments/2147
Vladimír Čunát [Wed, 1 Jun 2022 08:38:50 +0000 (10:38 +0200)] 
Merge !1303: meson nit: deal with warning about future of run_command

3 years agomeson nit: deal with warning about future of run_command
Vladimír Čunát [Mon, 30 May 2022 11:48:16 +0000 (13:48 +0200)] 
meson nit: deal with warning about future of run_command

WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in future releases of meson.
         See also: https://github.com/mesonbuild/meson/issues/9300

In almost all cases we already check the return code explicitly
and throw a more descriptive message than what would be the default.

3 years agoMerge !1302: renumber: allow renumbering a subnet to a single IP
Vladimír Čunát [Wed, 1 Jun 2022 08:09:42 +0000 (10:09 +0200)] 
Merge !1302: renumber: allow renumbering a subnet to a single IP

3 years agorenumber: named local variables for readability
Oto Šťáva [Wed, 1 Jun 2022 07:49:25 +0000 (09:49 +0200)] 
renumber: named local variables for readability

3 years agorenumber: add test for single IP rewrite
Oto Šťáva [Wed, 1 Jun 2022 07:48:28 +0000 (09:48 +0200)] 
renumber: add test for single IP rewrite

3 years agorenumber: document additions from the parent commit
Vladimír Čunát [Mon, 30 May 2022 09:53:56 +0000 (11:53 +0200)] 
renumber: document additions from the parent commit

3 years agorenumber: allow renumbering a subnet to a single IP
Konstantin Amelichev [Sat, 28 May 2022 11:30:32 +0000 (15:30 +0400)] 
renumber: allow renumbering a subnet to a single IP

https://github.com/CZ-NIC/knot-resolver/pull/77
originally but changed by vcunat quite a bit.

3 years agolib/utils nit: deduplicate one line
Vladimír Čunát [Mon, 30 May 2022 09:13:25 +0000 (11:13 +0200)] 
lib/utils nit: deduplicate one line

3 years agoMerge !1301: lib/cache: handle posix_fallocate returning EOPNOTSUPP
Vladimír Čunát [Sat, 28 May 2022 11:57:49 +0000 (13:57 +0200)] 
Merge !1301: lib/cache: handle posix_fallocate returning EOPNOTSUPP

3 years agolib/cache: handle posix_fallocate returning EOPNOTSUPP (Linux/musl)
Jakub Jirutka [Fri, 27 May 2022 22:37:25 +0000 (00:37 +0200)] 
lib/cache: handle posix_fallocate returning EOPNOTSUPP (Linux/musl)

https://man7.org/linux/man-pages/man3/posix_fallocate.3.html#ERRORS:
> EOPNOTSUPP
> The filesystem containing the file referred to by fd does not support
> this operation.  This error code can be returned by C libraries that
> don't perform the emulation shown in NOTES, such as **musl libc**.

I've encountered this problem on Alpine Linux running inside an LXC
container on Ubuntu with data on ZFS.

3 years agoMerge !1279: daemon/http: HTTP response codes
Vladimír Čunát [Fri, 20 May 2022 08:52:42 +0000 (10:52 +0200)] 
Merge !1279: daemon/http: HTTP response codes

Fixes #728

3 years agodaemon/http: copy headers to streams instead of ownership transfer
Oto Šťáva [Fri, 13 May 2022 08:34:06 +0000 (10:34 +0200)] 
daemon/http: copy headers to streams instead of ownership transfer

3 years agotests/config/tapered: update for difference prints
Vladimír Čunát [Fri, 8 Apr 2022 10:01:16 +0000 (12:01 +0200)] 
tests/config/tapered: update for difference prints

3 years agodaemon/http: documentation
Oto Šťáva [Fri, 8 Apr 2022 09:20:59 +0000 (11:20 +0200)] 
daemon/http: documentation

3 years agoci: ODVR will also need Debian 11
Vladimír Čunát [Thu, 7 Apr 2022 16:46:01 +0000 (18:46 +0200)] 
ci: ODVR will also need Debian 11

Debian 10 could probably get dropped soon, but not yet.

3 years agodaemon/http: move status sends outside nghttp2 callbacks
Oto Šťáva [Wed, 6 Apr 2022 07:56:35 +0000 (09:56 +0200)] 
daemon/http: move status sends outside nghttp2 callbacks

The nghttp2 documentation states that we must not send data from inside
of its callbacks. It may result in crashes.

3 years agodaemon/http: return 400 on failed packet_parse + improved stream handling
Oto Šťáva [Fri, 1 Apr 2022 08:42:36 +0000 (10:42 +0200)] 
daemon/http: return 400 on failed packet_parse + improved stream handling

3 years agodaemon/http: return 400 on stream end with no processed packets
Oto Šťáva [Sat, 26 Mar 2022 08:51:27 +0000 (09:51 +0100)] 
daemon/http: return 400 on stream end with no processed packets

3 years agodaemon/http: add basic HTTP response codes
Oto Šťáva [Fri, 25 Mar 2022 11:21:07 +0000 (12:21 +0100)] 
daemon/http: add basic HTTP response codes

3 years agoMerge !1295: daemon/tls: use GNUTLS_NO_TICKETS_TLS12
Vladimír Čunát [Fri, 20 May 2022 07:39:48 +0000 (09:39 +0200)] 
Merge !1295: daemon/tls: use GNUTLS_NO_TICKETS_TLS12

Closes #742

3 years agodaemon/tls: use GNUTLS_NO_TICKETS_TLS12
Oto Šťáva [Mon, 16 May 2022 12:30:13 +0000 (14:30 +0200)] 
daemon/tls: use GNUTLS_NO_TICKETS_TLS12

3 years agoMerge !1294: lib/dnssec: rewrite most of NSEC validation code
Vladimír Čunát [Wed, 18 May 2022 14:25:22 +0000 (16:25 +0200)] 
Merge !1294: lib/dnssec: rewrite most of NSEC validation code

Closes #443 and #738

3 years agoNEWS for the rewrite of some NSEC validation parts
Vladimír Čunát [Mon, 9 May 2022 11:13:32 +0000 (13:13 +0200)] 
NEWS for the rewrite of some NSEC validation parts

3 years agolib/dnssec: nits
Vladimír Čunát [Thu, 28 Apr 2022 10:37:31 +0000 (12:37 +0200)] 
lib/dnssec: nits

3 years agolib/dnssec: rewrite kr_nsec_ref_to_unsigned()
Vladimír Čunát [Wed, 27 Apr 2022 14:03:06 +0000 (16:03 +0200)] 
lib/dnssec: rewrite kr_nsec_ref_to_unsigned()

- I see no motivation to search for NS records here;
  and I didn't like that loop nesting
- philosophy shift akin to the recent
  replacement of kr_nsec_existence_denial()

3 years agolib/dnssec: drop kr_nsec_name_error_response_check()
Vladimír Čunát [Wed, 27 Apr 2022 11:47:01 +0000 (13:47 +0200)] 
lib/dnssec: drop kr_nsec_name_error_response_check()

Just as with NODATA; basically the same comments
apply here (i.e. for NXDOMAIN) as well.

3 years agolib/dnssec: replace kr_nsec_existence_denial()
Vladimír Čunát [Sat, 23 Apr 2022 15:23:47 +0000 (17:23 +0200)] 
lib/dnssec: replace kr_nsec_existence_denial()

The NSEC validation code has been written very mechanically
according to RFC 4033..4035, but those explain wildcard-related
topics in a way that's hard to understand right.

So here I rewrite it with a different philosophy, so it should be
easier to understand, a bit faster, and less buggy and bug-prone.

3 years agodaemon/lua nit: sort RR rank names in debug logs
Vladimír Čunát [Tue, 26 Apr 2022 12:55:12 +0000 (14:55 +0200)] 
daemon/lua nit: sort RR rank names in debug logs

I was diffing logs from different runs and got annoyed by the shuffles.

3 years agoMerge !1287: tests/dnstap: add missing protobuf dependency
Vladimír Čunát [Wed, 18 May 2022 13:49:00 +0000 (15:49 +0200)] 
Merge !1287: tests/dnstap: add missing protobuf dependency

3 years agotests/dnstap: add missing protobuf dependency
Oto Šťáva [Fri, 22 Apr 2022 05:55:20 +0000 (07:55 +0200)] 
tests/dnstap: add missing protobuf dependency

3 years agoMerge !1286: daemon/network: Use trie_t instead of map_t for network endpoints
Vladimír Čunát [Fri, 13 May 2022 11:30:40 +0000 (13:30 +0200)] 
Merge !1286: daemon/network: Use trie_t instead of map_t for network endpoints

3 years agolib/generic/map: remove
Oto Šťáva [Wed, 11 May 2022 10:19:13 +0000 (12:19 +0200)] 
lib/generic/map: remove

3 years agolib/utils kr_sockaddr_key_same_addr(): more precision
Vladimír Čunát [Fri, 13 May 2022 10:52:20 +0000 (12:52 +0200)] 
lib/utils kr_sockaddr_key_same_addr(): more precision

... in case of IPv6 link-local addresses.
The casting isn't very nice, but we certainly rely on `family` being
always on the same offset anyway (and it's ensured by standards).

3 years agodaemon/network: reintroduce net.close() wildcard semantics
Oto Šťáva [Wed, 11 May 2022 08:10:25 +0000 (10:10 +0200)] 
daemon/network: reintroduce net.close() wildcard semantics

3 years agolib/utils: check for unix socket paths null-termination
Oto Šťáva [Wed, 4 May 2022 05:55:32 +0000 (07:55 +0200)] 
lib/utils: check for unix socket paths null-termination

3 years agodaemon/network: Use trie_t instead of map_t for network endpoints
Oto Šťáva [Wed, 20 Apr 2022 08:08:28 +0000 (10:08 +0200)] 
daemon/network: Use trie_t instead of map_t for network endpoints

3 years agoMerge !1290: modules/stats: use trie_t instead of map_t
Vladimír Čunát [Wed, 11 May 2022 06:23:18 +0000 (08:23 +0200)] 
Merge !1290: modules/stats: use trie_t instead of map_t

3 years agomodules/stats: use trie_t instead of map_t
Oto Šťáva [Wed, 27 Apr 2022 09:14:02 +0000 (11:14 +0200)] 
modules/stats: use trie_t instead of map_t

3 years agolib/generic/trie: add trie_apply_with_key()
Vladimír Čunát [Thu, 28 Apr 2022 11:32:52 +0000 (13:32 +0200)] 
lib/generic/trie: add trie_apply_with_key()

3 years agoMerge !1292: lib/dnssec/ta: use trie_t instead of map_t
Vladimír Čunát [Wed, 4 May 2022 12:15:44 +0000 (14:15 +0200)] 
Merge !1292: lib/dnssec/ta: use trie_t instead of map_t

3 years agolib/dnssec/ta: use trie_t instead of map_t
Oto Šťáva [Wed, 4 May 2022 09:00:46 +0000 (11:00 +0200)] 
lib/dnssec/ta: use trie_t instead of map_t

3 years agoMerge !1288: daemon/worker: Use trie_t instead of map_t for TCP connections
Vladimír Čunát [Mon, 2 May 2022 10:42:47 +0000 (12:42 +0200)] 
Merge !1288: daemon/worker: Use trie_t instead of map_t for TCP connections

3 years agodaemon/worker: Use trie_t instead of map_t for TCP connections
Oto Šťáva [Wed, 27 Apr 2022 07:02:41 +0000 (09:02 +0200)] 
daemon/worker: Use trie_t instead of map_t for TCP connections

3 years agolib/utils: sockaddr key generation
Oto Šťáva [Fri, 29 Apr 2022 06:50:35 +0000 (08:50 +0200)] 
lib/utils: sockaddr key generation

3 years agoMerge branch !1285: daemon/zimport: close transaction after importing batch
Vladimír Čunát [Wed, 13 Apr 2022 08:44:48 +0000 (10:44 +0200)] 
Merge branch !1285: daemon/zimport: close transaction after importing batch

3 years agodaemon/zimport: close transaction after importing batch
Vladimír Čunát [Mon, 11 Apr 2022 10:14:50 +0000 (12:14 +0200)] 
daemon/zimport: close transaction after importing batch

I'm really sorry about this.  It's my regression in 5.5.0 (!1225)

Practical consequence was that the RW transaction was held open
until that instance did something with cache (and thus closed),
so any other instance would be frozen in the meantime if doing
anything non-read-only with cache (e.g. startup).
https://lists.nic.cz/hyperkitty/list/knot-resolver-users@lists.nic.cz/thread/6DOXXOA6ACEUBVYPUY3T2MLGIHWOMV6M/

3 years agoMerge !1283: ci: fix ambiguous tag-sets
Vladimír Čunát [Thu, 7 Apr 2022 08:35:35 +0000 (10:35 +0200)] 
Merge !1283: ci: fix ambiguous tag-sets

3 years agoci: fix ambiguous tag-sets
Vladimír Čunát [Thu, 7 Apr 2022 08:05:34 +0000 (10:05 +0200)] 
ci: fix ambiguous tag-sets

In a few places the tag-set specification for jobs could match
either amd64 or arm64 runners.  That non-determinism is bad,
especially when passing platform-specific artifacts around.

This is just a stop-gap measure.  Later we'll need to rethink our CI
in terms of the two platforms.

I didn't touch tag-sets with `condor`, as that will probably always be
just a single machine (which coordinates scheduling on others).

3 years agoMerge !1282: ci/pkgtest: fix issues with sphinx
Vladimír Čunát [Wed, 6 Apr 2022 08:49:22 +0000 (10:49 +0200)] 
Merge !1282: ci/pkgtest: fix issues with sphinx

3 years agoci/pkgtest: fix issues with sphinx
Vladimír Čunát [Mon, 4 Apr 2022 12:28:06 +0000 (14:28 +0200)] 
ci/pkgtest: fix issues with sphinx

The apkg installation through pip3 was pulling too new jinja2 version,
breaking subsequent usage of sphinx to build docs (in `apkg build`).

3 years agoMerge !1276: xdp: make it work also with libknot 3.1
Vladimír Čunát [Mon, 4 Apr 2022 08:40:28 +0000 (10:40 +0200)] 
Merge !1276: xdp: make it work also with libknot 3.1

Fixes #735

3 years agoxdp nit: utilize freeing API added in libknot 3.1
Vladimír Čunát [Wed, 23 Mar 2022 11:47:14 +0000 (12:47 +0100)] 
xdp nit: utilize freeing API added in libknot 3.1

It's probably a bit more efficient, but this part of code should be
rarely used even on a resolver serving all in XDP.

3 years agoxdp: make it work also with libknot 3.1
Vladimír Čunát [Wed, 23 Mar 2022 11:36:12 +0000 (12:36 +0100)] 
xdp: make it work also with libknot 3.1

Somehow I did this wrong when porting to libknot 3.1.

3 years agoMerge !1281: pkg: update changelogs
Vladimír Čunát [Mon, 4 Apr 2022 08:27:16 +0000 (10:27 +0200)] 
Merge !1281: pkg: update changelogs

3 years agopkg: update changelogs
Jakub Ružička [Tue, 29 Mar 2022 13:28:40 +0000 (15:28 +0200)] 
pkg: update changelogs

* set myself as package maintainer
* use {{ now }} instead of hardcoded datetime
  * bump apkg compat to 2

3 years agorpm: sync from Fedora
Jakub Ružička [Tue, 29 Mar 2022 13:25:33 +0000 (15:25 +0200)] 
rpm: sync from Fedora

This is a no-op as GPG_CHECK is disabled for upstream package but it
keeps the .spec files in sync.

3 years agoMerge !1271: ci/images: add docs obs-knot-resolver-es11k1/deployments/2065 obs-knot-resolver-es11k1/deployments/2067 obs-knot-resolver-es11k1/deployments/2069 obs-knot-resolver-es11k1/deployments/2070 obs-knot-resolver-es11k1/deployments/2071 obs-knot-resolver-es11k1/deployments/2072 obs-knot-resolver-es11k1/deployments/2073 obs-knot-resolver-es11k1/deployments/2074
Vladimír Čunát [Mon, 21 Mar 2022 10:45:23 +0000 (11:45 +0100)] 
Merge !1271: ci/images: add docs

3 years agoci/images: add debian-11-coverity description
Oto Šťáva [Mon, 21 Mar 2022 05:55:06 +0000 (06:55 +0100)] 
ci/images: add debian-11-coverity description

3 years agoci/images: add image description
Tomas Krizek [Wed, 9 Mar 2022 12:07:35 +0000 (13:07 +0100)] 
ci/images: add image description

3 years agoci/images: ensure base image is updated
Tomas Krizek [Wed, 9 Mar 2022 11:59:32 +0000 (12:59 +0100)] 
ci/images: ensure base image is updated

3 years agoMerge !1275: modules/dns64: fix incorrect packet writes for cached packets
Vladimír Čunát [Mon, 21 Mar 2022 10:03:33 +0000 (11:03 +0100)] 
Merge !1275: modules/dns64: fix incorrect packet writes for cached packets

Fixes #727

3 years agomodules/dns64: fix incorrect packet writes for cached packets
Oto Šťáva [Fri, 18 Mar 2022 14:22:08 +0000 (15:22 +0100)] 
modules/dns64: fix incorrect packet writes for cached packets

Also change the return type of kr_pkt_has_dnssec() and lua's :dobit()

3 years agoMerge branch 'release-5-5-0' into 'master' obs-knot-resolver-8xyvhu/deployments/2058 obs-knot-resolver-es11k1/deployments/2060 obs-knot-resolver-es11k1/deployments/2061 obs-knot-resolver-es11k1/deployments/2062 obs-knot-resolver-es11k1/deployments/2063 obs-knot-resolver-es11k1/deployments/2064 obs-knot-resolver-kv62s6/deployments/2057 v5.5.0
Aleš Mrázek [Tue, 15 Mar 2022 10:28:50 +0000 (11:28 +0100)] 
Merge branch 'release-5-5-0' into 'master'

release 5.5.0

See merge request knot/knot-resolver!1272

3 years agoAUTHORS: duplicate alias removed
Aleš Mrázek [Mon, 14 Mar 2022 21:18:58 +0000 (22:18 +0100)] 
AUTHORS: duplicate alias removed

3 years agorelease 5.5.0
Aleš [Mon, 14 Mar 2022 14:22:13 +0000 (15:22 +0100)] 
release 5.5.0

3 years agoMerge !1273: Documentation nits (policy, predict)
Vladimír Čunát [Tue, 15 Mar 2022 06:53:47 +0000 (07:53 +0100)] 
Merge !1273: Documentation nits (policy, predict)

3 years agopredict docs: be more explicit about recommended use
Vladimír Čunát [Mon, 14 Mar 2022 14:27:54 +0000 (15:27 +0100)] 
predict docs: be more explicit about recommended use

We're still run into people who thought that the example config
is a suitable default.  Example where it caused practical issues:
https://lists.nic.cz/hyperkitty/list/knot-resolver-users@lists.nic.cz/thread/WQDJJ3LLEIZ5U3VVSCITW6DZPICW4L7U/

3 years agopolicy docs: explain non-ASCII names
Vladimír Čunát [Mon, 14 Mar 2022 14:19:45 +0000 (15:19 +0100)] 
policy docs: explain non-ASCII names

3 years agoMerge branch 'selection' into 'master' obs-knot-resolver-es11k1/deployments/2056
Tomas Krizek [Mon, 14 Mar 2022 10:17:14 +0000 (11:17 +0100)] 
Merge branch 'selection' into 'master'

lib/selection: fix interaction of timeouts with reboots

Closes #722

See merge request knot/knot-resolver!1269