CVS commit: src/external/bsd/ipf/bin/ipftest

2023-08-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Aug 16 03:33:52 UTC 2023

Modified Files:
src/external/bsd/ipf/bin/ipftest: Makefile

Log Message:
avoid a seems wrong GCC 12 use-after-free problem.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ipf/bin/ipftest/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/ipf/bin/ipftest

2023-08-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Aug 16 03:33:52 UTC 2023

Modified Files:
src/external/bsd/ipf/bin/ipftest: Makefile

Log Message:
avoid a seems wrong GCC 12 use-after-free problem.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ipf/bin/ipftest/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ipf/bin/ipftest/Makefile
diff -u src/external/bsd/ipf/bin/ipftest/Makefile:1.8 src/external/bsd/ipf/bin/ipftest/Makefile:1.9
--- src/external/bsd/ipf/bin/ipftest/Makefile:1.8	Sat Jun  3 09:09:03 2023
+++ src/external/bsd/ipf/bin/ipftest/Makefile	Wed Aug 16 03:33:52 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2023/06/03 09:09:03 lukem Exp $
+#	$NetBSD: Makefile,v 1.9 2023/08/16 03:33:52 mrg Exp $
 
 .include 
 
@@ -111,4 +111,9 @@ COPTS.ipf_y.c+=	-O1
 
 COPTS.fil.c+=	${CC_WNO_STRINGOP_OVERFLOW}
 
+# XXXGCC12 this seems wrong; all paths would end up with ref > 1.
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 12 && ${ACTIVE_CC} == "gcc"
+COPTS.ip_proxy.c+=	-Wno-use-after-free
+.endif
+
 .include 



CVS commit: src/external

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 22:02:36 UTC 2023

Modified Files:
src/external: README

Log Message:
add missing


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/external/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/README
diff -u src/external/README:1.18 src/external/README:1.19
--- src/external/README:1.18	Tue Nov 10 06:00:02 2020
+++ src/external/README	Tue Aug 15 18:02:36 2023
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.18 2020/11/10 11:00:02 gson Exp $
+$NetBSD: README,v 1.19 2023/08/15 22:02:36 christos Exp $
 
 Organization of Sources:
 
@@ -46,6 +46,9 @@ The licenses currently used are:
 
 	atheros		Atheros License.
 
+	broadcom	Broadcom licenses for rpi firmware and bfwm. See
+			*/dist/LICENSE.broadcom*
+
 	bsd		BSD (or equivalent) licensed software, possibly with
 			the "advertising clause".
 			http://www.opensource.org/licenses/bsd-license.php
@@ -76,6 +79,12 @@ The licenses currently used are:
 	intel-public	Intel license permitting redistribution with
 			terms similar to BSD licensed software.
 
+	lgpl2		GNU Lesser General Public License, version 2 (or earlier).
+			https://opensource.org/license/lgpl-2-1/
+
+	lgpl3		GNU Lesser General Public License, version 3 (or earlier).
+			https://opensource.org/license/lgpl-3-0/
+
 	mit		MIT (X11) style license.
 			http://www.opensource.org/licenses/mit-license.php
 
@@ -86,6 +95,9 @@ The licenses currently used are:
 			use on operating systems distributed under the terms
 			of an OSI-approved open source license.
 
+	ofl		SIL Open Font License
+			https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi=OFL
+
 	public-domain	Non-license for code that has been explicitly put
 			into the Public Domain.
 



CVS commit: src/external

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 22:02:36 UTC 2023

Modified Files:
src/external: README

Log Message:
add missing


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/external/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/make/unit-tests

2023-08-15 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Aug 15 21:27:09 UTC 2023

Modified Files:
src/usr.bin/make/unit-tests: cond-op-and.mk cond-op-or.mk

