Commit Graph

297 Commits

Author SHA1 Message Date
Michal Nowak
2943e17363 Update BIND version to 9.18.32-dev 2024-10-08 10:37:40 +02:00
Nicki Křížek
80b9b6143b Update BIND version to 9.18.31-dev 2024-09-09 19:23:05 +02:00
Ondřej Surý
c8f1fa0e47 Follow the number of CPU set by taskset/cpuset
Administrators may wish to constrain the set of cores that BIND 9 runs
on via the 'taskset', 'cpuset' or 'numactl' programs (or equivalent on
other O/S), for example to achieve higher (or more stable) performance
by more closely associating threads with individual NIC rx queues. If
the admin has used taskset, it follows that BIND ought to
automatically use the given number of CPUs rather than the system wide
count.

Co-Authored-By: Ray Bellis <ray@isc.org>
(cherry picked from commit 5a2df8caf5)
2024-09-03 14:54:40 +02:00
Ondřej Surý
015b390f62 Stop using malloc_usable_size and malloc_size
Although the nanual page of malloc_usable_size says:

    Although the excess bytes can be over‐written by the application
    without ill effects, this is not good programming practice: the
    number of excess bytes in an allocation depends on the underlying
    implementation.

it looks like the premise is broken with _FORTIFY_SOURCE=3 on newer
systems and it might return a value that causes program to stop with
"buffer overflow" detected from the _FORTIFY_SOURCE.  As we do have own
implementation that tracks the allocation size that we can use to track
the allocation size, we can stop relying on this introspection function.

Also the newer manual page for malloc_usable_size changed the NOTES to:

    The value returned by malloc_usable_size() may be greater than the
    requested size of the allocation because of various internal
    implementation details, none of which the programmer should rely on.
    This function is intended to only be used for diagnostics and
    statistics; writing to the excess memory without first calling
    realloc(3) to resize the allocation is not supported.  The returned
    value is only valid at the time of the call.

Remove usage of both malloc_usable_size() and malloc_size() to be on the
safe size and only use the internal size tracking mechanism when
jemalloc is not available.

(cherry picked from commit d61712d14e)
2024-08-27 04:49:55 +02:00
Nicki Křížek
fee4b7d88a Update BIND version to 9.18.30-dev 2024-08-20 09:05:51 +00:00
Nicki Křížek
1efeb8ecae Update docs and processes to use the new changelog
(cherry picked from commit bcc99213a5)
2024-07-29 14:50:39 +02:00
Nicki Křížek
5afbbdfb6c Update BIND version to 9.18.29-dev 2024-07-23 16:01:57 +02:00
Michal Nowak
9c82b79a68 Update BIND version to 9.18.28-dev 2024-05-03 16:05:20 +02:00
Petr Špaček
4418f199b6 Update BIND version to 9.18.27-dev 2024-04-04 21:14:50 +02:00
Michał Kępień
22e7942509 Update BIND version to 9.18.26-dev 2024-03-13 09:55:18 +01:00
Michał Kępień
5e3d4ade06 Update BIND version to 9.18.25-dev 2024-02-11 11:05:50 +01:00
Michał Kępień
301ac411fb Update BIND version to 9.18.24-dev 2024-01-15 15:46:01 +01:00
Michal Nowak
52e432008e Update BIND version to 9.18.23-dev 2024-01-08 12:57:56 +01:00
Tom Krizek
1f93aecde3 Update BIND version to 9.18.22-dev 2023-12-08 15:55:30 +01:00
Petr Špaček
9a2665efde Update BIND version to 9.18.21-dev 2023-11-10 14:04:03 +01:00
Tom Krizek
a28529c11d Use prereq.sh for rpzrecurse system test
(cherry picked from commit 0538b7e0da)
2023-09-20 10:32:11 +02:00
Tom Krizek
3fb1f2e851 Use prereq.sh for serve-stale system test
(cherry picked from commit c3abedc0a2)
2023-09-20 10:32:11 +02:00
Tom Krizek
27c3e576fd Use prereq.sh for chain system test
(cherry picked from commit 5d9a09c086)
2023-09-20 10:32:11 +02:00
Tom Krizek
697041ae93 Use prereq.sh for xfer system test
(cherry picked from commit 587129b4c0)
2023-09-20 10:32:11 +02:00
Tom Krizek
cefa09ada5 Use prereq.sh for statschannel system test
(cherry picked from commit 27281955af)
2023-09-20 10:32:11 +02:00
Michal Nowak
a0d8c44bf7 Update BIND version to 9.18.20-dev 2023-09-12 09:36:39 +02:00
Michał Kępień
bda09d3602 Update BIND version to 9.18.19-dev 2023-08-07 10:26:29 +02:00
Tom Krizek
77271086a2 Update BIND version to 9.18.18-dev 2023-07-10 15:39:37 +02:00
Michal Nowak
af92f44561 Update BIND version to 9.18.17-dev 2023-06-12 16:32:22 +02:00
Ondřej Surý
6b6076c882 Remove obsolete epoll/kqueue/devpoll configure options
Since we don't use networking directly but rather via libuv, these
configure options were no-op.  Remove the configure checks for epoll
(Linux), kqueue (BSDs) and /dev/poll (Solaris).

