Commit Graph

36700 Commits

Author SHA1 Message Date
Mark Andrews
98cc24d9fe Update reference to point to doc/arm/build.inc.rst
(cherry picked from commit 6d668b8c34)
2022-09-23 14:07:21 +10:00
Mark Andrews
7b2236c431 Document -DOPENSSL_API_COMPAT=10100 in OPTIONS.md
(cherry picked from commit f32c52c5ca)
2022-09-23 14:07:21 +10:00
Petr Menšík
8a425dbac4 Remove engine related parts for OpenSSL 3.0
OpenSSL just cannot work with mixing ENGINE_* api mixed with OSSL_PARAM
builders. But it can be built in legacy mode, where deprecated but still
working API would be used.

It can work under OpenSSL 3.0, but only if using legacy code paths
matching OpenSSL 1.1 calls and functions.

Remove fromlabel processing by OpenSSL 3.0 only functions. They can
return later with a proper provider support for pkcs11.

(cherry picked from commit 6c55ea17c6)
2022-09-23 14:07:21 +10:00
Petr Menšík
d6806c9fe7 Do not use OSSL_PARAM when engine API is compiled
OpenSSL has deprecated many things in version 3.0. If pkcs11 engine
should work then no builder from OpenSSL 3.0 API can be used.

Allow switching to OpenSSL 1.1 like calls even on OpenSSL 3.0 when
OPENSSL_API_COMPAT=10100 is defined. It would still compile and allow
working keys loading from the engine passed on command line.

(cherry picked from commit f92950bb64)
2022-09-23 14:07:14 +10:00
Petr Menšík
306f1008cc Add ENGINE_init and ENGINE_finish calls
According to manual page of ENGINE_init, it should be called explicitly
before any key operations happens. Make it active whole lifetime.

(cherry picked from commit 71a8f1e7cd)
2022-09-23 14:05:16 +10:00
Petr Špaček
da4eae91b5 Merge branch 'pspacek/fix-out-of-tree-junit-v9_18' into 'v9_18'
Improve JUnit test status generator for Gitlab CI [v9_18]

See merge request isc-projects/bind9!6804
2022-09-22 14:36:53 +00:00
Petr Špaček
bbe089615f Unify Python interpreter used by TSAN and JUnit helpers
Reportedly we don't have python2-enabled TSAN builds, so we can remove
one more hardcoded python3 call from .gitlab-ci.yaml.

(cherry picked from commit 8d095550a8)
2022-09-22 16:17:28 +02:00
Petr Špaček
1067f114f9 Fix JUnit test status generator for out-of-tree system tests
- Use separate paths for tests results and test script
- For tarball tests include the conversion script in the `make dist`

(cherry picked from commit c46ad4aec2)
2022-09-22 16:17:25 +02:00
Arаm Sаrgsyаn
588ee1f581 Merge branch 'aram/arm-xot-and-ddns-update-forwarding-v9_18' into 'v9_18'
[v9_18] Document dynamic update forwarding limitation when XoT is enabled