Log Message:
tests/make: show that '||' and '&&' must be preceded by whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/cond-op-and.mk
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/cond-op-or.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/cond-op-and.mk
diff -u src/usr.bin/make/unit-tests/cond-op-and.mk:1.7 src/usr.bin/make/unit-tests/cond-op-and.mk:1.8
--- src/usr.bin/make/unit-tests/cond-op-and.mk:1.7	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/cond-op-and.mk	Tue Aug 15 21:27:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: cond-op-and.mk,v 1.7 2023/06/01 20:56:35 rillig Exp $
+# $NetBSD: cond-op-and.mk,v 1.8 2023/08/15 21:27:09 rillig Exp $
 #
 # Tests for the && operator in .if conditions.
 
@@ -76,5 +76,9 @@ DEF=	defined
 .  error
 .endif
 
-all:
-	@:;
+# The '&&' operator must be preceded by whitespace, otherwise it becomes part
+# of the preceding bare word.  The condition is parsed as '"1&&" != "" && 1'.
+.if 1&& && 1
+.else
+.  error
+.endif

Index: src/usr.bin/make/unit-tests/cond-op-or.mk
diff -u src/usr.bin/make/unit-tests/cond-op-or.mk:1.9 src/usr.bin/make/unit-tests/cond-op-or.mk:1.10
--- src/usr.bin/make/unit-tests/cond-op-or.mk:1.9	Thu Jun  1 20:56:35 2023
+++ src/usr.bin/make/unit-tests/cond-op-or.mk	Tue Aug 15 21:27:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: cond-op-or.mk,v 1.9 2023/06/01 20:56:35 rillig Exp $
+# $NetBSD: cond-op-or.mk,v 1.10 2023/08/15 21:27:09 rillig Exp $
 #
 # Tests for the || operator in .if conditions.
 
@@ -76,5 +76,9 @@ DEF=	defined
 .  error
 .endif
 
-all:
-	@:;
+# The '||' operator must be preceded by whitespace, otherwise it becomes part
+# of the preceding bare word.  The condition is parsed as '"1||" != "" || 0'.
+.if 1|| || 0
+.else
+.  error
+.endif



CVS commit: src/usr.bin/make/unit-tests

2023-08-15 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Tue Aug 15 21:27:09 UTC 2023

Modified Files:
src/usr.bin/make/unit-tests: cond-op-and.mk cond-op-or.mk

Log Message:
tests/make: show that '||' and '&&' must be preceded by whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/cond-op-and.mk
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/make/unit-tests/cond-op-or.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tools/gdb

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 19:56:07 UTC 2023

Modified Files:
src/tools/gdb: Makefile

Log Message:
override the override


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/tools/gdb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gdb/Makefile
diff -u src/tools/gdb/Makefile:1.45 src/tools/gdb/Makefile:1.46
--- src/tools/gdb/Makefile:1.45	Mon Aug 14 18:41:34 2023
+++ src/tools/gdb/Makefile	Tue Aug 15 15:56:07 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.45 2023/08/14 22:41:34 christos Exp $
+#	$NetBSD: Makefile,v 1.46 2023/08/15 19:56:07 christos Exp $
 
 .include 
 
@@ -51,6 +51,9 @@ CXXADDFLAGS+= -D__STDC_FORMAT_MACROS
 CXXADDFLAGS+= -D__STDC_LIMIT_MACROS
 CXXADDFLAGS+= -D__STDC_CONSTANT_MACROS
 HOST_CXXFLAGS+= ${CXXADDFLAGS}
+# Since we are using gmake -e the environment overwrites CPPFLAGS
+# so we overwrite it again here! (see Makefile.gnuhost)
+HOST_CPPFLAGS+= -I${TOOLDIR}/include
 
 NEWCONFIGDIR?=	${.CURDIR}/../..
 MKNATIVE?=	${.CURDIR}/mknative-gdb



CVS commit: src/tools/gdb

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 19:56:07 UTC 2023

Modified Files:
src/tools/gdb: Makefile

Log Message:
override the override


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/tools/gdb/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tools/compat

