Ondřej Surý
93ebd46780
Replace isc_rwlock with ck_rwlock functions
2018-08-27 10:07:00 +02:00
Ondřej Surý
dcc084abda
Rewrite isc_refcount using ck_pr primitives
2018-08-27 10:05:44 +02:00
Ondřej Surý
46940f248a
Rewrite lib/isc/stats.c using Concurrency Kit
2018-08-27 10:05:44 +02:00
Ondřej Surý
32ed003f03
Add configure check for Concurrency Kit
2018-08-27 10:05:44 +02:00
Ondřej Surý
9536b45ae1
Add CHANGES note for GL #10 .
...
5023. [func] Replace custom assembly for atomic operations with
atomic support from the compiler. The code will now use
C11 stdatomic, or __atomic, or __sync builtins with GCC
or Clang compilers, and Interlocked functions with MSVC.
[GL #10 ]
2018-08-27 10:04:05 +02:00
Ondřej Surý
53961b6b2b
Directly use return value of atomic_compare_exchange_strong_explicit insteaf of comparing expected value
2018-08-27 10:03:37 +02:00
Ondřej Surý
e4d96e53eb
Disable make clean at the end of configure step in GitLab CI
2018-08-27 10:03:37 +02:00
Ondřej Surý
99c692e6b6
Explicitly load atomic values in lib/isc/rwlock.c
2018-08-27 10:03:37 +02:00
Ondřej Surý
bf642660c9
Switch everything back to relaxed memory ordering
2018-08-27 10:03:37 +02:00
Ondřej Surý
87f9d22ae0
Remove no-op NODE_STRONG(UN)?LOCK and rename NODE_WEAK(UN)?LOCK to just NODE_(UN)?LOCK
2018-08-27 10:03:37 +02:00
Ondřej Surý
d85d74f993
Rewrite isc_refcount API to fetch_and_<op>, instead of former <op>_and_<fetch>
2018-08-27 10:03:37 +02:00
Ondřej Surý
bdfece8011
Remove checks for atomic rwlock from rbtdb.cz and zone.c
2018-08-27 10:03:36 +02:00
Ondřej Surý
1a83111379
Remove check for atomic isc_refcount in dns/rbt.h and always use isc_refcount
2018-08-27 10:03:36 +02:00
Ondřej Surý
3d487d5f52
Rewrite reference counting in isc_mem to use isc_refcount API
2018-08-27 10:03:36 +02:00
Ondřej Surý
670f50c6bf
isc_refcount_init() now doesn't return isc_result_t and asserts on failed initialization
2018-08-27 10:03:36 +02:00
Ondřej Surý
297c75a6aa
Remove isc_atomic usage from rwlock.c and stats.c
2018-08-27 10:03:36 +02:00
Ondřej Surý
662738e981
Replace arch specific atomic.h with global atomic.h header using either stdatomic, __atomic or __sync primitives
2018-08-27 10:03:36 +02:00
Ondřej Surý
d28f4765a9
Update configure.in to check for both stdatomic.h and __atomic builtins
2018-08-27 10:03:36 +02:00
Mark Andrews
dc4086d4f2
Merge branch 'update-documentation-for-ms-and-krb5-rules' into 'master'
...
update {krb5,ms}-{self,subdomain} descriptions
See merge request isc-projects/bind9!708
2018-08-27 02:58:36 -04:00
Mark Andrews
a3c5c2c29c
add CHANGES note
2018-08-27 16:46:07 +10:00
Mark Andrews
0370d13667
update {krb5,ms}-{self,subdomain} descriptions
2018-08-27 16:39:51 +10:00
Mark Andrews
25bb33c866
Merge branch '487-reset-dig-exit-code-after-a-tcp-connection-is-established' into 'master'
...
Reset dig exit code after a TCP connection is established
Closes #487
See merge request isc-projects/bind9!698
2018-08-27 00:07:21 -04:00
Michał Kępień and Mark Andrews
59057bee5b
Add CHANGES entry
...
5020. [bug] dig returned a non-zero exit code when it received a
reply over TCP after a retry. [GL #487 ]
2018-08-27 13:58:43 +10:00
Michał Kępień and Mark Andrews
deb3b85cb2
Reset dig exit code after a TCP connection is established
...
The "exitcode" variable is set to 9 if a TCP connection fails, but is
not reset to 0 if a subsequent TCP connection succeeds. This causes dig
to return a non-zero exit code if it succeeds in getting a TCP response
after a retry. Fix by resetting "exitcode" to 0 if connect_done()
receives an event with the "result" field set to ISC_R_SUCCESS.
2018-08-27 13:58:08 +10:00
Michał Kępień
d3bd90f3a7
Merge branch 'set-use-alt-transfer-source-no-in-the-mirror-system-test' into 'master'
...
Set "use-alt-transfer-source no;" in the "mirror" system test
See merge request isc-projects/bind9!705
2018-08-25 16:20:28 -04:00
Michał Kępień
a23162ab28
Set "use-alt-transfer-source no;" in the "mirror" system test
...
Force ns3 to use a constant source address (10.53.0.3) when sending
transfer requests for the "initially-unavailable" zone to prevent
failures of transfers not triggered by bin/tests/system/mirror/tests.sh
from causing fallback to using a source address for which transfers of
that zone are refused throughout the entire "mirror" system test since
that might yield false positives.
2018-08-25 21:48:17 +02:00
Ondřej Surý
8f37439ccf
Merge branch '496-tls-in-rng' into 'master'
...
Resolve "RNG should not be locking"
Closes #340 and #496
See merge request isc-projects/bind9!697
2018-08-25 08:08:13 -04:00
Ondřej Surý
7ab228cf71
Use __declspec( thread ) for thread local storage when compiling with Visual Studio 2015 and higher
2018-08-25 13:59:26 +02:00
Witold Kręcicki
18ebcf2b30
Add runtime check on top of pthread_mutex_{lock,unlock} in rng
2018-08-25 13:26:25 +02:00
Witold Kręcicki
8c5aeb6c4c
Use TLS variables to store RNG state, make RNG lockless
2018-08-25 13:26:25 +02:00
Ondřej Surý
e79b42fec0
Merge branch 'fix-line-continuation-in-fuzz-Makefile.in' into 'master'
...
Fix line continuation in fuzz/Makefile.in
See merge request isc-projects/bind9!699
2018-08-24 11:01:10 -04:00
Michał Kępień
875b29c3e3
Fix line continuation in fuzz/Makefile.in
...
Add a missing semicolon to prevent "make test" run from the top-level
directory from failing even when all system and unit tests succeed due
to "(cd fuzz && ${MAKE} check)" returning a non-zero exit code.
2018-08-24 14:00:32 +02:00
Michał Kępień
ba350f40ff
Merge branch '470-log-a-message-when-ixfr-from-differences-is-set-for-an-inline-signed-zone' into 'master'
...
Log a message when "ixfr-from-differences" is set for an inline-signed zone
Closes #470
See merge request isc-projects/bind9!648
2018-08-24 04:35:29 -04:00
Michał Kępień
4fb5d072c2
Add CHANGES entry
...
5019. [cleanup] A message is now logged when ixfr-from-differences is
set at zone level for an inline-signed zone. [GL #470 ]
2018-08-24 10:18:59 +02:00
Michał Kępień
087157d14f
Log a message when "ixfr-from-differences" is set for an inline-signed zone
...
For inline-signed zones, the value of "ixfr-from-differences" is
hardcoded to:
- "yes" for the raw version of the zone,
- "no" for the signed version of the zone.
In other words, any user-provided "ixfr-from-differences" setting is
effectively ignored for an inline-signed zone. Ensure the user is aware
of that by adding a note to the ARM and logging a message when an
"ixfr-from-differences" option is found at the zone level.
2018-08-24 10:18:59 +02:00
Michał Kępień
2359f06aa6
Merge branch '491-prevent-a-race-in-the-inline-system-test' into 'master'
...
Prevent a race in the "inline" system test
Closes #491
See merge request isc-projects/bind9!682
2018-08-24 03:55:13 -04:00
Michał Kępień
e36c869e85
Prevent a race in the "inline" system test
...
A short time window exists between logging the addition of an NSEC3PARAM
record to a zone and committing it to the current version of the zone
database. If a query arrives during such a time window, an unsigned
response will be returned. One of the checks in the "inline" system
test requires NSEC3 records to be present in an answer - that check
would fail in the case described above. Use rndc instead of log
watching for checking whether zone signing and NSEC3 chain modifications
are complete in order to prevent intermittent "inline" system test
failures.
2018-08-24 09:37:37 +02:00
Mark Andrews
1c82dde85c
Merge branch 'fix-non-portable' into 'master'
...
use sizeof(CK_SLOT_ID)
See merge request isc-projects/bind9!588
2018-08-23 21:29:52 -04:00
Mark Andrews
42b16771db
add CHANGES note
2018-08-24 11:02:27 +10:00
Mark Andrews
2c1d8b2e99
use sizeof(CK_SLOT_ID)
2018-08-24 11:00:39 +10:00
Mark Andrews
751c660b9d
Merge branch 'value-not-updated-atomically' into 'master'
...
unlink before unlock
See merge request isc-projects/bind9!589
2018-08-23 20:49:38 -04:00
Mark Andrews
05531d3a86
add CHANGES note
2018-08-24 10:41:11 +10:00
Mark Andrews
4742f4ecba
unlink before unlock
2018-08-24 10:36:53 +10:00
Mark Andrews
e59617441e
Merge branch '445-filter-aaaa-and-dns64-can-both-attempt-to-recurse-for-a-records-at-the-same-time' into 'master'
...
Resolve "filter-aaaa and dns64 can both attempt to recurse for A records at the same time"
Closes #445
See merge request isc-projects/bind9!561
2018-08-23 19:44:18 -04:00
Mark Andrews
c1bc3baf7f
add CHANGES note
2018-08-24 09:29:35 +10:00
Mark Andrews
1056376d10
when filter-aaaa and dns64 are both configured a assertion failure could occur
2018-08-24 09:26:54 +10:00
Evan Hunt
0213626992
Merge branch '436-fix-dnstap-test' into 'master'
...
Resolve "dnstap tests are failing in Jenkins"
Closes #436
See merge request isc-projects/bind9!683
2018-08-23 14:11:45 -04:00
Evan Hunt
0d6f504ba3
specify "dnssec-validation yes" instead of default "auto"
2018-08-23 13:52:57 -04:00
Ondřej Surý
af1df8738f
Merge branch 'bump-to-9.13.3-dev' into 'master'
...
Bump the version in the master to 9.13.3-dev
See merge request isc-projects/bind9!679
2018-08-23 06:11:51 -04:00
Ondřej Surý and Ondřej Surý
ca9aaf926f
Bump the version in the master to 9.13.3-dev
2018-08-23 06:02:24 -04:00