See merge request isc-projects/bind9!6765
2022-09-22 11:43:53 +00:00
Aram Sargsyan
f6f828989f Add a known issue release note for [GL #3512] 2022-09-22 10:54:56 +00:00
Aram Sargsyan
e20cda5928 Document dynamic update forwarding limitation when XoT is enabled
BIND 9.18 does not support sending forwarded DDNS update requests
through DoT.
2022-09-22 10:54:56 +00:00
Evan Hunt
f05297fe5a Merge branch '3553-httpd-cleanup-v9_18' into 'v9_18'
additional code cleanups in httpd.c

See merge request isc-projects/bind9!6799
2022-09-21 20:14:31 +00:00
Evan Hunt
357b59ec68 additional code cleanups in httpd.c
- use isc_buffer functions when appropriate, rather than converting
  to and from isc_region unnecessarily
- use the zlib total_out value instead of calculating it
- use c99 struct initialization

(cherry picked from commit 4b7248545e)
2022-09-21 12:54:27 -07:00
Michał Kępień
0a53f61727 Merge tag 'v9_18_7' into v9_18
BIND 9.18.7
2022-09-21 13:13:30 +02:00
Evan Hunt
c00f22e8b2 Merge branch 'each-cleanup-dns_request-v9_18' into 'v9_18'
remove dns_request_create(), rename dns_request_createvia()

See merge request isc-projects/bind9!6784
2022-09-15 23:53:42 +00:00
Evan Hunt
8f61d07918 merge dns_request_createvia() into dns_request_create()
dns_request_create() was a front-end to dns_request_createvia() that
was only used by test binaries. dns_request_createvia() has been
renamed to dns_request_create(), and the test programs that formerly
used dns_request_create() have been updated to use the new parameters.

(cherry picked from commit ebf7b31aa3)
2022-09-15 16:49:04 -07:00
Mark Andrews
af27dd052d Merge branch '3525-key-id-clashes-across-algorithms-cause-problems-with-statistics-v9_18' into 'v9_18'
Resolve "key id clashes across algorithms cause problems with statistics" [v9_18]

See merge request isc-projects/bind9!6746
2022-09-15 23:42:39 +00:00
Mark Andrews
ea1d3476a8 Suppress manykeys test on duplicate key ids
If there are duplicate key ids across multiple algorithms expected
output is no met.  We have fixed this in on main but decided to not
back port the fix as it will change the statistics channel output.

This change detects when there are duplicate key id across algorithms
as skips the sub test.
2022-09-16 09:17:14 +10:00
Evan Hunt
9ac426db8f Merge branch '3522-update-detach-v9_18' into 'v9_18'
fix an incorrect detach in update processing

See merge request isc-projects/bind9!6782
2022-09-15 18:53:30 +00:00
Evan Hunt
16fbe33478 CHANGES for [GL #3522]
(cherry picked from commit fdc35928eb)
2022-09-15 11:34:33 -07:00
Evan Hunt
592c7b1049 fix an incorrect detach in update processing
when processing UDPATE requests, hold the request handle until
we either drop the request or respond to it.

(cherry picked from commit 00e0758e12)
2022-09-15 11:34:33 -07:00
Michal Nowak
bc53176c54 Merge branch '3427-tcp-system-test-bump-socket.create_connection-timeout-v9_18' into 'v9_18'
[v9_18] Bump socket.create_connection() timeout to 10 seconds

See merge request isc-projects/bind9!6780
2022-09-15 10:46:58 +00:00
Michal Nowak
ec3a17f718 Bump socket.create_connection() timeout to 10 seconds
The tcp Pytest on OpenBSD fairly reliably fails when receive_tcp()
on a socket is attempted:

    >           (response, rtime) = dns.query.receive_tcp(sock, timeout())

    tests-tcp.py:50:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    /usr/local/lib/python3.9/site-packages/dns/query.py:659: in receive_tcp
        ldata = _net_read(sock, 2, expiration)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
    count = 2, expiration = 1662719959.8106785

        def _net_read(sock, count, expiration):
            """Read the specified number of bytes from sock.  Keep trying until we
            either get the desired amount, or we hit EOF.
            A Timeout exception will be raised if the operation is not completed
            by the expiration time.
            """
            s = b''
            while count > 0:
                try:
    >               n = sock.recv(count)
    E               socket.timeout: timed out

This is because the socket is already closed.

Bump the socket connection timeout to 10 seconds.

(cherry picked from commit 658cae9fad)
2022-09-15 12:21:28 +02:00
Ondřej Surý
47a40b48dc Merge branch '3542-gracefuly-handle-cancelled-http-read-during-sending-v9_18' into 'v9_18'
Handle canceled read during sending data over stats channel

See merge request isc-projects/bind9!6779
2022-09-15 09:49:10 +00:00
Ondřej Surý
c9c4de0626 Add CHANGES and release note for [GL #3542]
(cherry picked from commit e29563173b)
2022-09-15 10:58:28 +02:00
Ondřej Surý
474676a38c Provide stronger wording about the security of statistics channel
Add more text about the importance of properly securing the statistics
channel and what is and what is not considered a security vulnerability.

(cherry picked from commit 6869c98d36)
2022-09-15 10:58:09 +02:00
Ondřej Surý
2adaa53619 Handle canceled read during sending data over stats channel
An assertion failure would be triggered when the TCP connection
is canceled during sending the data back to the client.

Don't require the state to be `RECV` on non successful read to
gracefully handle canceled TCP connection during the SEND state of the
HTTPD channel.

(cherry picked from commit 6562227cc8)
2022-09-15 10:58:09 +02:00
Petr Špaček
5e51ccf9b6 Merge branch 'pspacek/log-no-recursion-reason-v9_18' into 'v9_18'
Log reasons why ACL denied recursion or cache peek [v9_18]

See merge request isc-projects/bind9!6775
2022-09-15 08:08:23 +00:00
Evan Hunt
4bf1dcc96a Add tests for the new log messages with refusal reason
Update the allow-query test to check for the new log messages.

(cherry picked from commit a2bbe578bf)
2022-09-15 09:41:32 +02:00
Petr Špaček
d1d1bc67bd CHANGES note for [GL !6669]
(cherry picked from commit 67c3a3439b)
2022-09-15 09:41:31 +02:00
Petr Špaček
c095ac9ad1 Log reason why cache peek is not available
Log which ACL caused RD=0 query into cache to be refused.
Expected performance impact is negligible.

(cherry picked from commit fdf7456643)
2022-09-15 09:41:01 +02:00
Petr Špaček
e067d11396 Log reason why recursion is not available
Log which ACL caused RA=0 condition.
Expected performance impact is negligible.

(cherry picked from commit 95fc05c454)
2022-09-15 09:40:57 +02:00
Evan Hunt
c8ac45057b Merge branch '3399-random-device-obsolete' into 'v9_18'
flag "random-device" as obsolete

See merge request isc-projects/bind9!6768
2022-09-14 16:49:41 +00:00
Evan Hunt
90117edc49 CHANGES for [GL #3399] 2022-09-14 09:37:25 -07:00
Evan Hunt
17da7dee5c flag "random-device" as obsolete
the "random-device" option was made non-functional in 9.13, but was
not marked as obsolete at that time. this is now fixed; configuring
"random-device" will trigger a warning.
2022-09-14 09:37:25 -07:00
Tony Finch
0ffef8ceba Merge branch '3519-macos-tests-v9_18' into 'v9_18'
The system tests are using another IP address

See merge request isc-projects/bind9!6772
2022-09-14 12:06:28 +00:00
Tony Finch
1c6627f6e3 Skip the xfer test when Net::DNS is too old
This allows the system tests to run to completion on macOS
without requiring extra modules from CPAN.

(cherry picked from commit d8053785b0)
2022-09-14 11:49:43 +01:00
Tony Finch
de747f9b6b The system tests are using another IP address
Reduce the number of places that know about the number of IP addresses
required by the system tests, by changing `testsock.pl` to read the
`max` from `ifconfig.sh.in`. This should make the test runner fail
early with a clear message when the interfaces have been set up by an
obsolete script.

Add comments to cross-reference `ifconfig.sh.in`, `testsock.pl`, and
`org.isc.bind.system` to make it easier to remember what needs
updating when an IP address is added.

(cherry picked from commit 258a896a0c)
2022-09-14 11:49:43 +01:00
Evan Hunt
db830aa8aa Merge branch '3520-rndc-detach' into 'v9_18'
fix a possible use-after-detach bug in rndc

See merge request isc-projects/bind9!6724
2022-09-12 21:25:59 +00:00
Evan Hunt
7513aeead8 fix a possible use-after-detach bug in rndc
we need to detach the rndc task when calling isc_app_shutdown(),
otherwise it may be detached before the last reference to it.
while this does not prevent rndc from working, it causes a spurious
core dump on shutdown.
2022-09-12 14:03:05 -07:00
Evan Hunt
4252ee5c5f Merge branch '3520-rndc-shutdown-hang-v9_18' into 'v9_18'
prevent a possible shutdown hang in rndc

See merge request isc-projects/bind9!6764
2022-09-12 21:02:36 +00:00
Evan Hunt
9e0af151e9 prevent a possible shutdown hang in rndc
In rndc_recvdone(), if 'sends' was not 0, then 'recvs' was not
decremented, in which case isc_loopmgr_shutdown() was never reached,
which could cause a hang. (This has not been observed to happen, but
the code was incorrect on examination.)

(cherry picked from commit 9683439d73)
2022-09-12 13:34:58 -07:00
Tony Finch
de40d702b0 Merge branch '3531-initialize-struct-server-v9_18' into 'v9_18'
Ensure that named_server_t is properly initialized

See merge request isc-projects/bind9!6762
2022-09-12 11:21:57 +00:00
Tony Finch
0470a4f521 Ensure that named_server_t is properly initialized
There was a ubsan error reporting an invalid value for interface_auto
(a boolean value cannot be 190) because it was not initialized. To
avoid this problem happening again, ensure the whole of the server
structure is initialized to zero before setting the (relatively few)
non-zero elements.
2022-09-12 11:26:33 +01:00
Michał Kępień
f2fc2cef60 Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.18.8' into 'v9_18'
Set up version and release notes for BIND 9.18.8

See merge request isc-projects/bind9!6759
2022-09-09 18:23:11 +00:00
Michał Kępień
6081ba7604 Set up release notes for BIND 9.18.8 2022-09-09 19:58:46 +02:00
Michał Kępień
7cea6c4211 Update BIND version to 9.18.8-dev 2022-09-09 19:58:46 +02:00
Michał Kępień
85a6eb108e Update BIND version for release v9.18.7 2022-09-08 14:39:47 +02:00
Michał Kępień
3d55ae3d2f Add a CHANGES marker 2022-09-08 14:39:47 +02:00
Michał Kępień
f0f3c56cd5 Merge branch 'michal/prepare-documentation-for-bind-9.18.7' into 'security-v9_18'
Prepare documentation for BIND 9.18.7

See merge request isc-private/bind9!459
2022-09-08 12:26:53 +00:00