2023-08-15 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Tue Aug 15 19:13:12 UTC 2023

Modified Files:
src/tools/compat: README

Log Message:
Update build instructions for Solaris 10 and Solaris 11.3 hosts


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/tools/compat/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/compat/README
diff -u src/tools/compat/README:1.25 src/tools/compat/README:1.26
--- src/tools/compat/README:1.25	Mon Aug 14 18:49:45 2023
+++ src/tools/compat/README	Tue Aug 15 19:13:12 2023
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.25 2023/08/14 18:49:45 palle Exp $
+$NetBSD: README,v 1.26 2023/08/15 19:13:12 palle Exp $
 
 Special notes for cross-hosting a NetBSD build on certain platforms.  
 Only those platforms which have been tested to complete a "build.sh" run
@@ -88,7 +88,7 @@ NetBSD (earlier releases)
 Solaris
 ---
 
-(updated instruction for Solaris 11 further below)
+(updated instruction for Solaris 10 and 11 further below)
 
 * Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
   with gcc 3.2 (not yet tested with SUNWspro).
@@ -111,11 +111,25 @@ Solaris
   but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
   the host C and C++ compilers.
 
+
+Solaris 10:
+
+* Solaris 10 1/13 (u11)
+ * POSIX.1-2001, SUSv3 (see standards(7))
+ * Using gcc-5 from opencsw.org
+ * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
+ * Set HOST_CC to /opt/csw/bin/gcc
+ * Set HOST_SH to /usr/bin/bash
+
+
 Solaris 11:
 
 * Solaris 11.3
+ * POSIX.1-2001, SUSv3 (see standards(7))
+ * Using gcc-??
  * Set PATH to /usr/xpg6/bin:/usr/xpg4/bin:/usr/bin
  * Set HOST_CC to /usr/bin/gcc
+ * Set HOST_SH to /usr/bin/bash
 
 * Solaris 11.4 (CBE)
  * POSIX.1-2008, SUSv4 (see standards(7))



CVS commit: src/tools/compat

2023-08-15 Thread Palle Lyckegaard
Module Name:src
Committed By:   palle
Date:   Tue Aug 15 19:13:12 UTC 2023

Modified Files:
src/tools/compat: README

Log Message:
Update build instructions for Solaris 10 and Solaris 11.3 hosts


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/tools/compat/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libc/regex/data/att

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 19:05:41 UTC 2023

Modified Files:
src/tests/lib/libc/regex/data/att: README

Log Message:
Update link. We should also update the data...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/regex/data/att/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/regex/data/att/README
diff -u src/tests/lib/libc/regex/data/att/README:1.1 src/tests/lib/libc/regex/data/att/README:1.2
--- src/tests/lib/libc/regex/data/att/README:1.1	Sun Nov  6 11:40:37 2011
+++ src/tests/lib/libc/regex/data/att/README	Tue Aug 15 15:05:41 2023
@@ -1,4 +1,8 @@
-AT test data from: http://www2.research.att.com/~gsf/testregex/
+AT test data from:
+http://www2.research.att.com/~gsf/testregex/
+
+The above link does not exist anymore; a copy of it is maintained at:
+https://github.com/gburd/testregex
 
 Quoting from the page:
 testregex.c 2004-05-31 is the latest source for the AT Research



CVS commit: src/tests/lib/libc/regex/data/att

2023-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 15 19:05:41 UTC 2023

Modified Files:
src/tests/lib/libc/regex/data/att: README

Log Message:
Update link. We should also update the data...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/regex/data/att/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/doc

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:08:36 UTC 2023

Modified Files:
src/doc [netbsd-9]: CHANGES-9.4

Log Message:
Tickets #1714 and #1715


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.91 -r1.1.2.92 src/doc/CHANGES-9.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/doc

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:08:36 UTC 2023

Modified Files:
src/doc [netbsd-9]: CHANGES-9.4