(cherry picked from commit 051f3d612f)
2023-05-29 07:58:03 +02:00
Tom Krizek
ac1e7eb40d Invoke pytest runner from run.sh
Utilize developers' muscle memory to incentivize using the pytest runner
instead of the legacy one. The script also serves as basic examples of
how to run the pyest command to achieve the same results as the legacy
runner.

Invoking pytest directly should be the end goal, since it offers many
potentially useful options (refer to pytest --help).

(cherry picked from commit 4dbe8e5347)

(also manually added a additional run.sh -> legacy.run.sh renames)
2023-05-23 17:41:33 +02:00
Michał Kępień
9c09313bc9 Update BIND version to 9.18.16-dev 2023-05-10 10:41:42 +02:00
Petr Špaček
ae77ab4ca5 Update BIND version to 9.18.15-dev 2023-04-14 10:45:38 +02:00
Tom Krizek
8016e471d8 Update BIND version to 9.18.14-dev 2023-03-07 14:49:39 +01:00
Michal Nowak
e48b6dfc61 Merge tag 'v9_18_12' into v9_18
BIND 9.18.12
2023-02-16 17:40:52 +01:00
Petr Špaček
596c6f4cf7 Remove pregenerated manpages from the repo
We don't need them in the repo, it's sufficient if we pregenerate them
while preparing the tarball.  That way we don't have overhead while
modifying them but they are still available for installations without
Sphinx.

I assume that this will make rebases and cherry-picks across branches
easier, with less trial and error churn required in the CI.

It's implemented in the way that we build the manpages only when we
either have pregenerated pages available at the configure time or
sphinx-build is installed and working.

(cherry picked from commit 9110465194)
2023-02-10 12:03:56 +01:00
Ondřej Surý
3368e5f231 Avoid libuv 1.35 and 1.36 that have broken recvmmsg implementation
The implementation of UDP recvmmsg in libuv 1.35 and 1.36 is
incomplete and could cause assertion failure under certain
circumstances.

Modify the configure and runtime checks to report a fatal error when
trying to compile or run with the affected versions.

(cherry picked from commit 251f411fc3)
2023-02-09 22:10:46 +01:00
Michal Nowak
226e35887f Update BIND version to 9.18.13-dev 2023-02-07 11:12:21 +01:00
Michal Nowak
99783f9a5e Update BIND version for release 2023-02-03 12:19:48 +01:00
Tom Krizek
c8b4ca8e3a Update docs to reflect 9.18 has become ESV 2023-02-03 10:00:20 +01:00
Michał Kępień
ef97bf534d Add DNSRPS builds to pairwise testing
The --enable-dnsrps-dl switch for ./configure enables preparing a
DNSRPS-enabled build of BIND 9 that is not directly linked against a
DNSRPS provider library (dlopen() at runtime is used instead).  Employ
this switch to test DNSRPS-enabled builds in the pairwise testing job in
GitLab CI.

