Tony Finch
434e25c098
Auto-tag merge requests created by git-replay-merge
...
The target branch is added to the title of the MR, and a "Backport"
label is added. If the target branch starts with "v" a version label
is added too.
While I am here, clean up remnants of the old gitlab API (which has
been replaced by push options for our purposes) and improve the
command-line parsing.
2023-01-11 08:02:29 +00:00
Ondřej Surý
2037b1d944
Merge branch 'ondrej/remove-udp-and-tcp-listen-lock' into 'main'
...
Get rid of locking during UDP and TCP listen
See merge request isc-projects/bind9!7343
2023-01-11 06:51:14 +00:00
Ondřej Surý
d06602f036
Get rid of locking during UDP and TCP listen
...
We already have a synchronization mechanism when starting the UDP and
TCP listener children - barriers. Change how we start the first-born
child (tid == 0), so we don't have to race for sock->parent->result and
sock->parent->fd.
2023-01-11 07:17:46 +01:00
Ondřej Surý
7900cbd9a9
Merge branch 'ondrej/cleanup-isc_astack-usage-in-netmgr' into 'main'
...
Convert isc_astack usage in netmgr to mempool and ISC_LIST
See merge request isc-projects/bind9!7300
2023-01-10 19:53:50 +00:00
Ondřej Surý
10f884a5b8
Remove unused isc_astack unit
...
The isc_astack unit is now unused, so just remove it.
2023-01-10 20:31:24 +01:00
Ondřej Surý
359faf2ff7
Convert isc_astack usage in netmgr to mempool and ISC_LIST
...
Change the per-socket inactive uvreq cache (implemented as isc_astack)
to per-worker memory pool.
Change the per-socket inactive nmhandle cache (implemented as
isc_astack) to unlocked per-socket ISC_LIST.
2023-01-10 20:31:24 +01:00
Ondřej Surý
8de2c73fd5
Merge branch 'ondrej/always-track-netmgr-sockets-and-handles' into 'main'
...
Simplify tracing the reference counting in isc_netmgr
See merge request isc-projects/bind9!7292
2023-01-10 19:30:37 +00:00
Ondřej Surý
5bbba0d1a1
Simplify tracing the reference counting in isc_netmgr
...
Always track the per-worker sockets in the .active_sockets field in the
isc__networker_t struct and always track the per-socket handles in the
.active_handles field ian the isc_nmsocket_t struct.
2023-01-10 19:57:39 +01:00
Ondřej Surý
56d7e01334
Merge branch '3785-openssl-refactoring-19' into 'main'
...
Add CHANGES note for [GL #3785 ]
Closes #3785
See merge request isc-projects/bind9!7344
2023-01-10 09:39:55 +00:00
Ondřej Surý
41870dccba
Add CHANGES note for [GL #3785 ]
2023-01-10 10:07:06 +01:00
Mark Andrews
6734b0f063
Merge branch '3787-siphash-c-105-26-runtime-error-applying-zero-offset-to-null-pointer' into 'main'
...
Resolve "siphash.c:105:26: runtime error: applying zero offset to null pointer"
Closes #3787
See merge request isc-projects/bind9!7339
2023-01-10 07:22:37 +00:00
Mark Andrews
349c23dbb7
Accept 'in=NULL' with 'inlen=0' in isc_{half}siphash24
...
Arthimetic on NULL pointers is undefined. Avoid arithmetic operations
when 'in' is NULL and require 'in' to be non-NULL if 'inlen' is not zero.
2023-01-10 17:52:56 +11:00
Ondřej Surý
a14946817e
Merge branch '3785-openssl-refactoring-18' into 'main'
...
Resolve "OpenSSL 3 refactoring"
Closes #3785
See merge request isc-projects/bind9!7335
2023-01-09 21:50:15 +00:00
Ondřej Surý
504f3282e3
Ignore the extra EVP_PKEY_get_bn_param() failures
...
In opensslrsa_components_get(), ignore the extra EVP_PKEY_get_bn_param()
return codes as RSA key might not have all those components.
2023-01-09 22:10:17 +01:00
Evan Hunt
51093a834b
Merge branch '3773-remove-dscp' into 'main'
...
remove nonfunctional DSCP implementation
Closes #3773
See merge request isc-projects/bind9!7305
2023-01-09 21:04:55 +00:00
Evan Hunt
34a7166029
CHANGES and release note for [GL #3773 ]
2023-01-09 12:15:28 -08:00
Evan Hunt
916ea26ead
remove nonfunctional DSCP implementation
...
DSCP has not been fully working since the network manager was
introduced in 9.16, and has been completely broken since 9.18.
This seems to have caused very few difficulties for anyone,
so we have now marked it as obsolete and removed the
implementation.
To ensure that old config files don't fail, the code to parse
dscp key-value pairs is still present, but a warning is logged
that the feature is obsolete and should not be used. Nothing is
done with configured values, and there is no longer any
range checking.
2023-01-09 12:15:21 -08:00
Ondřej Surý
f362cc0bf3
Merge branch '3785-openssl-refactoring-17' into 'main'
...
Refactor OpenSSL ECDSA public and private key export
Closes #3785
See merge request isc-projects/bind9!7334
2023-01-09 19:32:28 +00:00
Timo Teräs
8b62e7ed99
Refactor OpenSSL ECDSA private key export
2023-01-09 19:56:31 +01:00
Ondřej Surý
ddce412489
Merge branch '3785-openssl-refactoring-16' into 'main'
...
Refactor OpenSSL ECDSA generation to helper functions
Closes #3785
See merge request isc-projects/bind9!7333
2023-01-09 18:56:29 +00:00
Timo Teräs
83b2e45600
Refactor OpenSSL ECDSA public key export
2023-01-09 19:56:27 +01:00
Timo Teräs
560d21a8b3
Refactor OpenSSL ECDSA generation to helper functions
...
Reduce the #ifdef cruft by having specific helper functions.
2023-01-09 19:52:56 +01:00
Ondřej Surý
a0d15e4e07
Merge branch '3785-openssl-refactoring-15' into 'main'
...
Refactor OpenSSL ECDSA to use pkeypair
Closes #3785
See merge request isc-projects/bind9!7332
2023-01-09 18:52:27 +00:00
Timo Teräs
a3b6729a88
Refactor OpenSSL ECDSA to use pkeypair
...
- Use separate EVP_PKEY for public and private keys
- On private key load, generate public key allowing better consistency
- Support OpenSSL3 providers
- Clean up key construction abstraction
- Various other clean ups
2023-01-09 19:33:48 +01:00
Ondřej Surý
f6f807319c
Merge branch '3785-openssl-refactoring-14' into 'main'
...
Make OpenSSL keypair comparation a generic helper function
Closes #3785
See merge request isc-projects/bind9!7331
2023-01-09 18:33:24 +00:00
Ondřej Surý
326e85e08d
Merge branch '3785-openssl-refactoring-13' into 'main'
...
Refactor OpenSSL ECDSA type check to opensslecdsa_valid_key_alg helper
Closes #3785
See merge request isc-projects/bind9!7330
2023-01-09 18:31:06 +00:00
Timo Teräs
02efa591ef
Make OpenSSL keypair comparation a generic helper function
2023-01-09 19:30:49 +01:00
Ondřej Surý
608ca9b140
Merge branch '3785-openssl-refactoring-12' into 'main'
...
Implement support for OpenSSL 3 Provider API stored RSA keys
Closes #3785
See merge request isc-projects/bind9!7329
2023-01-09 18:29:56 +00:00
Timo Teräs
96b8ad21f6
Refactor OpenSSL ECDSA type check to opensslecdsa_valid_key_alg helper
2023-01-09 19:29:38 +01:00
Timo Teräs
5fd6cfc625
Implement support for OpenSSL 3 Provider API stored RSA keys
...
Allows using pkcs11-provider module for PKCS#11 keys
2023-01-09 19:22:40 +01:00
Michal Nowak
370acd1f0a
Merge branch 'mnowak/abort-on-ubsan-errors' into 'main'
...
Abort on UBSAN errors
See merge request isc-projects/bind9!6877
2023-01-09 16:39:24 +00:00
Michal Nowak
1451bb7390
Abort on UBSAN errors
...
Previously, UBSAN errors might slip undetected.
2023-01-09 17:19:19 +01:00
Ondřej Surý
29de02e0ec
Merge branch '3785-openssl-refactoring-11' into 'main'
...
Make the OpenSSL RSA fromlabel helper a generic one
Closes #3785
See merge request isc-projects/bind9!7326
2023-01-09 15:43:09 +00:00
Timo Teräs
a0404696d7
Make the OpenSSL RSA fromlabel helper a generic one
2023-01-09 16:35:30 +01:00
Ondřej Surý
56614a722a
Merge branch '3785-openssl-refactoring-10' into 'main'
...
Rename the global ENGINE *e to global_engine
Closes #3785
See merge request isc-projects/bind9!7325
2023-01-09 15:35:24 +00:00
Ondřej Surý
11692467cd
Merge branch '3785-openssl-refactoring-9' into 'main'
...
Refactor OpenSSL RSA pkey building to use components struct
Closes #3785
See merge request isc-projects/bind9!7322
2023-01-09 15:31:46 +00:00
Timo Teräs
9e417f9815
Rename the global ENGINE *e to global_engine
2023-01-09 16:31:40 +01:00
Timo Teräs
451edf3242
Refactor OpenSSL RSA pkey building to use components struct
2023-01-09 15:31:24 +00:00
Petr Špaček
1d52a4cffd
Merge branch 'pspacek/aclelementtype_cleanup' into 'main'
...
Remove unused dns_aclelementtype_{ipprefix,any} enum values
See merge request isc-projects/bind9!7295
2023-01-09 15:06:22 +00:00
Petr Špaček
f5fa9b2965
Remove unused dns_aclelementtype_{ipprefix,any} enum values
...
Seems like they are unused, and all system tests pass when those values
removed.
2023-01-09 16:05:41 +01:00
Ondřej Surý
4d374786f9
Merge branch '3785-openssl-refactoring-8-cleanup' into 'main'
...
BN_free() and BN_clear_free() both accept NULL
Closes #3785
See merge request isc-projects/bind9!7323
2023-01-09 15:02:55 +00:00
Ondřej Surý
9e185cd611
BN_free() and BN_clear_free() both accept NULL
...
Remove the extra check in opensslrsa_components_free() as both BN_free()
and BN_clear_free() both accepts NULL as valid argument and do nothing.
2023-01-09 16:00:18 +01:00
Ondřej Surý
edd1b44d0b
Merge branch '3785-openssl-refactoring-8' into 'main'
...
Refactor OpenSSL RSA components getting to a helper function
Closes #3785
See merge request isc-projects/bind9!7321
2023-01-09 14:56:07 +00:00
Timo Teräs
b31d9f0b42
Refactor OpenSSL RSA components getting to a helper function
2023-01-09 15:55:07 +01:00
Matthijs Mekking
05b781e2f0
Merge branch '3743-unexpected-prohibited-ede' into 'main'
...
Fix unexpected "Prohibited" extended DNS error on allow-recursion mismatch
Closes #3743
See merge request isc-projects/bind9!7223
2023-01-09 14:40:31 +00:00
Matthijs Mekking
8db8ec1f6e
Add system test for #3743
2023-01-09 15:39:57 +01:00
Matthijs Mekking
e43a26fd1e
Add release note and CHANGES for #3743
2023-01-09 15:39:57 +01:00
Matthijs Mekking
798c8f57d4
Don't set EDE in ns_client_aclchecksilent
...
The ns_client_aclchecksilent is used to check multiple ACLs before
the decision is made that a query is denied. It is also used to
determine if recursion is available. In those cases we should not
set the extended DNS error "Prohibited".
2023-01-09 15:38:35 +01:00
Ondřej Surý
680921c4ef
Merge branch '3785-openssl-refactoring-7' into 'main'
...
Refactor OpenSSL RSA generation to be more readable
Closes #3785
See merge request isc-projects/bind9!7320
2023-01-09 14:33:09 +00:00
Ondřej Surý
1ce3f2eb7e
Merge branch '3785-openssl-refactoring-6' into 'main'
...
Provide identical BN_GENCB_new shim
Closes #3785
See merge request isc-projects/bind9!7319
2023-01-09 14:22:22 +00:00