Sun Feb 12 19:52:24 2023 UTC ()
Pullup ticket #6736 - requested by taca
net/bind918: security update

Revisions pulled up:
- net/bind918/Makefile                                          1.6
- net/bind918/PLIST                                             1.2
- net/bind918/distinfo                                          1.4
- net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh deleted
- net/bind918/patches/patch-lib_isc_siphash.c                   1.2
- net/bind918/patches/patch-lib_isc_time.c                      1.2
- net/bind918/patches/patch-lib_ns_update.c                     1.2

-------------------------------------------------------------------
   Module Name:	pkgsrc
   Committed By:	taca
   Date:		Wed Feb  8 00:13:44 UTC 2023

   Modified Files:
   	pkgsrc/net/bind918: Makefile PLIST distinfo
   	pkgsrc/net/bind918/patches: patch-lib_isc_siphash.c
   	    patch-lib_isc_time.c patch-lib_ns_update.c
   Removed Files:
   	pkgsrc/net/bind918/patches:
   	    patch-bin_tests_system_keyfromlabel_tests.sh

   Log Message:
   net/bind918: update to 9.18.11

   Approved by MAINTAINER (sekiya@).

   	--- 9.18.11 released ---

   6067.	[security]	Fix serve-stale crash when recursive clients soft quota
   			is reached. (CVE-2022-3924) [GL #3619]

   6066.	[security]	Handle RRSIG lookups when serve-stale is active.
   			(CVE-2022-3736) [GL #3622]

   6064.	[security]	An UPDATE message flood could cause named to exhaust all
   			available memory. This flaw was addressed by adding a
   			new "update-quota" statement that controls the number of
   			simultaneous UPDATE messages that can be processed or
   			forwarded. The default is 100. A stats counter has been
   			added to record events when the update quota is
   			exceeded, and the XML and JSON statistics version
   			numbers have been updated. (CVE-2022-3094) [GL #3523]

   6062.	[func]		The DSCP implementation, which has been
   			nonfunctional for some time, is now marked as
   			obsolete and the implementation has been removed.
   			Configuring DSCP values in named.conf has no
   			effect, and a warning will be logged that
   			the feature should no longer be used. [GL #3773]

   6061.	[bug]		Fix unexpected "Prohibited" extended DNS error
   			on allow-recursion. [GL #3743]

   6060.	[bug]		Fix a use-after-free bug in dns_zonemgr_releasezone()
   			by detaching from the zone manager outside of the write
   			lock. [GL #3768]

   6059.	[bug]		In some serve stale scenarios, like when following an
   			expired CNAME record, named could return SERVFAIL if the
   			previous request wasn't successful. Consider non-stale
   			data when in serve-stale mode. [GL #3678]

   6058.	[bug]		Prevent named from crashing when "rndc delzone"
   			attempts to delete a zone added by a catalog zone.
   			[GL #3745]

   6053.	[bug]		Fix an ADB quota management bug in resolver. [GL #3752]

   6051.	[bug]		Improve thread safety in the dns_dispatch unit.
   			[GL #3178] [GL #3636]

   6050.	[bug]		Changes to the RPZ response-policy min-update-interval
   			and add-soa options now take effect as expected when
   			named is reconfigured. [GL #3740]

   6049.	[bug]		Exclude ABD hashtables from the ADB memory
   			overmem checks and don't clean ADB names
   			and ADB entries used in the last 10 seconds
   			(ADB_CACHE_MINIMUM). [GL #3739]

   6048.	[bug]		Fix a log message error in dns_catz_update_from_db(),
   			where serials with values of 2^31 or larger were logged
   			incorrectly as negative numbers. [GL #3742]

   6047.	[bug]		Try the next server instead of trying the same
   			server again on an outgoing query timeout.
   			[GL #3637]

   6046.	[bug]		TLS session resumption might lead to handshake
   			failures when client certificates are used for
   			authentication (Mutual TLS).  This has been fixed.
   			[GL #3725]

   6045.	[cleanup]	The list of supported DNSSEC algorithms changed log
   			level from "warning" to "notice" to match named's other
   			startup messages. [GL !7217]

   6044.	[bug]		There was an "RSASHA236" typo in a log message.
   			[GL !7206]

   5830.	[func]		Implement incremental resizing of isc_ht hash tables to
   			perform the rehashing gradually. The catalog zone
   			implementation has been optimized to work with hundreds
   			of thousands of member zones. [GL #3212] [GL #3744]

   To generate a diff of this commit:
   cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/bind918/Makefile
   cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/bind918/PLIST
   cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/bind918/distinfo
   cvs rdiff -u -r1.1 -r0 \
       pkgsrc/net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh
   cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/bind918/patches/patch-lib_isc_siphash.c \
       pkgsrc/net/bind918/patches/patch-lib_isc_time.c \
       pkgsrc/net/bind918/patches/patch-lib_ns_update.c


(spz)
diff -r1.3 -r1.3.2.1 pkgsrc/net/bind918/Makefile
diff -r1.3 -r1.3.2.1 pkgsrc/net/bind918/distinfo
diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/PLIST
diff -r1.1 -r0 pkgsrc/net/bind918/patches/patch-bin_tests_system_keyfromlabel_tests.sh
diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_isc_siphash.c
diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_isc_time.c
diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_ns_update.c

cvs diff -r1.3 -r1.3.2.1 pkgsrc/net/bind918/Makefile (expand / switch to unified diff)

--- pkgsrc/net/bind918/Makefile 2022/12/14 21:44:03 1.3
+++ pkgsrc/net/bind918/Makefile 2023/02/12 19:52:24 1.3.2.1
@@ -1,32 +1,31 @@ @@ -1,32 +1,31 @@
1# $NetBSD: Makefile,v 1.3 2022/12/14 21:44:03 sekiya Exp $ 1# $NetBSD: Makefile,v 1.3.2.1 2023/02/12 19:52:24 spz Exp $
2 2
3DISTNAME= bind-${BIND_VERSION} 3DISTNAME= bind-${BIND_VERSION}
4PKGNAME= ${DISTNAME:S/-P/pl/} 4PKGNAME= ${DISTNAME:S/-P/pl/}
5PKGREVISION= 1 
6CATEGORIES= net 5CATEGORIES= net
7MASTER_SITES= https://downloads.isc.org/isc/bind9/${BIND_VERSION}/ 6MASTER_SITES= https://downloads.isc.org/isc/bind9/${BIND_VERSION}/
8EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
9 8
10MAINTAINER= sekiya@NetBSD.org 9MAINTAINER= sekiya@NetBSD.org
11HOMEPAGE= https://www.isc.org/software/bind/ 10HOMEPAGE= https://www.isc.org/software/bind/
12COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.18 11COMMENT= Berkeley Internet Name Daemon implementation of DNS, version 9.18
13LICENSE= mpl-2.0 12LICENSE= mpl-2.0
14 13
15CONFLICTS+= host-[0-9]* 14CONFLICTS+= host-[0-9]*
16 15
17MAKE_JOBS_SAFE= no 16MAKE_JOBS_SAFE= no
18 17
19BIND_VERSION= 9.18.9 18BIND_VERSION= 9.18.11
20 19
21BUILD_DEFS+= BIND_DIR VARBASE 20BUILD_DEFS+= BIND_DIR VARBASE
22 21
23.include "options.mk" 22.include "options.mk"
24 23
25USE_TOOLS+= aclocal autoconf automake pax perl pkg-config 24USE_TOOLS+= aclocal autoconf automake pax perl pkg-config
26USE_LIBTOOL= yes 25USE_LIBTOOL= yes
27GNU_CONFIGURE= yes 26GNU_CONFIGURE= yes
28CHECK_FILES_SKIP= bin/tests/system/system-test-driver.sh 27CHECK_FILES_SKIP= bin/tests/system/system-test-driver.sh
29MAKE_ENV+= WRKDIR=${WRKDIR} PREFIX=${PREFIX} 28MAKE_ENV+= WRKDIR=${WRKDIR} PREFIX=${PREFIX}
30 29
31.if ${OPSYS} == "Linux" && !exists(/usr/include/sys/capability.h) 30.if ${OPSYS} == "Linux" && !exists(/usr/include/sys/capability.h)
32CONFIGURE_ARGS+= --disable-linux-caps 31CONFIGURE_ARGS+= --disable-linux-caps

cvs diff -r1.3 -r1.3.2.1 pkgsrc/net/bind918/distinfo (expand / switch to unified diff)

--- pkgsrc/net/bind918/distinfo 2022/12/12 22:07:04 1.3
+++ pkgsrc/net/bind918/distinfo 2023/02/12 19:52:24 1.3.2.1
@@ -1,38 +1,37 @@ @@ -1,38 +1,37 @@
1$NetBSD: distinfo,v 1.3 2022/12/12 22:07:04 sekiya Exp $ 1$NetBSD: distinfo,v 1.3.2.1 2023/02/12 19:52:24 spz Exp $
2 2
3BLAKE2s (bind-9.18.9.tar.xz) = 8c3f2dcb57205959f78c02fd32a12d0897050897af9136b58972fde41468ec55 3BLAKE2s (bind-9.18.11.tar.xz) = c4aae1223078ef089a3f35ae15e3ea552383d235b7a9dfe1c0423a958409891f
4SHA512 (bind-9.18.9.tar.xz) = 7d9bca47e29e8634416ab52819d78ce4ec6196c0dcbd9fe95a24687337f71c69b6472cf20bf49ea0ae1751a861944f354f9122acfb01780f51278ad4a3fdd817 4SHA512 (bind-9.18.11.tar.xz) = 1f71560efca3b6886d71861c76d4a11d59c28f0ffed684f040a59dd9c14be594985a3f15e6d610a4d88a40a16a19e259977d4a254e146469323d15587b23f3ad
5Size (bind-9.18.9.tar.xz) = 5281732 bytes 5Size (bind-9.18.11.tar.xz) = 5284184 bytes
6SHA1 (patch-bin_named_main.c) = 4e4a763c478f1fcecb7e65968cf6ca20dacf01f1 6SHA1 (patch-bin_named_main.c) = 4e4a763c478f1fcecb7e65968cf6ca20dacf01f1
7SHA1 (patch-bin_named_os.c) = 5ecb0883076575d8ac5fcad68f9daad6c9be0d0b 7SHA1 (patch-bin_named_os.c) = 5ecb0883076575d8ac5fcad68f9daad6c9be0d0b
8SHA1 (patch-bin_named_server.c) = 6e59d3f637ebb829eec2f76ba7c350fb5cf9be6d 8SHA1 (patch-bin_named_server.c) = 6e59d3f637ebb829eec2f76ba7c350fb5cf9be6d
9SHA1 (patch-bin_tests_system_keyfromlabel_tests.sh) = 63a1516b573adabe6ff2719532fd58bcf3ecd65b 
10SHA1 (patch-config.h.in) = 6072793048cdf590863046355eeffa1d93524c36 9SHA1 (patch-config.h.in) = 6072793048cdf590863046355eeffa1d93524c36
11SHA1 (patch-configure.ac) = a6f10aec356691ca1075262a3e87c809cd3a558a 10SHA1 (patch-configure.ac) = a6f10aec356691ca1075262a3e87c809cd3a558a
12SHA1 (patch-lib_dns_byaddr.c) = 647ddaaaf040233e18d1a87d83bc2bd63d2a20e3 11SHA1 (patch-lib_dns_byaddr.c) = 647ddaaaf040233e18d1a87d83bc2bd63d2a20e3
13SHA1 (patch-lib_dns_gssapi__link.c) = 72296598b0bdd2a57d0f38ecf1775e2898a041c6 12SHA1 (patch-lib_dns_gssapi__link.c) = 72296598b0bdd2a57d0f38ecf1775e2898a041c6
14SHA1 (patch-lib_dns_include_dns_zone.h) = e6dfcd43430538ac2a39b217fcae0d81e4c4d163 13SHA1 (patch-lib_dns_include_dns_zone.h) = e6dfcd43430538ac2a39b217fcae0d81e4c4d163
15SHA1 (patch-lib_dns_lookup.c) = 6c7463aca16abf6bd578aba1733a3217608a39d3 14SHA1 (patch-lib_dns_lookup.c) = 6c7463aca16abf6bd578aba1733a3217608a39d3
16SHA1 (patch-lib_dns_rbtdb.c) = e8d61e1ba613b2a2fdcd3ff077e2e5b6ce2e45b2 15SHA1 (patch-lib_dns_rbtdb.c) = e8d61e1ba613b2a2fdcd3ff077e2e5b6ce2e45b2
17SHA1 (patch-lib_dns_request.c) = 4a9d0409afcf9f989aa9297efb97c578b4863d9c 16SHA1 (patch-lib_dns_request.c) = 4a9d0409afcf9f989aa9297efb97c578b4863d9c
18SHA1 (patch-lib_dns_sdb.c) = ed447ec7a134e620765b25ee36124a19dfd9fab0 17SHA1 (patch-lib_dns_sdb.c) = ed447ec7a134e620765b25ee36124a19dfd9fab0
19SHA1 (patch-lib_dns_sdlz.c) = 4fc15a577c64501c10c144eab147e54686e80309 18SHA1 (patch-lib_dns_sdlz.c) = 4fc15a577c64501c10c144eab147e54686e80309
20SHA1 (patch-lib_dns_validator.c) = 03dd60d4c38be7248d1e07f2c29ddd543b5f7454 19SHA1 (patch-lib_dns_validator.c) = 03dd60d4c38be7248d1e07f2c29ddd543b5f7454
21SHA1 (patch-lib_dns_view.c) = 5b092f0344b92d003f1fe1f28e4cc4c76b2505cf 20SHA1 (patch-lib_dns_view.c) = 5b092f0344b92d003f1fe1f28e4cc4c76b2505cf
22SHA1 (patch-lib_dns_zone.c) = cd7bc1e76caf1d664393efa318786c2b33c000de 21SHA1 (patch-lib_dns_zone.c) = cd7bc1e76caf1d664393efa318786c2b33c000de
23SHA1 (patch-lib_isc_app.c) = 8f9fd079d00d34f0d20e6d9e676446d322f9e0fb 22SHA1 (patch-lib_isc_app.c) = 8f9fd079d00d34f0d20e6d9e676446d322f9e0fb
24SHA1 (patch-lib_isc_include_isc_netmgr.h) = 48ac44c6a9b81e6b442deba6c075653d3691464b 23SHA1 (patch-lib_isc_include_isc_netmgr.h) = 48ac44c6a9b81e6b442deba6c075653d3691464b
25SHA1 (patch-lib_isc_net.c) = 743de2701fa96ef25e5689f40e381628cff641d5 24SHA1 (patch-lib_isc_net.c) = 743de2701fa96ef25e5689f40e381628cff641d5
26SHA1 (patch-lib_isc_netmgr_netmgr-int.h) = d84993edf254605f85421fbdd2fc523255c7316d 25SHA1 (patch-lib_isc_netmgr_netmgr-int.h) = d84993edf254605f85421fbdd2fc523255c7316d
27SHA1 (patch-lib_isc_netmgr_netmgr.c) = 3df1d37061f6ceb37e309a0dc4f782fc35863146 26SHA1 (patch-lib_isc_netmgr_netmgr.c) = 3df1d37061f6ceb37e309a0dc4f782fc35863146
28SHA1 (patch-lib_isc_rwlock.c) = 1d114248ddee20db7a7429afab446f8b2f0dca82 27SHA1 (patch-lib_isc_rwlock.c) = 1d114248ddee20db7a7429afab446f8b2f0dca82
29SHA1 (patch-lib_isc_siphash.c) = 8999deb002e4fdb6b13e6f297298ef73c97042c3 28SHA1 (patch-lib_isc_siphash.c) = 2dd80dde7bd8e869a3cf03c1699665b56eaaf866
30SHA1 (patch-lib_isc_time.c) = 04719dce1ad7328909fd584104b7bc20170b3c5e 29SHA1 (patch-lib_isc_time.c) = 22780fd25d89a0ece46ec1624b3977ca4c46281a
31SHA1 (patch-lib_isc_timer.c) = aea2019bbf3d84cad77af432a2bbdf0da8f2f893 30SHA1 (patch-lib_isc_timer.c) = aea2019bbf3d84cad77af432a2bbdf0da8f2f893
32SHA1 (patch-lib_ns_Makefile.am) = a91e1713185c4366e96bf52ebee38e3b7e35a0c6 31SHA1 (patch-lib_ns_Makefile.am) = a91e1713185c4366e96bf52ebee38e3b7e35a0c6
33SHA1 (patch-lib_ns_client.c) = 4093c82254321e6c6eaa40ea1cf738b3f9bda0bb 32SHA1 (patch-lib_ns_client.c) = 4093c82254321e6c6eaa40ea1cf738b3f9bda0bb
34SHA1 (patch-lib_ns_include_ns_pfilter.h) = cc86752971b4f9f7492283c4ad3ff29bc1bae237 33SHA1 (patch-lib_ns_include_ns_pfilter.h) = cc86752971b4f9f7492283c4ad3ff29bc1bae237
35SHA1 (patch-lib_ns_pfilter.c) = b0345f9b27e2bdd4f9a992cfc23616e027de4988 34SHA1 (patch-lib_ns_pfilter.c) = b0345f9b27e2bdd4f9a992cfc23616e027de4988
36SHA1 (patch-lib_ns_query.c) = d947318dc6a261931928c4bf8b7f48efa9004a38 35SHA1 (patch-lib_ns_query.c) = d947318dc6a261931928c4bf8b7f48efa9004a38
37SHA1 (patch-lib_ns_update.c) = 2fb3457da333143508d28420490cbc1cb69ddb19 36SHA1 (patch-lib_ns_update.c) = 941ca5601904e9b4cc5314148e955f5490a5d071
38SHA1 (patch-lib_ns_xfrout.c) = 79d9e4add58ffd75ea9718f5501f1517e67416e3 37SHA1 (patch-lib_ns_xfrout.c) = 79d9e4add58ffd75ea9718f5501f1517e67416e3

cvs diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/PLIST (expand / switch to unified diff)

--- pkgsrc/net/bind918/PLIST 2022/12/11 01:57:55 1.1
+++ pkgsrc/net/bind918/PLIST 2023/02/12 19:52:24 1.1.2.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.1 2022/12/11 01:57:55 sekiya Exp $ 1@comment $NetBSD: PLIST,v 1.1.2.1 2023/02/12 19:52:24 spz Exp $
2bin/arpaname 2bin/arpaname
3bin/delv 3bin/delv
4bin/dig 4bin/dig
5bin/dnssec-cds 5bin/dnssec-cds
6bin/dnssec-dsfromkey 6bin/dnssec-dsfromkey
7bin/dnssec-importkey 7bin/dnssec-importkey
8bin/dnssec-keyfromlabel 8bin/dnssec-keyfromlabel
9bin/dnssec-keygen 9bin/dnssec-keygen
10bin/dnssec-revoke 10bin/dnssec-revoke
11bin/dnssec-settime 11bin/dnssec-settime
12bin/dnssec-signzone 12bin/dnssec-signzone
13bin/dnssec-verify 13bin/dnssec-verify
14${PLIST.dnstap}bin/dnstap-read 14${PLIST.dnstap}bin/dnstap-read
@@ -243,39 +243,32 @@ include/ns/hooks.h @@ -243,39 +243,32 @@ include/ns/hooks.h
243include/ns/interfacemgr.h 243include/ns/interfacemgr.h
244include/ns/listenlist.h 244include/ns/listenlist.h
245include/ns/log.h 245include/ns/log.h
246include/ns/notify.h 246include/ns/notify.h
247include/ns/query.h 247include/ns/query.h
248include/ns/server.h 248include/ns/server.h
249include/ns/sortlist.h 249include/ns/sortlist.h
250include/ns/stats.h 250include/ns/stats.h
251include/ns/types.h 251include/ns/types.h
252include/ns/update.h 252include/ns/update.h
253include/ns/xfrout.h 253include/ns/xfrout.h
254lib/bind/filter-a.la 254lib/bind/filter-a.la
255lib/bind/filter-aaaa.la 255lib/bind/filter-aaaa.la
256lib/libbind9-9.18.9.so 
257lib/libbind9.la 256lib/libbind9.la
258lib/libdns-9.18.9.so 
259lib/libdns.la 257lib/libdns.la
260lib/libirs-9.18.9.so 
261lib/libirs.la 258lib/libirs.la
262lib/libisc-9.18.9.so 
263lib/libisc.la 259lib/libisc.la
264lib/libisccc-9.18.9.so 
265lib/libisccc.la 260lib/libisccc.la
266lib/libisccfg-9.18.9.so 
267lib/libisccfg.la 261lib/libisccfg.la
268lib/libns-9.18.9.so 
269lib/libns.la 262lib/libns.la
270man/man1/arpaname.1 263man/man1/arpaname.1
271man/man1/delv.1 264man/man1/delv.1
272man/man1/dig.1 265man/man1/dig.1
273man/man1/dnssec-cds.1 266man/man1/dnssec-cds.1
274man/man1/dnssec-dsfromkey.1 267man/man1/dnssec-dsfromkey.1
275man/man1/dnssec-importkey.1 268man/man1/dnssec-importkey.1
276man/man1/dnssec-keyfromlabel.1 269man/man1/dnssec-keyfromlabel.1
277man/man1/dnssec-keygen.1 270man/man1/dnssec-keygen.1
278man/man1/dnssec-revoke.1 271man/man1/dnssec-revoke.1
279man/man1/dnssec-settime.1 272man/man1/dnssec-settime.1
280man/man1/dnssec-signzone.1 273man/man1/dnssec-signzone.1
281man/man1/dnssec-verify.1 274man/man1/dnssec-verify.1

File Deleted: pkgsrc/net/bind918/patches/Attic/patch-bin_tests_system_keyfromlabel_tests.sh

cvs diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_isc_siphash.c (expand / switch to unified diff)

--- pkgsrc/net/bind918/patches/patch-lib_isc_siphash.c 2022/12/11 01:57:55 1.1
+++ pkgsrc/net/bind918/patches/patch-lib_isc_siphash.c 2023/02/12 19:52:24 1.1.2.1
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1$NetBSD: patch-lib_isc_siphash.c,v 1.1 2022/12/11 01:57:55 sekiya Exp $ 1$NetBSD: patch-lib_isc_siphash.c,v 1.1.2.1 2023/02/12 19:52:24 spz Exp $
2 2
3* Take from NetBSD base. 3* Take from NetBSD base.
4 4
5--- lib/isc/siphash.c.orig 2021-09-07 09:37:05.000000000 +0000 5--- lib/isc/siphash.c.orig 2023-01-12 22:21:15.270402532 +0000
6+++ lib/isc/siphash.c 6+++ lib/isc/siphash.c
7@@ -90,8 +90,14 @@ isc_siphash24(const uint8_t *k, const ui 7@@ -93,8 +93,14 @@ isc_siphash24(const uint8_t *k, const ui
8 REQUIRE(k != NULL); 
9 REQUIRE(out != NULL); 8 REQUIRE(out != NULL);
 9 REQUIRE(inlen == 0 || in != NULL);
10  10
11- uint64_t k0 = U8TO64_LE(k); 11- uint64_t k0 = U8TO64_LE(k);
12- uint64_t k1 = U8TO64_LE(k + 8); 12- uint64_t k1 = U8TO64_LE(k + 8);
13+ uint64_t k0; 13+ uint64_t k0;
14+ uint64_t k1; 14+ uint64_t k1;
15+ 15+
16+ memcpy(&k0, k, sizeof(k0)); 16+ memcpy(&k0, k, sizeof(k0));
17+ memcpy(&k1, k + sizeof(k0), sizeof(k1)); 17+ memcpy(&k1, k + sizeof(k0), sizeof(k1));
18+ 18+
19+ k0 = le64toh(k0); 19+ k0 = le64toh(k0);
20+ k1 = le64toh(k1); 20+ k1 = le64toh(k1);
21  21
22 uint64_t v0 = UINT64_C(0x736f6d6570736575) ^ k0; 22 uint64_t v0 = UINT64_C(0x736f6d6570736575) ^ k0;

cvs diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_isc_time.c (expand / switch to unified diff)

--- pkgsrc/net/bind918/patches/patch-lib_isc_time.c 2022/12/11 01:57:55 1.1
+++ pkgsrc/net/bind918/patches/patch-lib_isc_time.c 2023/02/12 19:52:24 1.1.2.1
@@ -1,29 +1,29 @@ @@ -1,29 +1,29 @@
1$NetBSD: patch-lib_isc_time.c,v 1.1 2022/12/11 01:57:55 sekiya Exp $ 1$NetBSD: patch-lib_isc_time.c,v 1.1.2.1 2023/02/12 19:52:24 spz Exp $
2 2
3* More check time_t range. 3* More check time_t range.
4 4
5--- lib/isc/time.c.orig 2020-05-06 09:59:35.000000000 +0000 5--- lib/isc/time.c.orig 2023-01-12 22:21:15.270402532 +0000
6+++ lib/isc/time.c 6+++ lib/isc/time.c
7@@ -285,7 +285,7 @@ isc_time_seconds(const isc_time_t *t) { 7@@ -318,7 +318,7 @@ isc_time_seconds(const isc_time_t *t) {
8  8
9 isc_result_t 9 isc_result_t
10 isc_time_secondsastimet(const isc_time_t *t, time_t *secondsp) { 10 isc_time_secondsastimet(const isc_time_t *t, time_t *secondsp) {
11- time_t seconds; 11- time_t seconds;
12+ time_t seconds, i; 12+ time_t seconds, i;
13  13
14 REQUIRE(t != NULL); 14 REQUIRE(t != NULL);
15 INSIST(t->nanoseconds < NS_PER_S); 15 INSIST(t->nanoseconds < NS_PER_SEC);
16@@ -312,7 +312,18 @@ isc_time_secondsastimet(const isc_time_t 16@@ -345,7 +345,18 @@ isc_time_secondsastimet(const isc_time_t
17 INSIST(sizeof(unsigned int) == sizeof(uint32_t)); 17 INSIST(sizeof(unsigned int) == sizeof(uint32_t));
18 INSIST(sizeof(time_t) >= sizeof(uint32_t)); 18 INSIST(sizeof(time_t) >= sizeof(uint32_t));
19  19
20- if (t->seconds > (~0U >> 1) && seconds <= (time_t)(~0U >> 1)) { 20- if (t->seconds > (~0U >> 1) && seconds <= (time_t)(~0U >> 1)) {
21+ if (sizeof(time_t) == sizeof(uint32_t) && /* Same size. */ 21+ if (sizeof(time_t) == sizeof(uint32_t) && /* Same size. */
22+ (time_t)0.5 != 0.5 && /* Not a floating point type. */ 22+ (time_t)0.5 != 0.5 && /* Not a floating point type. */
23+ (i = (time_t)-1) != 4294967295u && /* Is signed. */ 23+ (i = (time_t)-1) != 4294967295u && /* Is signed. */
24+ (seconds & 24+ (seconds &
25+ (1ULL << (sizeof(time_t) * CHAR_BIT - 1))) != 0ULL) { /* Negative. */ 25+ (1ULL << (sizeof(time_t) * CHAR_BIT - 1))) != 0ULL) { /* Negative. */
26+ /* 26+ /*
27+ * This UNUSED() is here to shut up the IRIX compiler: 27+ * This UNUSED() is here to shut up the IRIX compiler:
28+ * variable "i" was set but never used 28+ * variable "i" was set but never used
29+ * when the value of i *was* used in the third test. 29+ * when the value of i *was* used in the third test.

cvs diff -r1.1 -r1.1.2.1 pkgsrc/net/bind918/patches/patch-lib_ns_update.c (expand / switch to unified diff)

--- pkgsrc/net/bind918/patches/patch-lib_ns_update.c 2022/12/11 01:57:55 1.1
+++ pkgsrc/net/bind918/patches/patch-lib_ns_update.c 2023/02/12 19:52:24 1.1.2.1
@@ -1,47 +1,47 @@ @@ -1,47 +1,47 @@
1$NetBSD: patch-lib_ns_update.c,v 1.1 2022/12/11 01:57:55 sekiya Exp $ 1$NetBSD: patch-lib_ns_update.c,v 1.1.2.1 2023/02/12 19:52:24 spz Exp $
2 2
3* Based on NetBSD, add support for blocklist(blacklist). 3* Based on NetBSD, add support for blocklist(blacklist).
4 4
5--- lib/ns/update.c.orig 2020-12-07 08:16:53.000000000 +0000 5--- lib/ns/update.c.orig 2023-01-12 22:21:15.274402517 +0000
6+++ lib/ns/update.c 6+++ lib/ns/update.c
7@@ -52,6 +52,10 @@ 7@@ -55,6 +55,10 @@
8 #include <ns/stats.h> 8 #include <ns/stats.h>
9 #include <ns/update.h> 9 #include <ns/update.h>
10  10
11+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H) 11+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H)
12+#include <ns/pfilter.h> 12+#include <ns/pfilter.h>
13+#endif 13+#endif
14+ 14+
15 /*! \file 15 /*! \file
16 * \brief 16 * \brief
17 * This module implements dynamic update as in RFC2136. 17 * This module implements dynamic update as in RFC2136.
18@@ -340,6 +344,9 @@ checkqueryacl(ns_client_t *client, dns_a 18@@ -358,6 +362,9 @@ checkqueryacl(ns_client_t *client, dns_a
19  
20 result = ns_client_checkaclsilent(client, NULL, queryacl, true); 
21 if (result != ISC_R_SUCCESS) { 19 if (result != ISC_R_SUCCESS) {
 20 int level = update_possible ? ISC_LOG_ERROR : ISC_LOG_INFO;
 21
22+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H) 22+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H)
23+ pfilter_notify(result, client, "queryacl"); 23+ pfilter_notify(result, client, "queryacl");
24+#endif 24+#endif
25 dns_name_format(zonename, namebuf, sizeof(namebuf)); 25 dns_name_format(zonename, namebuf, sizeof(namebuf));
26 dns_rdataclass_format(client->view->rdclass, classbuf, 26 dns_rdataclass_format(client->view->rdclass, classbuf,
27 sizeof(classbuf)); 27 sizeof(classbuf));
28@@ -352,6 +359,9 @@ checkqueryacl(ns_client_t *client, dns_a 28@@ -367,6 +374,9 @@ checkqueryacl(ns_client_t *client, dns_a
29 "update '%s/%s' denied due to allow-query", 29 "update '%s/%s' denied due to allow-query",
30 namebuf, classbuf); 30 namebuf, classbuf);
31 } else if (updateacl == NULL && ssutable == NULL) { 31 } else if (!update_possible) {
32+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H) 32+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H)
33+ pfilter_notify(result, client, "updateacl"); 33+ pfilter_notify(result, client, "updateacl");
34+#endif 34+#endif
35 dns_name_format(zonename, namebuf, sizeof(namebuf)); 35 dns_name_format(zonename, namebuf, sizeof(namebuf));
36 dns_rdataclass_format(client->view->rdclass, classbuf, 36 dns_rdataclass_format(client->view->rdclass, classbuf,
37 sizeof(classbuf)); 37 sizeof(classbuf));
38@@ -393,6 +403,9 @@ checkupdateacl(ns_client_t *client, dns_ 38@@ -409,6 +419,9 @@ checkupdateacl(ns_client_t *client, dns_
39 msg = "disabled"; 39 msg = "disabled";
40 } else { 40 } else {
41 result = ns_client_checkaclsilent(client, NULL, acl, false); 41 result = ns_client_checkaclsilent(client, NULL, acl, false);
42+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H) 42+#if defined(HAVE_BLACKLIST_H) || defined(HAVE_BLOCKLIST_H)
43+ pfilter_notify(result, client, "updateacl"); 43+ pfilter_notify(result, client, "updateacl");
44+#endif 44+#endif
45 if (result == ISC_R_SUCCESS) { 45 if (result == ISC_R_SUCCESS) {
46 level = ISC_LOG_DEBUG(3); 46 level = ISC_LOG_DEBUG(3);
47 msg = "approved"; 47 msg = "approved";