(cherry picked from commit e688ca5316)
2023-02-01 11:26:31 +01:00
Michał Kępień
6d89ad302b Update BIND version to 9.18.12-dev 2023-01-13 15:40:27 +01:00
Ondřej Surý
6906b42cdd Prefer the pthread_barrier implementation over uv_barrier
Prefer the pthread_barrier implementation on platforms where it is
available over uv_barrier implementation.  This also solves the problem
with thread sanitizer builds on macOS that doesn't have pthread barrier.

(cherry picked from commit d07c4a98da)
2023-01-11 10:21:39 +00:00
Tom Krizek
4d79f073b6 Update BIND version to 9.18.11-dev 2022-12-13 17:02:03 +01:00
Petr Špaček
0d78be7057 Fix configure --disable-doh help text
This is technically fixup for 2bb454182b.

Related: !4926
(cherry picked from commit 5ec272007d)
2022-12-08 10:17:32 +00:00
Michał Kępień
1f1c012a5f Update BIND version to 9.18.10-dev 2022-11-08 13:23:20 +01:00
Ondřej Surý
a4341b4338 Don't enforce jemalloc on NetBSD
The NetBSD system allocator is in fact based on the jemalloc, but it
doesn't export the extended interface, so we can't use that.  Remove
the jemalloc enforcement for the NetBSD.

(cherry picked from commit feea72414b)
2022-10-31 16:15:11 +01:00
Michał Kępień
fd028232f9 Update BIND version to 9.18.9-dev 2022-10-10 23:18:40 +02:00
Mark Andrews
886df1542e Use strnstr implementation from FreeBSD if not provided by OS
(cherry picked from commit 5f07fe8cbb)
2022-10-04 15:33:33 +11:00
Tony Finch
9ec7f4399f A more helpful error when --without-jemalloc is impossible
When jemalloc is the system allocator (on FreeBSD and NetBSD), trying
to build --without-jemalloc caused an obscure compiler error. Instead,
complain at configure time that --without-jemalloc cannot work. (It
needs to remain an error because it is vexing when configure quietly
ignores an explicit direction.)

(cherry picked from commit f0e79458be)
2022-09-27 14:35:29 +01:00
Evan Hunt
369858730a change ISC__BUFFER macros to inline functions
previously, when ISC_BUFFER_USEINLINE was defined, macros were
used to implement isc_buffer primitives (isc_buffer_init(),
isc_buffer_region(), etc). these macros were missing the DbC
assertions for those primitives, which made it possible for
coding errors to go undetected.

adding the assertions to the macros caused compiler warnings on
some platforms. therefore, this commit converts the ISC__BUFFER
macros to static inline functions instead, with assertions included,
and eliminates the non-inline implementation from buffer.c.

the --enable-buffer-useinline configure option has been removed.

(cherry picked from commit 1926ddc987)
2022-09-27 00:45:28 -07:00
Michał Kępień
7cea6c4211 Update BIND version to 9.18.8-dev 2022-09-09 19:58:46 +02:00
Michał Kępień
f63ffe40bb Update BIND version to 9.18.7-dev 2022-08-05 06:57:18 +02:00
Michał Kępień
be9c6f44f3 Update BIND version to 9.18.6-dev 2022-07-11 08:51:32 +02:00
Artem Boldariev
5154bac7c5 Add SSL_SESSION_is_resumable() implementation shim
This commit adds SSL_SESSION_is_resumable() implementation if it is
missing.

(cherry picked from commit 35338b4105)
2022-06-15 17:02:45 +03:00