Commit Graph

7026 Commits

Author SHA1 Message Date
Ondřej Surý
459db4462f Add CHANGES note for [GL #1609] 2023-02-15 09:30:21 +01:00
Mark Andrews
55a6b15087 Add CHANGES note for [GL !7417] 2023-02-15 18:55:18 +11:00
Tony Finch
436b76bb17 Improve the spinloop pause / yield hint
Unfortunately, C still lacks a standard function for pause (x86,
sparc) or yeild (arm) instructions, for use in spin lock or CAS loops.
BIND has its own based on vendor intrinsics or inline asm.

Previously, it was buried in the `isc_rwlock` implementation. This
commit renames `isc_rwlock_pause()` to `isc_pause()` and moves
it into <isc/pause.h>.

This commit also fixes the configure script so that it detects ARM
yield support on systems that identify as `aarch*` instead of `arm*`.

On 64-bit ARM systems we now use the ISB (instruction synchronization
barrier) instruction in preference to yield. The ISB instruction
pauses the CPU for longer, several nanoseconds, which is more like the
x86 pause instruction. There are more details in a Rust pull request,
which also refers to MySQL making the same change:
https://github.com/rust-lang/rust/pull/84725
2023-02-14 17:13:24 +00:00
Aram Sargsyan
a5927f1151 Add a CHANGES note for [GL #3866] 2023-02-14 09:13:18 +00:00
Mark Andrews
2928f21733 Add CHANGES note for [GL #3662] 2023-02-14 10:10:39 +11:00
Ondřej Surý
6fa48c963e Add CHANGES and release note for [GL #3840] 2023-02-09 15:04:52 +01:00
Tony Finch
174e56a251 Fix CHANGES numbering
Oops, I broke it
2023-02-09 13:41:04 +00:00
Tony Finch
9721fa2153 Reduce the size of rdatasetheader_t by 16 bytes
Re-order the fields to avoid padding, and change the type of
`heap_index` to `uint16_t` to match `dns_rbtnode_t->locknum`.
2023-02-09 09:07:30 +00:00
Mark Andrews
ae26fcb8f5 Add CHANGES note for [GL #3831] 2023-02-09 08:35:27 +11:00
Ondřej Surý
72cfca9b3b Add CHANGES and release notes for [GL #3729] 2023-02-08 21:33:23 +01:00
Aram Sargsyan
2a1f937536 Add a CHANGES note for [GL #3839] 2023-02-07 10:41:21 +00:00
Evan Hunt
4f50854e7a CHANGES for [GL #3790] 2023-02-06 15:04:24 -08:00
Evan Hunt
c144fd2871 CHANGES for [GL #3850] 2023-02-06 14:39:43 -08:00
Tony Finch
50ab648f8a Remove unused support for fromwire(DNS_NAME_DOWNCASE)
Most of this change is fixing dns_rdata_fromwire() so
it does not propagate the unused options variable.
2023-02-06 13:26:36 +00:00
Tony Finch
c70bb3deb5 Remove some remnants of bitstring labels
* rbt node chains were sized to allow for bitstring labels, so they
  had 256 levels; but in the absence of bistrings, 128 is enough.

* dns_byaddr_createptrname() had a redundant options argument,
  and a very outdated doc comment.

* A number of comments referred to bitstring labels in a way that is
  no longer helpful. (A few informative comments remain.)
2023-02-06 13:22:30 +00:00
Tony Finch
ff63b53ff4 Add isc_time_monotonic()
This is to simplify measurements of how long things take.
2023-02-06 12:14:51 +00:00
Tony Finch
b8e71f9580 Fix ISC_MEM_ZERO on allocators with malloc_usable_size()
ISC_MEM_ZERO requires great care to use when the space returned by
the allocator is larger than the requested space, and when memory is
reallocated. You must ensure that _every_ call to allocate or
reallocate a particular block of memory uses ISC_MEM_ZERO, to ensure
that the extra space is zeroed as expected. (When ISC_MEMFLAG_FILL
is set, the extra space will definitely be non-zero.)

When BIND is built without jemalloc, ISC_MEM_ZERO is implemented in
`jemalloc_shim.h`. This had a bug on systems that have malloc_size()
or malloc_usable_size(): memory was only zeroed up to the requested
size, not the allocated size. When an oversized allocation was
returned, and subsequently reallocated larger, memory between the
original requested size and the original allocated size could
contain unexpected nonzero junk. The realloc call does not know the
original requested size and only zeroes from the original allocated
size onwards.

After this change, `jemalloc_shim.h` always zeroes up to the
allocated size, not the requested size.
2023-02-06 11:21:12 +00:00
Michał Kępień
493eadd1ae Add CHANGES entry for GL #3827 2023-02-01 11:22:59 +01:00
Mark Andrews
13e0dfbae2 Add CHANGES for [GL #3828] 2023-02-01 00:35:11 +11:00
Mark Andrews
fda7858e74 Add CHANGES for [GL #3830] 2023-01-31 23:52:19 +11:00
Mark Andrews
1d258e2fb8 Add CHANGES for [GL #3829] 2023-01-30 22:26:50 +00:00
Matthijs Mekking
38ffe5acf3 Add CHANGES for #3822 2023-01-27 15:07:26 +00:00
Michał Kępień
4e934bae0b Merge tag 'v9_19_9'
BIND 9.19.9
2023-01-25 21:16:00 +01:00
Ondřej Surý
122737ace6 Add CHANGES and release note for [GL #3718] 2023-01-24 17:57:16 +00:00
Aram Sargsyan
73e9390715 Add CHANGES and release notes for [GL #3726] 2023-01-20 14:45:30 +00:00
Mark Andrews
e706fb81ca Add CHANGES note for [GL #3800] 2023-01-20 11:06:08 +11:00
Mark Andrews
5c471c5d2c Add CHANGES for [GL #3799] 2023-01-19 23:52:37 +11:00
Aram Sargsyan
5a1707aa8d Add a CHANGES note for [GL #3808] 2023-01-19 10:24:36 +00:00
Matthijs Mekking
dbbacd910f Add CHANGES and release note for GL #3783
News worthy.
2023-01-19 10:19:43 +00:00
Ondřej Surý
401294cf60 Add CHANGES and release note for [GL #3795] 2023-01-18 19:36:26 +01:00
Evan Hunt
22d1951aa6 CHANGES and release note for [GL #3781] 2023-01-17 17:29:43 -08:00
Evan Hunt
d6768d6000 CHANGES and release note revision for [GL #3789] 2023-01-17 16:18:21 -08:00
Ondřej Surý
b049e329ef Add CHANGES and release note for [GL #3801] 2023-01-17 21:48:30 +01:00
Artem Boldariev
16fa692b56 Modify CHANGES [GL #3767]
Mention that downloading a zone via TLS- from a server which does not
negotiate "dot" ALPN tag could have crashed BIND on shutdown.
2023-01-17 19:00:19 +02:00
Michał Kępień
a48b5a2935 Add a CHANGES marker 2023-01-12 22:43:01 +01:00
Michał Kępień
ad57bbb411 Update documentation for GL #3212 2023-01-12 21:39:37 +01:00
Aram Sargsyan
d08a478b42 Add CHANGES and release notes for [GL #3619] 2023-01-12 12:43:32 +01:00
Mark Andrews
8ca018b5ec Add CHANGES note for [GL #3622] 2023-01-12 12:22:58 +01:00
Evan Hunt
991de0aa76 CHANGES and release notes for [GL #3523] 2023-01-12 11:52:48 +01:00
Michał Kępień
a2cc802060 Add placeholder entries to CHANGES
Add placeholders for the following issues:

  - [GL #3523]
  - [GL #3599]
  - [GL #3619]
  - [GL #3622]
2023-01-11 17:44:12 +01:00
Ondřej Surý
41870dccba Add CHANGES note for [GL #3785] 2023-01-10 10:07:06 +01:00
Evan Hunt
34a7166029 CHANGES and release note for [GL #3773] 2023-01-09 12:15:28 -08:00
Matthijs Mekking
e43a26fd1e Add release note and CHANGES for #3743 2023-01-09 15:39:57 +01:00
Aram Sargsyan
d50cb1d45d Add a CHANGES note for [GL #3768] 2023-01-09 14:14:31 +00:00
Aram Sargsyan
40dee61a1e Add a CHANGES note for [GL #3678] 2023-01-09 10:44:20 +01:00
Tony Finch
9fa20d6f6c Don't crash when rndc delzone encounters a catz member
This bug was masked in the tests because the `catz` test script did an
`rndc addzone` before an `rndc delzone`. The `addzone` autovivified
the NZF config, so `delzone` worked OK.

This commit swaps the order of two sections of the `catz` test script
so that it uses `delzone` before `addzone`, which provokes a crash
when `delzone` requires a non-NULL NZF config.

To fix the crash, we now try to remove the zone from the NZF config
only if it was dynamically added but not by a catalog zone.
2023-01-04 14:04:22 +00:00
Aram Sargsyan
2824422e78 Add a CHANGES note for [GL #3735] 2023-01-03 14:21:17 +00:00
Aram Sargsyan
268154f899 Add a CHANGES note for [GL #3754] 2023-01-03 08:23:23 +00:00
Matthijs Mekking
e277f1f757 Add CHANGES and release notes for #3714
Update release notes, remove the deprecation entry and add a new
removed feature entry.
2022-12-23 15:32:12 +01:00
Matthijs Mekking
34636576d0 Add CHANGES
Mention the refactor of zone.c
2022-12-23 13:36:50 +00:00