]>
git.ipfire.org Git - thirdparty/knot-resolver.git/log
Tomas Krizek [Thu, 15 Jul 2021 15:29:47 +0000 (17:29 +0200)]
ci/pkgtest: run config tests after pkgtests
Tomas Krizek [Thu, 24 Jun 2021 15:17:21 +0000 (17:17 +0200)]
ci/pkgtest: omit installing debug and devel packages
Tomas Krizek [Wed, 23 Jun 2021 13:38:41 +0000 (15:38 +0200)]
ci: add rocky-8 pkgtest
Tomas Krizek [Wed, 7 Jul 2021 05:40:49 +0000 (05:40 +0000)]
Merge branch 'apkg-nix' into 'master'
add nix: apkg + CI
See merge request knot/knot-resolver!1189
Vladimír Čunát [Thu, 1 Jul 2021 18:33:54 +0000 (20:33 +0200)]
ci/pkgtest: add nix
For now just a simple docker-based build, atop nixos-unstable
(for now my nixpkgs branch that also adds apkg itself).
Vladimír Čunát [Mon, 21 Jun 2021 14:44:33 +0000 (16:44 +0200)]
distro/pkg/nix: add
- Support is in apkg master now.
- The generated default.nix is exactly as in the distro:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/dns/knot-resolver/default.nix
(except for new version+hash, and one test needed a tweak since 5.3.2)
Tomas Krizek [Wed, 7 Jul 2021 04:57:10 +0000 (04:57 +0000)]
Merge branch 'ci-arm' into 'master'
ci: test on armhf and arm64
See merge request knot/knot-resolver!1186
Tomas Krizek [Mon, 21 Jun 2021 14:45:09 +0000 (16:45 +0200)]
ci: attempt to make CI more robust by reducing paralelism
Some tests (typically those using network) ocassionally fail due to
timeouts, which is probably due to increased CI load - perhaps reducing
it could make the tests more stable.
Tomas Krizek [Mon, 21 Jun 2021 14:23:41 +0000 (16:23 +0200)]
ci: disable ta_bootstrap on 32bit ARM
The test attempts to use the timestamp 2050-12-31T23:59:59, which can't
be represented with 32bit time_t due to Year 2038 problem.
Tomas Krizek [Mon, 21 Jun 2021 12:51:28 +0000 (14:51 +0200)]
printf: use platform independent length modifiers
Make sure we use the correct lemgth modifiers to support both 32b and
64b architectures.
Tomas Krizek [Mon, 21 Jun 2021 12:06:47 +0000 (14:06 +0200)]
ci: test on armhf and arm64
Tomas Krizek [Fri, 2 Jul 2021 08:13:06 +0000 (08:13 +0000)]
Merge branch 'ci-pkgtest-archive' into 'master'
ci: make the pkgbuild jobs re-use the archive (job)
See merge request knot/knot-resolver!1188
Vladimír Čunát [Thu, 1 Jul 2021 17:56:45 +0000 (19:56 +0200)]
ci: make the pkgbuild jobs re-use the archive (job)
The child pipelines behave a bit differently than expected,
in this respect.
Tomas Krizek [Wed, 23 Jun 2021 12:40:36 +0000 (12:40 +0000)]
Merge branch 'policy-flags' into 'master'
policy.FLAGS: fix not applying properly in edge cases
See merge request knot/knot-resolver!1179
Vladimír Čunát [Tue, 18 May 2021 08:41:15 +0000 (10:41 +0200)]
policy.REQTRACE docs: fix incorrect claims
The requests get traced even without verbose logging.
I expect it was a copy&paste mistake from QTRACE docs.
Vladimír Čunát [Mon, 17 May 2021 14:48:30 +0000 (16:48 +0200)]
policy.FLAGS: fix not applying properly in edge cases
Perhaps this bug was now more pronounced since 5.3.0 changes.
Example problem was disabling minimization or 0x20 (globally or
for some problematic requests); without this change they would get
re-enabled during some fallback actions... which might be exactly
the wrong moment wrt. the motivation to setting these.
https://gitter.im/CZ-NIC/knot-resolver?at=
60a221e86a950f3d46ed1cd9
Tomas Krizek [Fri, 18 Jun 2021 11:52:38 +0000 (11:52 +0000)]
Merge branch 'selection-txn' into 'master'
lib/selection: be more careful with RO transactions
See merge request knot/knot-resolver!1184
Vladimír Čunát [Fri, 21 May 2021 15:29:25 +0000 (17:29 +0200)]
lib/selection: be more careful with RO transactions
They probably couldn't hang open for long, as each client request
should cause some cache-searching and thus close it, and even with
queries stopping I haven't managed to find a case where it would be
left open but... it's nicer to clean up and it should be very cheap.
Tomas Krizek [Fri, 18 Jun 2021 10:51:12 +0000 (10:51 +0000)]
Merge branch 'task-refcount-minimal' into 'master'
daemon/worker: fix a memory leak
See merge request knot/knot-resolver!1182
Vladimír Čunát [Tue, 1 Jun 2021 14:26:04 +0000 (16:26 +0200)]
daemon/worker: fix a memory leak
Discovered case: TCP write towards upstream fails due to ECONNRESET,
and on this place of code we "forget" the whole qr_task and thus its
corresponding kr_request, so it remains unanswered and using memory.
Tomas Krizek [Fri, 18 Jun 2021 08:17:28 +0000 (08:17 +0000)]
Merge branch 'ci-centos8' into 'master'
ci: allow failure of CentOS 8 packaging tests
See merge request knot/knot-resolver!1185
Tomas Krizek [Wed, 16 Jun 2021 09:32:16 +0000 (11:32 +0200)]
ci: allow failure of CentOS 8 packaging tests
Once again there's an issue with libuv-devel. Since the distro is EOL in
6 months, I'm not going to waste effort with investigating or fixing it.
Tomas Krizek [Thu, 10 Jun 2021 10:57:01 +0000 (10:57 +0000)]
Merge branch 'disable-asserts' into 'master'
meson: disable assertions
See merge request knot/knot-resolver!1183
Tomas Krizek [Thu, 10 Jun 2021 09:28:49 +0000 (11:28 +0200)]
meson: disable assertions
Make sure assertions are turned off - we use our own mechanism
(implemented in !1146), so this mostly affects foreign code, like Knot
DNS headers.
https://gitlab.nic.cz/knot/knot-resolver/-/merge_requests/1146#note_203044
Tomas Krizek [Thu, 10 Jun 2021 10:53:42 +0000 (10:53 +0000)]
Merge branch 'apkg' into 'master'
distro: add apkg support
See merge request knot/knot-resolver!1178
Tomas Krizek [Thu, 10 Jun 2021 10:18:21 +0000 (12:18 +0200)]
ci: reorder pipeline
Tomas Krizek [Tue, 8 Jun 2021 14:52:40 +0000 (16:52 +0200)]
ci: reuse pkg artifacts
Tomas Krizek [Tue, 8 Jun 2021 14:25:10 +0000 (16:25 +0200)]
scripts: remove scripts obsoleted by apkg
Tomas Krizek [Tue, 8 Jun 2021 14:15:31 +0000 (16:15 +0200)]
distro/pkg: support custom release numbers
Tomas Krizek [Tue, 8 Jun 2021 13:38:45 +0000 (15:38 +0200)]
scripts: update OBS source creation script
Tomas Krizek [Mon, 7 Jun 2021 15:19:26 +0000 (17:19 +0200)]
ci: switch to Debian 11
Tomas Krizek [Mon, 7 Jun 2021 11:42:43 +0000 (13:42 +0200)]
scripts/make-archive: allow creation of tagged archive
Tomas Krizek [Tue, 1 Jun 2021 13:31:30 +0000 (15:31 +0200)]
ci: split pkgtest into separate child pipeline
Tomas Krizek [Tue, 18 May 2021 13:03:28 +0000 (15:03 +0200)]
ci: build and install packages with apkg
Jakub Ružička [Tue, 16 Feb 2021 16:42:25 +0000 (17:42 +0100)]
distro: add apkg support
Jakub Ružička [Tue, 16 Feb 2021 16:34:18 +0000 (17:34 +0100)]
move distro files into apkg template dir
Tomas Krizek [Thu, 10 Jun 2021 09:17:00 +0000 (09:17 +0000)]
Merge branch 'kind-doh-legacy' into 'master'
rename kind="doh" to kind="doh_legacy"
See merge request knot/knot-resolver!1180
Tomas Krizek [Thu, 27 May 2021 13:20:53 +0000 (15:20 +0200)]
rename kind="doh" to kind="doh_legacy"
The purpose of this change is to make it harder to accidentally use the
legacy DoH implementation and free up the "doh" kind which may be used
as an alias to a modern implementation in the future.
Tomas Krizek [Wed, 26 May 2021 08:03:51 +0000 (08:03 +0000)]
Merge branch 'improve-assertions' into 'master'
lib/utils: define kr_require(), kr_assume() macros
Closes #495
See merge request knot/knot-resolver!1146
Tomas Krizek [Tue, 25 May 2021 12:17:23 +0000 (14:17 +0200)]
treewide: rename assumptions to kr_assert() / kr_fails_assert()
To (hopefully) improve readability, rename the typical macro usage of:
if (!kr_assume(x)) y; // to
if (kr_fails_assert(x)) y;
As a convenience, replace the assert without a return value to a more
simple version:
(void)!kr_assume(x); // becomes
kr_assert(x);
Tomas Krizek [Tue, 25 May 2021 10:40:01 +0000 (12:40 +0200)]
lib/dnssec/ta.c: replace asserts
Vladimír Čunát [Mon, 17 May 2021 11:05:02 +0000 (13:05 +0200)]
lib/utils kr_ranked_rrarray_add(): clarify RRset sizes
Vladimír Čunát [Fri, 14 May 2021 09:05:05 +0000 (11:05 +0200)]
lib/cache assertions: saving to cache is not critical
Vladimír Čunát [Fri, 14 May 2021 08:44:26 +0000 (10:44 +0200)]
lib/cache: simplify rdataset_dematerialize()
Trying to handle the NULL here was pointless, so let's simplify.
As it was, it couldn't trigger anyway (would crash earlier).
Vladimír Čunát [Wed, 12 May 2021 17:22:01 +0000 (19:22 +0200)]
lib/cache entry2answer(): trigger failures before jumps
It's a little more verbose, but it should be more valuable in case
we encounter them.
Vladimír Čunát [Wed, 12 May 2021 17:03:37 +0000 (19:03 +0200)]
treewide: minor C11 cleanup
Vladimír Čunát [Wed, 12 May 2021 11:48:00 +0000 (13:48 +0200)]
lib/utils kr_fail(): don't mangle errno
Lukáš Ježek [Fri, 23 Apr 2021 08:49:47 +0000 (10:49 +0200)]
lib/cookies/nonce.c: remove assert.h include
Vladimír Čunát [Thu, 15 Apr 2021 12:28:35 +0000 (14:28 +0200)]
treewide: eradicate "assert" in comments to fix CI
Vladimír Čunát [Thu, 15 Apr 2021 11:59:48 +0000 (13:59 +0200)]
ci: check for "assert" in most C files
Vladimír Čunát [Thu, 15 Apr 2021 10:07:09 +0000 (12:07 +0200)]
lib/utils kr_fail(): simple rate limit for forking
Default 5 minutes (but off).
Randomize the delays +-25%.
Tomas Krizek [Fri, 26 Mar 2021 14:41:29 +0000 (15:41 +0100)]
doc: document debugging options
Tomas Krizek [Fri, 26 Mar 2021 13:14:01 +0000 (14:14 +0100)]
doc: mention DEBUG_* policies for debugging requests
Tomas Krizek [Fri, 19 Mar 2021 15:47:34 +0000 (16:47 +0100)]
daemon: allow kr_assume() configuration
- add lua options debugging.assumption_abort and
debugging.assumption_fork to make the behaviour configurable
- select default values based on meson buildtype:
- debug/debugoptimized (default, e.g. used in CI) - abort and don't
fork
- plain/release - don't abort, but fork if abort is user-configured
Tomas Krizek [Wed, 24 Mar 2021 16:44:49 +0000 (17:44 +0100)]
utils/client/kresc.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
utils/cache_gc/main.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
utils/cache_gc/kr_cache_gc.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
utils/cache_gc/db.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/stats/stats.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/hints/hints.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/dnstap/dnstap.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/cookies/cookies.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/cookies/cookiemonster.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)]
modules/cookies/cookiectl.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/zonecut.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/utils.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/utils.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/selection_iter.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/selection_forward.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/selection.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/rplan.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/resolve.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:47 +0000 (17:44 +0100)]
lib/resolve.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/module.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/layer/validate.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/layer/iterate.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/generic/trie.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/generic/queue.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/generic/queue.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/generic/pack.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:46 +0000 (17:44 +0100)]
lib/generic/lru.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/generic/lru.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/dnssec/signature.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/dnssec/nsec3.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/dnssec/nsec.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/dnssec/nsec.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/dnssec.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:45 +0000 (17:44 +0100)]
lib/cookies/helper.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cookies/alg_sha.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cookies/alg_containers.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/peek.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/nsec3.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/nsec1.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/knot_pkt.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/impl.h: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:44 +0000 (17:44 +0100)]
lib/cache/entry_rr.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:43 +0000 (17:44 +0100)]
lib/cache/entry_pkt.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:43 +0000 (17:44 +0100)]
lib/cache/entry_list.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:43 +0000 (17:44 +0100)]
lib/cache/cdb_lmdb.c: replace asserts
Tomas Krizek [Wed, 24 Mar 2021 16:44:43 +0000 (17:44 +0100)]
lib/cache/api.c: replace asserts