Log Message:
Tickets #1714 and #1715


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.91 -r1.1.2.92 src/doc/CHANGES-9.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/CHANGES-9.4
diff -u src/doc/CHANGES-9.4:1.1.2.91 src/doc/CHANGES-9.4:1.1.2.92
--- src/doc/CHANGES-9.4:1.1.2.91	Fri Aug 11 12:14:10 2023
+++ src/doc/CHANGES-9.4	Tue Aug 15 10:08:35 2023
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-9.4,v 1.1.2.91 2023/08/11 12:14:10 sborrill Exp $
+# $NetBSD: CHANGES-9.4,v 1.1.2.92 2023/08/15 10:08:35 martin Exp $
 
 A complete list of changes from the NetBSD 9.3 release to the NetBSD 9.4
 release:
@@ -2018,3 +2018,13 @@ tests/libexec/ld.elf_so/t_hash.c		1.1 vi
 	LP64 platforms where long is 64-bit.
 	[riastradh, ticket #1712]
 
+sys/uvm/uvm_fault.c1.234
+
+	uvm: PR 56535: prevent TLB invalidation races during COW resolution.
+	[chs, ticket #1714]
+
+external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile 1.18
+
+	mdnsd(8): switch to use arc4random(3) for randomness
+	[gutteridge, ticket #1715]
+



CVS commit: [netbsd-9] src/external/apache2/mDNSResponder/usr.sbin/mdnsd

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:07:27 UTC 2023

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd [netbsd-9]: Makefile

Log Message:
Pull up following revision(s) (requested by gutteridge in ticket #1715):

external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile: revision 1.18

mdnsd(8): switch to use arc4random(3) for randomness


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.2.1 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
diff -u src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.12 src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.12.2.1
--- src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.12	Sun Nov 18 18:58:44 2018
+++ src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile	Tue Aug 15 10:07:26 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2018/11/18 18:58:44 christos Exp $
+#	$NetBSD: Makefile,v 1.12.2.1 2023/08/15 10:07:26 martin Exp $
 
 PROG=	mdnsd
 
@@ -7,7 +7,7 @@ PROG=	mdnsd
 .PATH:	${DIST}/mDNSPosix ${DIST}/mDNSCore ${DIST}/mDNSShared
 
 CPPFLAGS+=-I${DIST}/mDNSCore -I${DIST}/mDNSShared \
-	-DPROGRAM_NAME=\"mdnsd\" -DHAVE_SIGINFO
+	-DPROGRAM_NAME=\"mdnsd\" -DHAVE_SIGINFO -D_PLATFORM_HAS_STRONG_PRNG_
 #CPPFLAGS+=-DMDNS_DEBUGMSGS=99
 SRCS=	PosixDaemon.c mDNSPosix.c mDNSBSD.c mDNS.c DNSDigest.c uDNS.c \
 	DNSCommon.c uds_daemon.c mDNSDebug.c dnssd_ipc.c GenLinkedList.c \



CVS commit: [netbsd-9] src/external/apache2/mDNSResponder/usr.sbin/mdnsd

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:07:27 UTC 2023

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd [netbsd-9]: Makefile

Log Message:
Pull up following revision(s) (requested by gutteridge in ticket #1715):

external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile: revision 1.18

mdnsd(8): switch to use arc4random(3) for randomness


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.2.1 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-10] src/doc

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:05:47 UTC 2023

Modified Files:
src/doc [netbsd-10]: CHANGES-10.0

Log Message:
Tickets #327 and #328


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.106 -r1.1.2.107 src/doc/CHANGES-10.0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/CHANGES-10.0
diff -u src/doc/CHANGES-10.0:1.1.2.106 src/doc/CHANGES-10.0:1.1.2.107
--- src/doc/CHANGES-10.0:1.1.2.106	Sat Aug 12 12:56:34 2023
+++ src/doc/CHANGES-10.0	Tue Aug 15 10:05:47 2023
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-10.0,v 1.1.2.106 2023/08/12 12:56:34 martin Exp $
+# $NetBSD: CHANGES-10.0,v 1.1.2.107 2023/08/15 10:05:47 martin Exp $
 
 A complete list of changes from the initial NetBSD 10.0 branch on 2022-12-16
 until the 10.0 release:
@@ -11168,3 +11168,13 @@ share/man/man7/signal.71.27,1.28
 	signal(7): PR 57527: clarify quirky SysV-inspired SIGCHLD semantics.
 	[riastradh, ticket #325]
 
+sys/uvm/uvm_fault.c1.234
+
+	uvm: PR 56535: prevent TLB invalidation races during COW resolution.
+	[chs, ticket #327]
+
+external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile 1.18
+
+	mdnsd(8): switch to use arc4random(3) for randomness
+	[gutteridge, ticket #328]
+



CVS commit: [netbsd-10] src/doc

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:05:47 UTC 2023

Modified Files:
src/doc [netbsd-10]: CHANGES-10.0

Log Message:
Tickets #327 and #328


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.106 -r1.1.2.107 src/doc/CHANGES-10.0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-10] src/external/apache2/mDNSResponder/usr.sbin/mdnsd

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:03:51 UTC 2023

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd [netbsd-10]: Makefile

Log Message:
Pull up following revision(s) (requested by gutteridge in ticket #328):

external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile: revision 1.18

mdnsd(8): switch to use arc4random(3) for randomness


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.14.6.1 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile
diff -u src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.14 src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.14.6.1
--- src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile:1.14	Tue Apr 13 06:25:48 2021
+++ src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile	Tue Aug 15 10:03:51 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2021/04/13 06:25:48 mrg Exp $
+#	$NetBSD: Makefile,v 1.14.6.1 2023/08/15 10:03:51 martin Exp $
 
 PROG=	mdnsd
 
@@ -7,7 +7,7 @@ PROG=	mdnsd
 .PATH:	${DIST}/mDNSPosix ${DIST}/mDNSCore ${DIST}/mDNSShared
 
 CPPFLAGS+=-I${DIST}/mDNSCore -I${DIST}/mDNSShared \
-	-DPROGRAM_NAME=\"mdnsd\" -DHAVE_SIGINFO
+	-DPROGRAM_NAME=\"mdnsd\" -DHAVE_SIGINFO -D_PLATFORM_HAS_STRONG_PRNG_
 #CPPFLAGS+=-DMDNS_DEBUGMSGS=99
 SRCS=	PosixDaemon.c mDNSPosix.c mDNSBSD.c mDNS.c DNSDigest.c uDNS.c \
 	DNSCommon.c uds_daemon.c mDNSDebug.c dnssd_ipc.c GenLinkedList.c \



CVS commit: [netbsd-10] src/external/apache2/mDNSResponder/usr.sbin/mdnsd

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 10:03:51 UTC 2023

Modified Files:
src/external/apache2/mDNSResponder/usr.sbin/mdnsd [netbsd-10]: Makefile

Log Message:
Pull up following revision(s) (requested by gutteridge in ticket #328):

external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile: revision 1.18

mdnsd(8): switch to use arc4random(3) for randomness


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.14.6.1 \
src/external/apache2/mDNSResponder/usr.sbin/mdnsd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-9] src/sys/uvm

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 09:46:23 UTC 2023

Modified Files:
src/sys/uvm [netbsd-9]: uvm_fault.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #1714):

sys/uvm/uvm_fault.c: revision 1.234

uvm: prevent TLB invalidation races during COW resolution

When a thread takes a page fault which results in COW resolution,
other threads in the same process can be concurrently accessing that
same mapping on other CPUs.  When the faulting thread updates the pmap
entry at the end of COW processing, the resulting TLB invalidations to
other CPUs are not done atomically, so another thread can write to the
new writable page and then a third thread might still read from the
old read-only page, resulting in inconsistent views of the page by the
latter two threads.  Fix this by removing the pmap entry entirely for
the original page before we install the new pmap entry for the new
page, so that the new page can only be modified after the old page is
no longer accessible.

This fixes PR 56535 as well as the netbsd versions of problems
described in various bug trackers:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225584
https://reviews.freebsd.org/D14347
https://github.com/golang/go/issues/34988


To generate a diff of this commit:
cvs rdiff -u -r1.206.2.2 -r1.206.2.3 src/sys/uvm/uvm_fault.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_fault.c
diff -u src/sys/uvm/uvm_fault.c:1.206.2.2 src/sys/uvm/uvm_fault.c:1.206.2.3
--- src/sys/uvm/uvm_fault.c:1.206.2.2	Sun Mar  8 11:01:22 2020
+++ src/sys/uvm/uvm_fault.c	Tue Aug 15 09:46:23 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_fault.c,v 1.206.2.2 2020/03/08 11:01:22 martin Exp $	*/
+/*	$NetBSD: uvm_fault.c,v 1.206.2.3 2023/08/15 09:46:23 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.206.2.2 2020/03/08 11:01:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.206.2.3 2023/08/15 09:46:23 martin Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -639,8 +639,17 @@ uvmfault_promote(struct uvm_faultinfo *u
 		goto done;
 	}
 
-	/* copy page [pg now dirty] */
+	/*
+	 * copy the page [pg now dirty]
+	 *
+	 * Remove the pmap entry now for the old page at this address
+	 * so that no thread can modify the new page while any thread
+	 * might still see the old page.
+	 */
 	if (opg) {
+		pmap_remove(vm_map_pmap(ufi->orig_map), ufi->orig_rvaddr,
+			 ufi->orig_rvaddr + PAGE_SIZE);
+		pmap_update(vm_map_pmap(ufi->orig_map));
 		uvm_pagecopy(opg, pg);
 	}
 



CVS commit: [netbsd-9] src/sys/uvm

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 09:46:23 UTC 2023

Modified Files:
src/sys/uvm [netbsd-9]: uvm_fault.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #1714):

sys/uvm/uvm_fault.c: revision 1.234

uvm: prevent TLB invalidation races during COW resolution

When a thread takes a page fault which results in COW resolution,
other threads in the same process can be concurrently accessing that
same mapping on other CPUs.  When the faulting thread updates the pmap
entry at the end of COW processing, the resulting TLB invalidations to
other CPUs are not done atomically, so another thread can write to the
new writable page and then a third thread might still read from the
old read-only page, resulting in inconsistent views of the page by the
latter two threads.  Fix this by removing the pmap entry entirely for
the original page before we install the new pmap entry for the new
page, so that the new page can only be modified after the old page is
no longer accessible.

This fixes PR 56535 as well as the netbsd versions of problems
described in various bug trackers:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225584
https://reviews.freebsd.org/D14347
https://github.com/golang/go/issues/34988


To generate a diff of this commit:
cvs rdiff -u -r1.206.2.2 -r1.206.2.3 src/sys/uvm/uvm_fault.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-10] src/sys/uvm

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 09:44:09 UTC 2023

Modified Files:
src/sys/uvm [netbsd-10]: uvm_fault.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #327):

sys/uvm/uvm_fault.c: revision 1.234

uvm: prevent TLB invalidation races during COW resolution

When a thread takes a page fault which results in COW resolution,
other threads in the same process can be concurrently accessing that
same mapping on other CPUs.  When the faulting thread updates the pmap
entry at the end of COW processing, the resulting TLB invalidations to
other CPUs are not done atomically, so another thread can write to the
new writable page and then a third thread might still read from the
old read-only page, resulting in inconsistent views of the page by the
latter two threads.  Fix this by removing the pmap entry entirely for
the original page before we install the new pmap entry for the new
page, so that the new page can only be modified after the old page is
no longer accessible.

This fixes PR 56535 as well as the netbsd versions of problems
described in various bug trackers:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225584
https://reviews.freebsd.org/D14347
https://github.com/golang/go/issues/34988


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.231.2.1 src/sys/uvm/uvm_fault.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_fault.c
diff -u src/sys/uvm/uvm_fault.c:1.231 src/sys/uvm/uvm_fault.c:1.231.2.1
--- src/sys/uvm/uvm_fault.c:1.231	Wed Oct 26 23:27:32 2022
+++ src/sys/uvm/uvm_fault.c	Tue Aug 15 09:44:09 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_fault.c,v 1.231 2022/10/26 23:27:32 riastradh Exp $	*/
+/*	$NetBSD: uvm_fault.c,v 1.231.2.1 2023/08/15 09:44:09 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.231 2022/10/26 23:27:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.231.2.1 2023/08/15 09:44:09 martin Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -633,8 +633,17 @@ uvmfault_promote(struct uvm_faultinfo *u
 		goto done;
 	}
 
-	/* copy page [pg now dirty] */
+	/*
+	 * copy the page [pg now dirty]
+	 *
+	 * Remove the pmap entry now for the old page at this address
+	 * so that no thread can modify the new page while any thread
+	 * might still see the old page.
+	 */
 	if (opg) {
+		pmap_remove(vm_map_pmap(ufi->orig_map), ufi->orig_rvaddr,
+			 ufi->orig_rvaddr + PAGE_SIZE);
+		pmap_update(vm_map_pmap(ufi->orig_map));
 		uvm_pagecopy(opg, pg);
 	}
 	KASSERT(uvm_pagegetdirty(pg) == UVM_PAGE_STATUS_DIRTY);



CVS commit: src/external/gpl3/gdb/lib

2023-08-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Aug 15 09:44:15 UTC 2023

Modified Files:
src/external/gpl3/gdb/lib/libctf/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libreadline/arch/aarch64eb: defs.mk

Log Message:
gdb: mknative again for aarch64{,eb} for s/nbsd/netbsd/ changes

Also for ia64, riscv64, sh3e{bl}, and sparc for sure, but
nothing changed.

XXX
mknative adds something like

-I/usr/src/tools/gdb/obj.machine-arch/.native/include

to include path. This should be dropped...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/defs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libiberty/arch/aarch64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libreadline/arch/aarch64eb/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h
diff -u src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h:1.1 src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h:1.2
--- src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h:1.1	Sun Dec  6 05:23:04 2020
+++ src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h	Tue Aug 15 09:44:14 2023
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.14 2020/09/24 14:53:17 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.16 2023/07/31 17:09:59 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* config.h.  Generated from config.h.in by configure.  */

Index: src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk
diff -u src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk:1.6 src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk:1.7
--- src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk:1.6	Wed Aug  9 21:09:08 2023
+++ src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk	Tue Aug 15 09:44:14 2023
@@ -3,5 +3,5 @@
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
 G_INTERNAL_CFLAGS=  -I. -I${GNUHOSTDIST}/gdb -I${GNUHOSTDIST}/gdb/config -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I${GNUHOSTDIST}/gdb/../include/opcode -I../bfd -I${GNUHOSTDIST}/gdb/../bfd -I${GNUHOSTDIST}/gdb/../include -I${GNUHOSTDIST}/gdb/../readline/readline/.. -I${GNUHOSTDIST}/gdb/../zlib  -I../libdecnumber -I${GNUHOSTDIST}/gdb/../libdecnumber -I./../intl -I${GNUHOSTDIST}/gdb/../gnulib/import -I../gnulib/import -I${GNUHOSTDIST}/gdb/.. -I.. -I${GNUHOSTDIST}/gdb/../libbacktrace/ -I../libbacktrace/  -DTUI=1 -I/usr/src/tools/gdb/obj.evbarm-aarch64/.native/include   -I${GNUHOSTDIST}/gdb/.. -pthread  -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=3 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredund
 ant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral 
-G_LIBGDB_OBS=aarch32-tdep.o aarch64-nbsd-nat.o aarch64-nbsd-tdep.o aarch64-ravenscar-thread.o aarch64-tdep.o ada-exp.o ada-lang.o ada-tasks.o ada-typeprint.o ada-valprint.o ada-varobj.o addrmap.o agent.o alloc.o annotate.o arch-utils.o aarch32.o aarch64-insn.o aarch64.o async-event.o auto-load.o auxv.o ax-gdb.o ax-general.o bcache.o bfd-target.o block.o blockframe.o break-catch-exec.o break-catch-fork.o break-catch-load.o break-catch-sig.o break-catch-syscall.o break-catch-throw.o breakpoint.o bsd-kvm.o bt-utils.o btrace.o build-id.o buildsym-legacy.o buildsym.o c-exp.o c-lang.o c-typeprint.o c-valprint.o c-varobj.o charset.o cli-out.o cli-cmds.o cli-decode.o cli-dump.o cli-interp.o cli-logging.o cli-option.o cli-script.o cli-setshow.o cli-style.o cli-utils.o coff-pe-read.o coffread.o compile-c-support.o compile-c-symbols.o compile-c-types.o compile-cplus-symbols.o compile-cplus-types.o compile-loc2c.o compile-object-load.o compile-object-run.o compile.o complaints.o completer.o cop
 ying.o corefile.o corelow.o cp-abi.o cp-name-parser.o cp-namespace.o cp-support.o cp-valprint.o ctfread.o d-exp.o d-lang.o d-namespace.o d-valprint.o dbxread.o dcache.o debug.o debuginfod-support.o dictionary.o disasm.o displaced-stepping.o dtrace-probe.o dummy-frame.o abbrev-cache.o abbrev.o attribute.o comp-unit-head.o cooked-index.o cu.o dwz.o expr.o 

CVS commit: src/external/gpl3/gdb/lib

2023-08-15 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Aug 15 09:44:15 UTC 2023

Modified Files:
src/external/gpl3/gdb/lib/libctf/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libgdb/arch/aarch64: defs.mk
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb: defs.mk
src/external/gpl3/gdb/lib/libiberty/arch/aarch64: config.h
src/external/gpl3/gdb/lib/libreadline/arch/aarch64eb: defs.mk

Log Message:
gdb: mknative again for aarch64{,eb} for s/nbsd/netbsd/ changes

Also for ia64, riscv64, sh3e{bl}, and sparc for sure, but
nothing changed.

XXX
mknative adds something like

-I/usr/src/tools/gdb/obj.machine-arch/.native/include

to include path. This should be dropped...


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gdb/lib/libctf/arch/aarch64/config.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64/defs.mk
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gdb/lib/libgdb/arch/aarch64eb/defs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libiberty/arch/aarch64/config.h
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gdb/lib/libreadline/arch/aarch64eb/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-10] src/sys/uvm

2023-08-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Aug 15 09:44:09 UTC 2023

Modified Files:
src/sys/uvm [netbsd-10]: uvm_fault.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #327):

sys/uvm/uvm_fault.c: revision 1.234

uvm: prevent TLB invalidation races during COW resolution

When a thread takes a page fault which results in COW resolution,
other threads in the same process can be concurrently accessing that
same mapping on other CPUs.  When the faulting thread updates the pmap
entry at the end of COW processing, the resulting TLB invalidations to
other CPUs are not done atomically, so another thread can write to the
new writable page and then a third thread might still read from the
old read-only page, resulting in inconsistent views of the page by the
latter two threads.  Fix this by removing the pmap entry entirely for
the original page before we install the new pmap entry for the new
page, so that the new page can only be modified after the old page is
no longer accessible.

This fixes PR 56535 as well as the netbsd versions of problems
described in various bug trackers:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225584
https://reviews.freebsd.org/D14347
https://github.com/golang/go/issues/34988


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.231.2.1 src/sys/uvm/uvm_fault.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.