Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 04:53, matthew green wrote:

TLDR; libarchive has feature parity with NetBSD pax.


i don't know how you can make this claim.  are you simply
ignoring that others have a problem you haven't seen?


How can you make this claim?
Are you ignoring my very simple request that NetBSD tar should be able 
to extract modern archives?


I asked this simple question internally:
"Why does this archive give error on extraction using NetBSD?"

and lo the answer was
"Our tar is too old and not maintained. Does libarchive work?"

And verily I answered
"Yes! It does work? Can we fix the standard tar?"

"N" cameth the answer.

So, I asked the simple question ..
"Can we change the tar from pax to libarchive?"

And verily no-one had any reason to dispute this . until now.


people's upgrades are breaking now in ways they never have
before.  that's not feature parity by a long shot.

instead of ignoring the real issues, perhaps you could
argue that bsdtar should actually match the features of
pax-as-tar, and then we can all benefit from the change.

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.

we can do better.  i like christos' patch.  there's some
nuance with the symlink vs security issue, but there is
only clear additional failure cases with the unlink vs
rename issue.


Please do not be blind to my issues either.

From the conversations internally it's basically revert to pax and fuck 
modern archives or add a warning note to upgraders that chroot symlinks 
wont work on upgrading.


I myself have been bitten by this on my ERLITE router.
Real men have backups!
Actually I didn't (lesson learned here) and rc.d/nsd and unbound refused 
to copy over  so I was able to restore my configs from the chroots.

So here, our rc.d is A WIN FOR UPGRADERS!

Can we not add a note to check links in etc?

Roy


CVS commit: src/sys/arch/arm/imx/fdt

2019-11-13 Thread Kenichi Hashimoto
Module Name:src
Committed By:   hkenken
Date:   Thu Nov 14 06:00:16 UTC 2019

Modified Files:
src/sys/arch/arm/imx/fdt: if_enet_imx.c

Log Message:
Fixed bug.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/imx/fdt/if_enet_imx.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/arch/arm/imx/fdt/if_enet_imx.c
diff -u src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.7 src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.8
--- src/sys/arch/arm/imx/fdt/if_enet_imx.c:1.7	Wed Nov 13 07:56:10 2019
+++ src/sys/arch/arm/imx/fdt/if_enet_imx.c	Thu Nov 14 06:00:16 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_enet_imx.c,v 1.7 2019/11/13 07:56:10 hkenken Exp $	*/
+/*	$NetBSD: if_enet_imx.c,v 1.8 2019/11/14 06:00:16 hkenken Exp $	*/
 /*-
  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
  * Written by Hashimoto Kenichi for Genetec Corporation.
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.7 2019/11/13 07:56:10 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.8 2019/11/14 06:00:16 hkenken Exp $");
 
 #include "opt_fdt.h"
 
@@ -210,7 +210,7 @@ enet_phy_reset(struct enet_fdt_softc *sc
 	fdtbus_gpio_write(sc->sc_pin_reset, 0);
 
 	/* Post delay */
-	if (!of_getprop_uint32(phandle, "phy-reset-post-delay", ))
+	if (of_getprop_uint32(phandle, "phy-reset-post-delay", ))
 		msec = 0;
 
 	delay(msec * 1000);



CVS commit: src/sys/arch/arm/imx/fdt

2019-11-13 Thread Kenichi Hashimoto
Module Name:src
Committed By:   hkenken
Date:   Thu Nov 14 06:00:16 UTC 2019

Modified Files:
src/sys/arch/arm/imx/fdt: if_enet_imx.c

Log Message:
Fixed bug.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/imx/fdt/if_enet_imx.c

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



Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 05:47, Martin Husemann wrote:

On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.


Me neither, especially as we now effectively have different command line
args passed from sysinst to tar depending on the tar invocation (and this
is all hard coded). I'll have to make it a define in sysinst depending
on the seleted tar variant :-/.


Just for the record, I don't really care about different cmd line args, 
symlinks and security involved.


My expectation is that a modern NetBSD tar can extract a modern tar 
archive from other sources.


If it cannot do this we have failed.

Roy


Re: CVS commit: src/share/mk

2019-11-13 Thread Martin Husemann
On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:
> i'm not happy about this change.  i wish that bsdtar was
> fixed to not be unfriendly, because it mostly is a better
> implementation.  just these edge cases are rather ..
> problematic yet these issues are being ignored or
> rejected as being irrelevant.

Me neither, especially as we now effectively have different command line
args passed from sysinst to tar depending on the tar invocation (and this
is all hard coded). I'll have to make it a define in sysinst depending
on the seleted tar variant :-/.

Martin


re: CVS commit: src/share/mk

2019-11-13 Thread matthew green
> TLDR; libarchive has feature parity with NetBSD pax.

i don't know how you can make this claim.  are you simply
ignoring that others have a problem you haven't seen?

people's upgrades are breaking now in ways they never have
before.  that's not feature parity by a long shot.

instead of ignoring the real issues, perhaps you could
argue that bsdtar should actually match the features of
pax-as-tar, and then we can all benefit from the change.

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.

we can do better.  i like christos' patch.  there's some
nuance with the symlink vs security issue, but there is
only clear additional failure cases with the unlink vs
rename issue.


.mrg.


Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 05:11, Kamil Rytarowski wrote:
> On 14.11.2019 04:55, Roy Marples wrote:
>> On 14/11/2019 02:40, Kamil Rytarowski wrote:
>>> On 14.11.2019 03:34, Roy Marples wrote:
 On 13/11/2019 22:32, Joerg Sonnenberger wrote:
> Module Name:    src
> Committed By:    joerg
> Date:    Wed Nov 13 22:32:16 UTC 2019
>
> Modified Files:
>  src/share/mk: bsd.own.mk
>
> Log Message:
> Restore pax-as-tar.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk

 And so we are doomed that we cannot open more modern archives with the
 base system tar  :/
>>>
>>> Nothing is determined here to be doomed.
>>>
>>> Michal prepared a summary of TAR features in his write up:
>>>
>>> https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html
>>
>> TLDR; libarchive has feature parity with NetBSD pax.
>> So why the peanut gallery complaints or is this write missing something
>> or I've missed something.
>>
>> I've had two recent archives that failed to open with NetBSD pax as tar
>> and the internal consensous was to use libarchive instead because NetBSD
>> pax wasn't maintained and thus would never support these.
>>
>> So, to re-iterate, am I doomed never to open these archives w NetBSD
>> base OS or do you have some magic wand of +4 solving Roy's problems I've
>> not seen yet?
>>
>> Roy
> 
> Please file a PR and/or use gtar/bsdtar from pkgsrc as a fallback.
> 

Another fallback option is to set MKBSDTAR=yes when building base OS.



signature.asc
Description: OpenPGP digital signature


CVS commit: src/sys/net

2019-11-13 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 14 04:14:30 UTC 2019

Modified Files:
src/sys/net: if_loop.c

Log Message:
 Fix comment.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/net/if_loop.c

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



CVS commit: src/sys/net

2019-11-13 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Nov 14 04:14:30 UTC 2019

Modified Files:
src/sys/net: if_loop.c

Log Message:
 Fix comment.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/net/if_loop.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/net/if_loop.c
diff -u src/sys/net/if_loop.c:1.108 src/sys/net/if_loop.c:1.109
--- src/sys/net/if_loop.c:1.108	Mon Nov 11 08:12:35 2019
+++ src/sys/net/if_loop.c	Thu Nov 14 04:14:30 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_loop.c,v 1.108 2019/11/11 08:12:35 msaitoh Exp $	*/
+/*	$NetBSD: if_loop.c,v 1.109 2019/11/14 04:14:30 msaitoh Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.108 2019/11/11 08:12:35 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.109 2019/11/14 04:14:30 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -341,7 +341,7 @@ looutput(struct ifnet *ifp, struct mbuf 
 			m->m_pkthdr.csum_flags = 0;
 		} else {
 			/*
-			 * Do nothing. Pass M_CSUM_IPv4 and M_CSUM_UDPv4 as
+			 * Do nothing. Pass M_CSUM_UDPv6 as
 			 * they are to tell those are calculated and good.
 			 */
 		}



Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 04:55, Roy Marples wrote:
> On 14/11/2019 02:40, Kamil Rytarowski wrote:
>> On 14.11.2019 03:34, Roy Marples wrote:
>>> On 13/11/2019 22:32, Joerg Sonnenberger wrote:
 Module Name:    src
 Committed By:    joerg
 Date:    Wed Nov 13 22:32:16 UTC 2019

 Modified Files:
  src/share/mk: bsd.own.mk

 Log Message:
 Restore pax-as-tar.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk
>>>
>>> And so we are doomed that we cannot open more modern archives with the
>>> base system tar  :/
>>
>> Nothing is determined here to be doomed.
>>
>> Michal prepared a summary of TAR features in his write up:
>>
>> https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html
> 
> TLDR; libarchive has feature parity with NetBSD pax.
> So why the peanut gallery complaints or is this write missing something
> or I've missed something.
> 
> I've had two recent archives that failed to open with NetBSD pax as tar
> and the internal consensous was to use libarchive instead because NetBSD
> pax wasn't maintained and thus would never support these.
> 
> So, to re-iterate, am I doomed never to open these archives w NetBSD
> base OS or do you have some magic wand of +4 solving Roy's problems I've
> not seen yet?
> 
> Roy

Please file a PR and/or use gtar/bsdtar from pkgsrc as a fallback.



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 02:40, Kamil Rytarowski wrote:

On 14.11.2019 03:34, Roy Marples wrote:

On 13/11/2019 22:32, Joerg Sonnenberger wrote:

Module Name:    src
Committed By:    joerg
Date:    Wed Nov 13 22:32:16 UTC 2019

Modified Files:
 src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk


And so we are doomed that we cannot open more modern archives with the
base system tar  :/


Nothing is determined here to be doomed.

Michal prepared a summary of TAR features in his write up:

https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html


TLDR; libarchive has feature parity with NetBSD pax.
So why the peanut gallery complaints or is this write missing something 
or I've missed something.


I've had two recent archives that failed to open with NetBSD pax as tar 
and the internal consensous was to use libarchive instead because NetBSD 
pax wasn't maintained and thus would never support these.


So, to re-iterate, am I doomed never to open these archives w NetBSD 
base OS or do you have some magic wand of +4 solving Roy's problems I've 
not seen yet?


Roy


CVS commit: src/sys/netipsec

2019-11-13 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Thu Nov 14 03:17:08 UTC 2019

Modified Files:
src/sys/netipsec: key.c

Log Message:
Reduce load for IKE negotiations when the system has many IPv6 addresses.

e.g. the system has many vlan(4), gif(4) or ipsecif(4) with link local address.


To generate a diff of this commit:
cvs rdiff -u -r1.268 -r1.269 src/sys/netipsec/key.c

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



CVS commit: src/sys/netipsec

2019-11-13 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Thu Nov 14 03:17:08 UTC 2019

Modified Files:
src/sys/netipsec: key.c

Log Message:
Reduce load for IKE negotiations when the system has many IPv6 addresses.

e.g. the system has many vlan(4), gif(4) or ipsecif(4) with link local address.


To generate a diff of this commit:
cvs rdiff -u -r1.268 -r1.269 src/sys/netipsec/key.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/netipsec/key.c
diff -u src/sys/netipsec/key.c:1.268 src/sys/netipsec/key.c:1.269
--- src/sys/netipsec/key.c:1.268	Tue Nov 12 05:13:29 2019
+++ src/sys/netipsec/key.c	Thu Nov 14 03:17:08 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: key.c,v 1.268 2019/11/12 05:13:29 knakahara Exp $	*/
+/*	$NetBSD: key.c,v 1.269 2019/11/14 03:17:08 knakahara Exp $	*/
 /*	$FreeBSD: key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $	*/
 /*	$KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $	*/
 
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.268 2019/11/12 05:13:29 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.269 2019/11/14 03:17:08 knakahara Exp $");
 
 /*
  * This code is referred to RFC 2367
@@ -4502,30 +4502,34 @@ key_ismyaddr6(const struct sockaddr_in6 
 	bound = curlwp_bind();
 	s = pserialize_read_enter();
 	IN6_ADDRLIST_READER_FOREACH(ia) {
-		bool ingroup;
-
 		if (key_sockaddr_match((const struct sockaddr *),
 		(const struct sockaddr *)>ia_addr, 0)) {
 			pserialize_read_exit(s);
 			goto ours;
 		}
-		ia6_acquire(ia, );
-		pserialize_read_exit(s);
 
-		/*
-		 * XXX Multicast
-		 * XXX why do we care about multlicast here while we don't care
-		 * about IPv4 multicast??
-		 * XXX scope
-		 */
-		ingroup = in6_multi_group(>sin6_addr, ia->ia_ifp);
-		if (ingroup) {
+		if (IN6_IS_ADDR_MULTICAST(>sin6_addr)) {
+			bool ingroup;
+
+			ia6_acquire(ia, );
+			pserialize_read_exit(s);
+
+			/*
+			 * XXX Multicast
+			 * XXX why do we care about multlicast here while we don't care
+			 * about IPv4 multicast??
+			 * XXX scope
+			 */
+			ingroup = in6_multi_group(>sin6_addr, ia->ia_ifp);
+			if (ingroup) {
+ia6_release(ia, );
+goto ours;
+			}
+
+			s = pserialize_read_enter();
 			ia6_release(ia, );
-			goto ours;
 		}
 
-		s = pserialize_read_enter();
-		ia6_release(ia, );
 	}
 	pserialize_read_exit(s);
 



Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 03:34, Roy Marples wrote:
> On 13/11/2019 22:32, Joerg Sonnenberger wrote:
>> Module Name:    src
>> Committed By:    joerg
>> Date:    Wed Nov 13 22:32:16 UTC 2019
>>
>> Modified Files:
>> src/share/mk: bsd.own.mk
>>
>> Log Message:
>> Restore pax-as-tar.
>>
>>
>> To generate a diff of this commit:
>> cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk
> 
> And so we are doomed that we cannot open more modern archives with the
> base system tar  :/

Nothing is determined here to be doomed.

Michal prepared a summary of TAR features in his write up:

https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 13/11/2019 22:32, Joerg Sonnenberger wrote:

Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk


And so we are doomed that we cannot open more modern archives with the 
base system tar  :/


CVS commit: src/distrib/sets/lists/xdebug

2019-11-13 Thread Yuuki Enomoto
Module Name:src
Committed By:   uki
Date:   Thu Nov 14 02:27:18 UTC 2019

Modified Files:
src/distrib/sets/lists/xdebug: mi

Log Message:
Fix uncorrect package name in xdebug mi


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/distrib/sets/lists/xdebug/mi

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

Modified files:

Index: src/distrib/sets/lists/xdebug/mi
diff -u src/distrib/sets/lists/xdebug/mi:1.34 src/distrib/sets/lists/xdebug/mi:1.35
--- src/distrib/sets/lists/xdebug/mi:1.34	Sun Nov  3 01:35:47 2019
+++ src/distrib/sets/lists/xdebug/mi	Thu Nov 14 02:27:18 2019
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.34 2019/11/03 01:35:47 uki Exp $
+# $NetBSD: mi,v 1.35 2019/11/14 02:27:18 uki Exp $
 ./etc/mtree/set.xdebug	comp-sys-root
 ./usr/X11R7/lib		base-x11-root	xorg,debuglib,compatx11dir
 ./usr/X11R7/lib/libEGL_g.axdebug-libEGL-debuglib	xorg,debuglib,compatx11file,xorg_glamor
@@ -14,7 +14,7 @@
 ./usr/X11R7/lib/libXRes_g.axdebug-libXres-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libXTrap_g.axdebug-libXTrap-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libXau_g.axdebug-libXau-debuglib	xorg,debuglib,compatx11file
-./usr/X11R7/lib/libXaw6_g.axdebug-unknown-debuglib	xorg,debuglib,compatx11file
+./usr/X11R7/lib/libXaw6_g.axdebug-libXaw6-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libXaw7_g.axdebug-libXaw-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libXaw8_g.axdebug-obsolete	xorg,obsolete
 ./usr/X11R7/lib/libXcomposite_g.a			xdebug-libXcomposite-debuglib	xorg,debuglib,compatx11file
@@ -65,7 +65,7 @@
 ./usr/X11R7/lib/libmp_g.axdebug-obsolete	xorg,obsolete
 ./usr/X11R7/lib/libpciaccess_g.a			xdebug-libpciaccess-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libpixman-1_g.axdebug-pixman-debuglib	xorg,debuglib,compatx11file
-./usr/X11R7/lib/libpthread-stubs_g.a			xdebug-unknown-debuglib	xorg,debuglib,compatx11file
+./usr/X11R7/lib/libpthread-stubs_g.a			xdebug-libpthread-stubs-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libre_g.axdebug-obsolete	xorg,obsolete
 ./usr/X11R7/lib/libxcb-atom_g.axdebug-xcb-util-debuglib	xorg,debuglib,compatx11file
 ./usr/X11R7/lib/libxcb-aux_g.axdebug-xcb-util-debuglib	xorg,debuglib,compatx11file



CVS commit: src/distrib/sets/lists/xdebug

2019-11-13 Thread Yuuki Enomoto
Module Name:src
Committed By:   uki
Date:   Thu Nov 14 02:27:18 UTC 2019

Modified Files:
src/distrib/sets/lists/xdebug: mi

Log Message:
Fix uncorrect package name in xdebug mi


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/distrib/sets/lists/xdebug/mi

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



CVS commit: [LLVM] src/external/bsd/llvm/dist/clang

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:34:11 UTC 2019

Removed Files:
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with space [LLVM]:
test.h test.h.result test1.m.in test1.m.in.result test2.m.in
test2.m.in.result

src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program 
Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/bin [LLVM]:
.keep

src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program 
Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/include [LLVM]:
.keep

src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program 
Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib [LLVM]:
.keep

src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program 
Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/nvvm/libdevice [LLVM]:
libdevice.compute_30.10.bc libdevice.compute_35.10.bc
src/external/bsd/llvm/dist/clang/www/demo [LLVM]:
what is this directory.txt

Log Message:
Mark old LLVM instance as dead.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ space/test.h \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ 
space/test.h.result \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ space/test1.m.in \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ 
space/test1.m.in.result \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ space/test2.m.in \
src/external/bsd/llvm/dist/clang/test/ARCMT/Inputs/with\ 
space/test2.m.in.result
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program\ 
Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v8.0/bin/.keep
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program\ 
Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v8.0/include/.keep
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program\ 
Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v8.0/lib/.keep
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program\ 
Files/NVIDIA\ GPU\ Computing\ 
Toolkit/CUDA/v8.0/nvvm/libdevice/libdevice.compute_30.10.bc \
src/external/bsd/llvm/dist/clang/test/Driver/Inputs/CUDA-windows/Program\ 
Files/NVIDIA\ GPU\ Computing\ 
Toolkit/CUDA/v8.0/nvvm/libdevice/libdevice.compute_35.10.bc
cvs rdiff -u -r1.1.1.1 -r0 \
src/external/bsd/llvm/dist/clang/www/demo/what\ is\ this\ directory.txt

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



CVS commit: src/share/mk

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1159 src/share/mk/bsd.own.mk:1.1160
--- src/share/mk/bsd.own.mk:1.1159	Thu Oct 31 06:43:19 2019
+++ src/share/mk/bsd.own.mk	Wed Nov 13 22:32:16 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1159 2019/10/31 06:43:19 martin Exp $
+#	$NetBSD: bsd.own.mk,v 1.1160 2019/11/13 22:32:16 joerg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1073,7 +1073,6 @@ MKSTATICPIE?=	no
 _MKVARS.yes= \
 	MKATF \
 	MKBINUTILS \
-	MKBSDTAR \
 	MKCOMPLEX MKCVS MKCXX \
 	MKDOC MKDTC \
 	MKDYNAMICROOT \
@@ -1197,6 +1196,7 @@ _MKVARS.no= \
 	MKARGON2 \
 	MKARZERO \
 	MKBSDGREP \
+	MKBSDTAR \
 	MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \
 	MKDEBUG MKDEBUGLIB MKDTRACE \
 	MKEXTSRC \



CVS commit: src/external/bsd/llvm/dist/llvm-configure

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:34:50 UTC 2019

Removed Files:
src/external/bsd/llvm/dist/llvm-configure: configure run-autoconf
src/external/bsd/llvm/dist/llvm-configure/autoconf: AutoRegen.sh
ExportMap.map LICENSE.TXT README.TXT aclocal.m4 config.guess
config.sub configure.ac install-sh missing mkinstalldirs
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4: build_exeext.m4
c_printf_a.m4 check_gnu_make.m4 config_makefile.m4
config_project.m4 cxx_flag_check.m4 define_subst.m4
find_std_program.m4 func_mmap_file.m4 header_mmap_anonymous.m4
huge_val.m4 link_options.m4 linux_mixed_64_32.m4
need_dev_zero_for_mmap.m4 sanity_check.m4 single_cxx_check.m4
visibility_inlines_hidden.m4
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config:
config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config:
AsmParsers.def.in AsmPrinters.def.in Disassemblers.def.in
Targets.def.in abi-breaking.h.in config.h.in llvm-config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support:
DataTypes.h.in

Log Message:
Mark old LLVM instance as dead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 src/external/bsd/llvm/dist/llvm-configure/configure
cvs rdiff -u -r1.1 -r0 src/external/bsd/llvm/dist/llvm-configure/run-autoconf
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map \
src/external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.guess \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.sub \
src/external/bsd/llvm/dist/llvm-configure/autoconf/install-sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/missing \
src/external/bsd/llvm/dist/llvm-configure/autoconf/mkinstalldirs
cvs rdiff -u -r1.2 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/configure.ac
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/build_exeext.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/c_printf_a.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/check_gnu_make.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_makefile.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_project.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/cxx_flag_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/define_subst.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/find_std_program.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/func_mmap_file.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/header_mmap_anonymous.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/huge_val.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/link_options.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/linux_mixed_64_32.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/need_dev_zero_for_mmap.m4 
\
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/sanity_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/single_cxx_check.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/visibility_inlines_hidden.m4
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config/config.h.in
cvs rdiff -u -r1.1 -r0 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmParsers.def.in 
\

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmPrinters.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Disassemblers.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Targets.def.in \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/abi-breaking.h.in 
\

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/llvm-config.h.in
cvs rdiff -u -r1.2 -r0 \
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/config.h.in
cvs rdiff -u -r1.1 -r0 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support/DataTypes.h.in

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



CVS commit: src/external/bsd/llvm/dist/llvm-configure

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:34:50 UTC 2019

Removed Files:
src/external/bsd/llvm/dist/llvm-configure: configure run-autoconf
src/external/bsd/llvm/dist/llvm-configure/autoconf: AutoRegen.sh
ExportMap.map LICENSE.TXT README.TXT aclocal.m4 config.guess
config.sub configure.ac install-sh missing mkinstalldirs
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4: build_exeext.m4
c_printf_a.m4 check_gnu_make.m4 config_makefile.m4
config_project.m4 cxx_flag_check.m4 define_subst.m4
find_std_program.m4 func_mmap_file.m4 header_mmap_anonymous.m4
huge_val.m4 link_options.m4 linux_mixed_64_32.m4
need_dev_zero_for_mmap.m4 sanity_check.m4 single_cxx_check.m4
visibility_inlines_hidden.m4
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config:
config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config:
AsmParsers.def.in AsmPrinters.def.in Disassemblers.def.in
Targets.def.in abi-breaking.h.in config.h.in llvm-config.h.in
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support:
DataTypes.h.in

Log Message:
Mark old LLVM instance as dead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r0 src/external/bsd/llvm/dist/llvm-configure/configure
cvs rdiff -u -r1.1 -r0 src/external/bsd/llvm/dist/llvm-configure/run-autoconf
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/AutoRegen.sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/ExportMap.map \
src/external/bsd/llvm/dist/llvm-configure/autoconf/LICENSE.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/README.TXT \
src/external/bsd/llvm/dist/llvm-configure/autoconf/aclocal.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.guess \
src/external/bsd/llvm/dist/llvm-configure/autoconf/config.sub \
src/external/bsd/llvm/dist/llvm-configure/autoconf/install-sh \
src/external/bsd/llvm/dist/llvm-configure/autoconf/missing \
src/external/bsd/llvm/dist/llvm-configure/autoconf/mkinstalldirs
cvs rdiff -u -r1.2 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/configure.ac
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/build_exeext.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/c_printf_a.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/check_gnu_make.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_makefile.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/config_project.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/cxx_flag_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/define_subst.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/find_std_program.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/func_mmap_file.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/header_mmap_anonymous.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/huge_val.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/link_options.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/linux_mixed_64_32.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/need_dev_zero_for_mmap.m4 
\
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/sanity_check.m4 \
src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/single_cxx_check.m4 \

src/external/bsd/llvm/dist/llvm-configure/autoconf/m4/visibility_inlines_hidden.m4
cvs rdiff -u -r1.1 -r0 \
src/external/bsd/llvm/dist/llvm-configure/include/clang/Config/config.h.in
cvs rdiff -u -r1.1 -r0 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmParsers.def.in 
\

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/AsmPrinters.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Disassemblers.def.in
 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/Targets.def.in \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/abi-breaking.h.in 
\

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/llvm-config.h.in
cvs rdiff -u -r1.2 -r0 \
src/external/bsd/llvm/dist/llvm-configure/include/llvm/Config/config.h.in
cvs rdiff -u -r1.1 -r0 \

src/external/bsd/llvm/dist/llvm-configure/include/llvm/Support/DataTypes.h.in

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



CVS commit: src/share/mk

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk

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



CVS commit: src/external/bsd/llvm

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:04:10 UTC 2019

Removed Files:
src/external/bsd/llvm: Makefile Makefile.inc link.mk tablegen.mk
src/external/bsd/llvm/bin: Makefile Makefile.inc
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/clang-rename: Makefile
src/external/bsd/llvm/bin/clang-tblgen: Makefile
src/external/bsd/llvm/bin/llc: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lldb: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-as: Makefile
src/external/bsd/llvm/bin/llvm-bcanalyzer: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-cxxdump: Makefile
src/external/bsd/llvm/bin/llvm-cxxfilt: Makefile
src/external/bsd/llvm/bin/llvm-diff: Makefile
src/external/bsd/llvm/bin/llvm-dis: Makefile
src/external/bsd/llvm/bin/llvm-dwarfdump: Makefile
src/external/bsd/llvm/bin/llvm-dwp: Makefile
src/external/bsd/llvm/bin/llvm-extract: Makefile
src/external/bsd/llvm/bin/llvm-link: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-mcld: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objcopy: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/llvm-profdata: Makefile
src/external/bsd/llvm/bin/llvm-readobj: Makefile
src/external/bsd/llvm/bin/llvm-size: Makefile
src/external/bsd/llvm/bin/llvm-strings: Makefile
src/external/bsd/llvm/bin/llvm-symbolizer: Makefile
src/external/bsd/llvm/bin/llvm-xray: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/bin/sancov: Makefile
src/external/bsd/llvm/bin/sanstats: Makefile
src/external/bsd/llvm/bin/tblgen: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: AsmParsers.def
AsmPrinters.def Disassemblers.def Targets.def abi-breaking.h
config.h.in llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/config/mclinker/mcld/Config: Config.h Linkers.def
Targets.def
src/external/bsd/llvm/include: Makefile Makefile.inc
src/external/bsd/llvm/lib: Makefile Makefile.inc
src/external/bsd/llvm/lib/libLLVMAArch64AsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64AsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64Disassembler: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64TargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64Utils: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUTargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUUtils: Makefile
src/external/bsd/llvm/lib/libLLVMARMAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMARMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMARMMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMARMTargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMARMUtils: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMArchive: Makefile
src/external/bsd/llvm/lib/libLLVMAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMBinaryFormat: Makefile
src/external/bsd/llvm/lib/libLLVMBitReader: Makefile
src/external/bsd/llvm/lib/libLLVMBitWriter: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoCodeView: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoDWARF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoMSF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDB: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDBDIA: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDBNative: Makefile

CVS commit: src/external/bsd/llvm

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:04:10 UTC 2019

Removed Files:
src/external/bsd/llvm: Makefile Makefile.inc link.mk tablegen.mk
src/external/bsd/llvm/bin: Makefile Makefile.inc
src/external/bsd/llvm/bin/bugpoint: Makefile
src/external/bsd/llvm/bin/clang: Makefile
src/external/bsd/llvm/bin/clang-format: Makefile
src/external/bsd/llvm/bin/clang-rename: Makefile
src/external/bsd/llvm/bin/clang-tblgen: Makefile
src/external/bsd/llvm/bin/llc: Makefile
src/external/bsd/llvm/bin/lld: Makefile
src/external/bsd/llvm/bin/lldb: Makefile
src/external/bsd/llvm/bin/lli: Makefile
src/external/bsd/llvm/bin/llvm-ar: Makefile
src/external/bsd/llvm/bin/llvm-as: Makefile
src/external/bsd/llvm/bin/llvm-bcanalyzer: Makefile
src/external/bsd/llvm/bin/llvm-cov: Makefile
src/external/bsd/llvm/bin/llvm-cxxdump: Makefile
src/external/bsd/llvm/bin/llvm-cxxfilt: Makefile
src/external/bsd/llvm/bin/llvm-diff: Makefile
src/external/bsd/llvm/bin/llvm-dis: Makefile
src/external/bsd/llvm/bin/llvm-dwarfdump: Makefile
src/external/bsd/llvm/bin/llvm-dwp: Makefile
src/external/bsd/llvm/bin/llvm-extract: Makefile
src/external/bsd/llvm/bin/llvm-link: Makefile
src/external/bsd/llvm/bin/llvm-mc: Makefile
src/external/bsd/llvm/bin/llvm-mcld: Makefile
src/external/bsd/llvm/bin/llvm-nm: Makefile
src/external/bsd/llvm/bin/llvm-objcopy: Makefile
src/external/bsd/llvm/bin/llvm-objdump: Makefile
src/external/bsd/llvm/bin/llvm-profdata: Makefile
src/external/bsd/llvm/bin/llvm-readobj: Makefile
src/external/bsd/llvm/bin/llvm-size: Makefile
src/external/bsd/llvm/bin/llvm-strings: Makefile
src/external/bsd/llvm/bin/llvm-symbolizer: Makefile
src/external/bsd/llvm/bin/llvm-xray: Makefile
src/external/bsd/llvm/bin/opt: Makefile
src/external/bsd/llvm/bin/sancov: Makefile
src/external/bsd/llvm/bin/sanstats: Makefile
src/external/bsd/llvm/bin/tblgen: Makefile
src/external/bsd/llvm/config/clang/Config: config.h
src/external/bsd/llvm/config/llvm/Config: AsmParsers.def
AsmPrinters.def Disassemblers.def Targets.def abi-breaking.h
config.h.in llvm-config.h.in
src/external/bsd/llvm/config/llvm/Support: DataTypes.h
src/external/bsd/llvm/config/mclinker/mcld/Config: Config.h Linkers.def
Targets.def
src/external/bsd/llvm/include: Makefile Makefile.inc
src/external/bsd/llvm/lib: Makefile Makefile.inc
src/external/bsd/llvm/lib/libLLVMAArch64AsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64AsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64CodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64Disassembler: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64TargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMAArch64Utils: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUTargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMAMDGPUUtils: Makefile
src/external/bsd/llvm/lib/libLLVMARMAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMARMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMARMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMARMDisassembler: Makefile
src/external/bsd/llvm/lib/libLLVMARMMCTargetDesc: Makefile
src/external/bsd/llvm/lib/libLLVMARMTargetInfo: Makefile
src/external/bsd/llvm/lib/libLLVMARMUtils: Makefile
src/external/bsd/llvm/lib/libLLVMAnalysis: Makefile
src/external/bsd/llvm/lib/libLLVMArchive: Makefile
src/external/bsd/llvm/lib/libLLVMAsmParser: Makefile
src/external/bsd/llvm/lib/libLLVMAsmPrinter: Makefile
src/external/bsd/llvm/lib/libLLVMBinaryFormat: Makefile
src/external/bsd/llvm/lib/libLLVMBitReader: Makefile
src/external/bsd/llvm/lib/libLLVMBitWriter: Makefile
src/external/bsd/llvm/lib/libLLVMCodeGen: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoCodeView: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoDWARF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoMSF: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDB: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDBDIA: Makefile
src/external/bsd/llvm/lib/libLLVMDebugInfoPDBNative: Makefile

Re: CVS commit: src [llvm]

2019-11-13 Thread Joerg Sonnenberger
On Wed, Nov 13, 2019 at 01:25:19PM +0100, Thomas Klausner wrote:
> On Wed, Nov 13, 2019 at 12:30:52PM +0100, Tobias Nygren wrote:
> > On Wed, 13 Nov 2019 10:29:52 +0100
> > Maxime Villard  wrote:
> > 
> > > Am I the only one seeing this? It's hard to blame the configuration when 
> > > the
> > > failure is seen on several hardware and several OSes.
> > 
> > FWIW I'm typing this from an x86_64 machine running today's LLVM
> > userland and kernel. I have some local patches but none that should be
> > relevant.
> > 
> 
> I have a different build problem:

That's another bogus unspecific GCC warning. Most lovely is that it
doesn't even have a flag for disabling it.

Joerg


Re: CVS commit: src [llvm]

2019-11-13 Thread Joerg Sonnenberger
On Wed, Nov 13, 2019 at 10:29:52AM +0100, Maxime Villard wrote:
> Le 12/11/2019 à 23:10, Joerg Sonnenberger a écrit :
> > On Tue, Nov 12, 2019 at 04:31:00PM +0100, Maxime Villard wrote:
> > > Le 12/11/2019 à 16:06, Maxime Villard a écrit :
> > > > Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit :
> > > > > On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote:
> > > > > > Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit :
> > > > > > > Module Name:    src
> > > > > > > Committed By:    joerg
> > > > > > > Date:    Mon Nov 11 22:45:32 UTC 2019
> > > > > > > 
> > > > > > > [...]
> > > > > > > Log Message:
> > > > > > > Update LLVM to 10.0.0git 
> > > > > > > (01f3a59fb3e2542fce74c768718f594d0debd0da)
> > > > > > 
> > > > > > Since this change, I cannot cross-compile GENERIC amd64 from Linux:
> > > > > 
> > > > > What non-standard settings are you using? amd64 is certainly on my 
> > > > > list
> > > > > of architectures to test.
> > > > 
> > > > No particular settings. Just the latest src/ compiled unchanged with
> > > > 
> > > > ./build.sh -j4 -U -O ../obj -V MKLLVM=yes -V MKGCC=no -V HAVE_LLVM=yes 
> > > > -m amd64 kernel=GENERIC
> > > 
> > > I'm also having the same issue on a NetBSD-amd64 host, with again an 
> > > unchanged
> > > src/ and the same command
> > 
> > Is that a clean build? I certainly do full release builds for all LLVM
> > architectures and I don't get this.
> 
> Yes, a clean build.
> 
> I've done two again just now, on different physical machines. One has NetBSD,
> the other has Linux.

At least on NetBSD 9-BETA, it is a miscompile by GCC 7.4.0. Don't know
what your Linux version has.

Joerg


CVS commit: src/usr.sbin/sysinst/arch/ews4800mips

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 18:58:09 UTC 2019

Modified Files:
src/usr.sbin/sysinst/arch/ews4800mips: Makefile

Log Message:
Drop MBR and cloning support on crunched install media.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/ews4800mips/Makefile

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



CVS commit: src/usr.sbin/sysinst/arch/ews4800mips

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 18:58:09 UTC 2019

Modified Files:
src/usr.sbin/sysinst/arch/ews4800mips: Makefile

Log Message:
Drop MBR and cloning support on crunched install media.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/sysinst/arch/ews4800mips/Makefile

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

Modified files:

Index: src/usr.sbin/sysinst/arch/ews4800mips/Makefile
diff -u src/usr.sbin/sysinst/arch/ews4800mips/Makefile:1.2 src/usr.sbin/sysinst/arch/ews4800mips/Makefile:1.3
--- src/usr.sbin/sysinst/arch/ews4800mips/Makefile:1.2	Thu Jun 13 06:34:31 2019
+++ src/usr.sbin/sysinst/arch/ews4800mips/Makefile	Wed Nov 13 18:58:09 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2019/06/13 06:34:31 martin Exp $
+#	$NetBSD: Makefile,v 1.3 2019/11/13 18:58:09 martin Exp $
 #
 # Makefile for ews4800mips
 #
@@ -8,6 +8,8 @@ LANGUAGES=	# no translations
 .ifdef SMALLPROG
 NOPARTMAN=	yes
 NO_GPT=		yes
+NO_MBR=		yes
+NO_CLONES=	yes
 .endif
 
 .include "../../Makefile.inc"



CVS commit: src/usr.sbin/sysinst

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 18:57:26 UTC 2019

Modified Files:
src/usr.sbin/sysinst: Makefile.inc bsddisklabel.c defs.h disks.c
install.c label.c part_edit.c util.c

Log Message:
Make cloning support optional, so we can save some space on very small
install media.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/sysinst/Makefile.inc
cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/sysinst/bsddisklabel.c
cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/sysinst/install.c
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/sysinst/label.c
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/sysinst/part_edit.c
cvs rdiff -u -r1.36 -r1.37 src/usr.sbin/sysinst/util.c

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

Modified files:

Index: src/usr.sbin/sysinst/Makefile.inc
diff -u src/usr.sbin/sysinst/Makefile.inc:1.28 src/usr.sbin/sysinst/Makefile.inc:1.29
--- src/usr.sbin/sysinst/Makefile.inc:1.28	Thu Oct 31 09:44:13 2019
+++ src/usr.sbin/sysinst/Makefile.inc	Wed Nov 13 18:57:26 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.28 2019/10/31 09:44:13 martin Exp $
+#	$NetBSD: Makefile.inc,v 1.29 2019/11/13 18:57:26 martin Exp $
 #
 # Makefile for sysinst
 
@@ -43,6 +43,9 @@ CPPFLAGS.gpt.c+=	-I${GPT_DIR}
 CPPFLAGS+=	-DHAVE_MBR
 SRCS+=	mbr.c
 .endif
+.if ${NO_CLONES:Uno} == "yes"
+CPPFLAGS+=	-DNO_CLONES
+.endif
 
 MSG_MD?=	msg.md.${SYSINSTLANG}
 MENUS_MD?=	menus.md.${SYSINSTLANG}

Index: src/usr.sbin/sysinst/bsddisklabel.c
diff -u src/usr.sbin/sysinst/bsddisklabel.c:1.30 src/usr.sbin/sysinst/bsddisklabel.c:1.31
--- src/usr.sbin/sysinst/bsddisklabel.c:1.30	Tue Nov 12 16:33:14 2019
+++ src/usr.sbin/sysinst/bsddisklabel.c	Wed Nov 13 18:57:26 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: bsddisklabel.c,v 1.30 2019/11/12 16:33:14 martin Exp $	*/
+/*	$NetBSD: bsddisklabel.c,v 1.31 2019/11/13 18:57:26 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -251,11 +251,13 @@ draw_size_menu_line(menudesc *m, int opt
 		mount = swap;
 	} else if (pset->infos[opt].mount[0]) {
 		mount = pset->infos[opt].mount;
+#ifndef NO_CLONES
 	} else if (pset->infos[opt].flags & PUIFLG_CLONE_PARTS) {
 		snprintf(swap, sizeof swap, "%zu %s",
 		pset->infos[opt].clone_src->num_sel,
 		msg_string(MSG_clone_target_disp));
 		mount = swap;
+#endif
 	} else {
 		mount = NULL;
 		if (pset->infos[opt].parts->pscheme->other_partition_identifier
@@ -353,6 +355,7 @@ add_other_ptn_size(menudesc *menu, void 
 	return -1;
 }
 
+#ifndef NO_CLONES
 static int
 inst_ext_clone(menudesc *menu, void *arg)
 {
@@ -430,6 +433,7 @@ err:
 	free_selected_partitions();
 	return 0;
 }
+#endif
 
 static size_t
 fill_ptn_menu(struct partition_usage_set *pset)
@@ -440,7 +444,14 @@ fill_ptn_menu(struct partition_usage_set
 	size_t i;
 	daddr_t free_space;
 
-	memset(pset->menu_opts, 0, (pset->num+4)*sizeof(*pset->menu_opts));
+#ifdef NO_CLONES
+#define	ADD_ITEMS	3
+#else
+#define	ADD_ITEMS	4
+#endif
+
+	memset(pset->menu_opts, 0, (pset->num+ADD_ITEMS)
+	*sizeof(*pset->menu_opts));
 	for (m = pset->menu_opts, p = pset->infos, i = 0; i < pset->num;
 	m++, p++, i++) {
 		if (p->flags & PUIFLG_CLONE_PARTS)
@@ -457,9 +468,11 @@ fill_ptn_menu(struct partition_usage_set
 	m->opt_action = add_other_ptn_size;
 	m++;
 
+#ifndef NO_CLONES
 	m->opt_name = MSG_clone_from_elsewhere;
 	m->opt_action = inst_ext_clone;
 	m++;
+#endif
 
 	m->opt_name = MSG_askunits;
 	m->opt_menu = MENU_sizechoice;
@@ -1136,6 +1149,7 @@ sort_and_sync_parts(struct partition_usa
 	pset->infos = infos;
 }
 
+#ifndef NO_CLONES
 /*
  * Convert clone entries with more than one source into
  * several entries with a single source each.
@@ -1188,6 +1202,7 @@ normalize_clones(struct part_usage_info 
 	free(*infos);
 	*infos = ui;
 }
+#endif
 
 static void
 apply_settings_to_partitions(struct pm_devs *p, struct disk_partitions *parts,
@@ -1195,13 +1210,18 @@ apply_settings_to_partitions(struct pm_d
 {
 	size_t i, exp_ndx = ~0U;
 	daddr_t planned_space = 0, nsp, from, align;
-	struct disk_part_info *infos, cinfo, srcinfo;
+	struct disk_part_info *infos;
+#ifndef NO_CLONES
+	struct disk_part_info cinfo, srcinfo;
+	struct selected_partition *sp;
+#endif
 	struct disk_part_free_space space;
 	struct disk_partitions *ps = NULL;
-	struct selected_partition *sp;
 	part_id pno, new_part_id;
 
+#ifndef NO_CLONES
 	normalize_clones(>infos, >num);
+#endif
 
 	infos = calloc(wanted->num, sizeof(*infos));
 	if (infos == NULL) {
@@ -1329,6 +1349,7 @@ apply_settings_to_partitions(struct pm_d
 			continue;
 		if (want->flags & (PUIFLG_JUST_MOUNTPOINT|PUIFLG_IS_OUTER))
 			continue;
+#ifndef NO_CLONES
 		if ((want->flags & PUIFLG_CLONE_PARTS) &&
 		want->clone_src != NULL &&
 		want->clone_ndx < want->clone_src->num_sel) {
@@ -1358,6 +1379,9 @@ 

CVS commit: src/usr.sbin/sysinst

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 18:57:26 UTC 2019

Modified Files:
src/usr.sbin/sysinst: Makefile.inc bsddisklabel.c defs.h disks.c
install.c label.c part_edit.c util.c

Log Message:
Make cloning support optional, so we can save some space on very small
install media.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/sysinst/Makefile.inc
cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/sysinst/bsddisklabel.c
cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/sysinst/defs.h
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/sysinst/install.c
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/sysinst/label.c
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/sysinst/part_edit.c
cvs rdiff -u -r1.36 -r1.37 src/usr.sbin/sysinst/util.c

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



CVS commit: src/sys/arch/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:59:57 UTC 2019

Modified Files:
src/sys/arch/zaurus/conf: GENERIC INSTALL
src/sys/arch/zaurus/stand/zbsdmod: zbsdmod.c
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
 https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg86.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/zaurus/conf/GENERIC
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/zaurus/conf/INSTALL
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/zaurus/zaurus/machdep.c

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



CVS commit: src/sys/arch/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:59:57 UTC 2019

Modified Files:
src/sys/arch/zaurus/conf: GENERIC INSTALL
src/sys/arch/zaurus/stand/zbsdmod: zbsdmod.c
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
 https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg86.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/arch/zaurus/conf/GENERIC
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/zaurus/conf/INSTALL
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/zaurus/zaurus/machdep.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/arch/zaurus/conf/GENERIC
diff -u src/sys/arch/zaurus/conf/GENERIC:1.88 src/sys/arch/zaurus/conf/GENERIC:1.89
--- src/sys/arch/zaurus/conf/GENERIC:1.88	Sat Nov  2 23:13:00 2019
+++ src/sys/arch/zaurus/conf/GENERIC	Wed Nov 13 17:59:56 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: GENERIC,v 1.88 2019/11/02 23:13:00 tsutsui Exp $
+#	$NetBSD: GENERIC,v 1.89 2019/11/13 17:59:56 tsutsui Exp $
 #
 # GENERIC machine description file
 #
@@ -150,11 +150,10 @@ options 	WSDISPLAY_COMPAT_RAWKBD		# can 
 options 	DIAGNOSTIC		# internal consistency checks
 #options 	DEBUG
 #options 	VERBOSE_INIT_ARM	# verbose bootstraping messages
-#options 	DDB			# in-kernel debugger
-#options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
+options 	DDB			# in-kernel debugger
+options 	DDB_HISTORY_SIZE=100	# Enable history editing in DDB
 #options 	KGDB
 #makeoptions 	DEBUG="-g"		# compile full symbol table
-makeoptions	COPY_SYMTAB=1
 
 
 # Kernel root file system and dump configuration.

Index: src/sys/arch/zaurus/conf/INSTALL
diff -u src/sys/arch/zaurus/conf/INSTALL:1.39 src/sys/arch/zaurus/conf/INSTALL:1.40
--- src/sys/arch/zaurus/conf/INSTALL:1.39	Thu Feb  7 20:56:27 2019
+++ src/sys/arch/zaurus/conf/INSTALL	Wed Nov 13 17:59:56 2019
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.39 2019/02/07 20:56:27 rin Exp $
+# $NetBSD: INSTALL,v 1.40 2019/11/13 17:59:56 tsutsui Exp $
 #
 # INSTALL config file (GENERIC with memory disk root)
 #
@@ -59,7 +59,6 @@ options 		RASOPS_SMALL
 no options 		DIAGNOSTIC
 no options 		DDB
 no options 		DDB_HISTORY_SIZE
-no makeoptions	COPY_SYMTAB
 
 no options 		PXA2X0_DMAC_DMOVER_CONCURRENCY
 

Index: src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c
diff -u src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c:1.11 src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c:1.12
--- src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c:1.11	Mon Oct 28 15:26:09 2019
+++ src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c	Wed Nov 13 17:59:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: zbsdmod.c,v 1.11 2019/10/28 15:26:09 tsutsui Exp $	*/
+/*	$NetBSD: zbsdmod.c,v 1.12 2019/11/13 17:59:56 tsutsui Exp $	*/
 /*	$OpenBSD: zbsdmod.c,v 1.7 2005/05/02 02:45:29 uwe Exp $	*/
 
 /*
@@ -139,8 +139,8 @@ elf32bsdboot(void)
 			if (maxv < posv)
 maxv = posv;
 		}
-		if (IS_DATA(phdr[i]) && IS_BSS(phdr[i])) {
-			posv += phdr[i].p_memsz;
+		if (IS_BSS(phdr[i])) {
+			posv += phdr[i].p_memsz - phdr[i].p_filesz;
 			if (maxv < posv)
 maxv = posv;
 		}

Index: src/sys/arch/zaurus/zaurus/machdep.c
diff -u src/sys/arch/zaurus/zaurus/machdep.c:1.44 src/sys/arch/zaurus/zaurus/machdep.c:1.45
--- src/sys/arch/zaurus/zaurus/machdep.c:1.44	Mon Nov  4 10:36:18 2019
+++ src/sys/arch/zaurus/zaurus/machdep.c	Wed Nov 13 17:59:56 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.44 2019/11/04 10:36:18 tsutsui Exp $	*/
+/*	$NetBSD: machdep.c,v 1.45 2019/11/13 17:59:56 tsutsui Exp $	*/
 /*	$OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $	*/
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2019/11/04 10:36:18 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2019/11/13 17:59:56 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -247,6 +247,12 @@ struct bootinfo _bootinfo;
 struct bootinfo *bootinfo;

CVS commit: src/sys/arch/arm/sa11x0

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:52:12 UTC 2019

Modified Files:
src/sys/arch/arm/sa11x0: sa11x0_ost.c

Log Message:
Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.
While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/sa11x0/sa11x0_ost.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/arch/arm/sa11x0/sa11x0_ost.c
diff -u src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.32 src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.33
--- src/sys/arch/arm/sa11x0/sa11x0_ost.c:1.32	Sun Oct  9 14:43:17 2016
+++ src/sys/arch/arm/sa11x0/sa11x0_ost.c	Wed Nov 13 17:52:12 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sa11x0_ost.c,v 1.32 2016/10/09 14:43:17 christos Exp $	*/
+/*	$NetBSD: sa11x0_ost.c,v 1.33 2019/11/13 17:52:12 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.32 2016/10/09 14:43:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0_ost.c,v 1.33 2019/11/13 17:52:12 tsutsui Exp $");
 
 #include 
 #include 
@@ -80,14 +80,23 @@ struct saost_softc {
 
 static struct saost_softc *saost_sc = NULL;
 
+#define PXA270_OST_FREQ		325		/* PXA270 uses 3.25MHz */
+#define SAOST_FREQ		3686400		/* Others use 3.6864MHz */
+#define SAOST_MAXFREQ		SAOST_FREQ
+
 #if defined(CPU_XSCALE_PXA270) && defined(CPU_XSCALE_PXA250)
+/*
+ * On dynamic configuration, assume fastest frequency for early delay(9)
+ * before tc_init(9), because longer delay(9) is almost harmless during
+ * device probe and initialization.
+ */
 #include  
-static uint32_t freq;
-#define TIMER_FREQUENCY freq
+static uint32_t saost_freq = SAOST_MAXFREQ;
+#define TIMER_FREQUENCY		saost_freq
 #elif defined(CPU_XSCALE_PXA270)
-#define TIMER_FREQUENCY 325 /* PXA270 uses 3.25MHz */
+#define TIMER_FREQUENCY		PXA270_OST_FREQ
 #else
-#define TIMER_FREQUENCY 3686400 /* 3.6864MHz */
+#define TIMER_FREQUENCY		SAOST_FREQ
 #endif
 
 #ifndef STATHZ
@@ -230,7 +239,7 @@ cpu_initclocks(void)
 	stathz = STATHZ;
 	profhz = stathz;
 #if defined(CPU_XSCALE_PXA270) && defined(CPU_XSCALE_PXA250)
-	TIMER_FREQUENCY = (CPU_IS_PXA250) ? 3686400 : 325;
+	TIMER_FREQUENCY = (CPU_IS_PXA270) ? PXA270_OST_FREQ : SAOST_FREQ;
 #endif
 	sc->sc_statclock_step = TIMER_FREQUENCY / stathz;
 



CVS commit: src/sys/arch/arm/sa11x0

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:52:12 UTC 2019

Modified Files:
src/sys/arch/arm/sa11x0: sa11x0_ost.c

Log Message:
Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.
While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/sa11x0/sa11x0_ost.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:48:03 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: autoconf.c

Log Message:
Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/zaurus/zaurus/autoconf.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:48:03 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: autoconf.c

Log Message:
Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/zaurus/zaurus/autoconf.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/arch/zaurus/zaurus/autoconf.c
diff -u src/sys/arch/zaurus/zaurus/autoconf.c:1.12 src/sys/arch/zaurus/zaurus/autoconf.c:1.13
--- src/sys/arch/zaurus/zaurus/autoconf.c:1.12	Sun Jul 29 18:05:47 2012
+++ src/sys/arch/zaurus/zaurus/autoconf.c	Wed Nov 13 17:48:03 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.12 2012/07/29 18:05:47 mlelstv Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.13 2019/11/13 17:48:03 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.12 2012/07/29 18:05:47 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.13 2019/11/13 17:48:03 tsutsui Exp $");
 
 #include "opt_md.h"
 
@@ -43,6 +43,8 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v
 #include 
 #include 
 
+#include 
+
 #include 
 #include 
 #include 
@@ -219,5 +221,13 @@ void
 device_register(device_t dev, void *aux)
 {
 
-	/* Nothing to do */
+	/*
+	 * I2C bus conntected to pxaiic(4) for zaudio(4) devices has
+	 * limited capabilities.
+	 */
+	if (device_is_a(dev, "iic") &&
+	device_is_a(dev->dv_parent, "ziic")) {
+		(void)prop_dictionary_set_cstring_nocopy(device_properties(dev),
+		I2C_PROP_INDIRECT_PROBE_STRATEGY, I2C_PROBE_STRATEGY_NONE);
+	}
 }



CVS commit: src/sys/arch

2019-11-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov 13 16:11:28 UTC 2019

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep_13.c netbsd32_machdep_16.c
src/sys/arch/arm/arm32: netbsd32_machdep.c netbsd32_machdep_13.c
netbsd32_machdep_16.c
src/sys/arch/mips/mips: netbsd32_machdep_13.c netbsd32_machdep_16.c
src/sys/arch/riscv/riscv: vm_machdep.c

Log Message:
Clean-up unnecessary inclusions of opt_coredump.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/amd64/netbsd32_machdep_13.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/amd64/netbsd32_machdep_16.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/arm32/netbsd32_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/arm32/netbsd32_machdep_13.c \
src/sys/arch/arm/arm32/netbsd32_machdep_16.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/mips/netbsd32_machdep_13.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/mips/netbsd32_machdep_16.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/riscv/vm_machdep.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/arch/amd64/amd64/netbsd32_machdep_13.c
diff -u src/sys/arch/amd64/amd64/netbsd32_machdep_13.c:1.2 src/sys/arch/amd64/amd64/netbsd32_machdep_13.c:1.3
--- src/sys/arch/amd64/amd64/netbsd32_machdep_13.c:1.2	Sun Jan 27 02:08:37 2019
+++ src/sys/arch/amd64/amd64/netbsd32_machdep_13.c	Wed Nov 13 16:11:27 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_machdep_13.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $	*/
+/*	$NetBSD: netbsd32_machdep_13.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,11 +36,10 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_13.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_13.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
-#include "opt_coredump.h"
 #include "opt_execfmt.h"
 #include "opt_user_ldt.h"
 #include "opt_mtrr.h"

Index: src/sys/arch/amd64/amd64/netbsd32_machdep_16.c
diff -u src/sys/arch/amd64/amd64/netbsd32_machdep_16.c:1.3 src/sys/arch/amd64/amd64/netbsd32_machdep_16.c:1.4
--- src/sys/arch/amd64/amd64/netbsd32_machdep_16.c:1.3	Fri Mar  1 11:06:55 2019
+++ src/sys/arch/amd64/amd64/netbsd32_machdep_16.c	Wed Nov 13 16:11:27 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $	*/
+/*	$NetBSD: netbsd32_machdep_16.c,v 1.4 2019/11/13 16:11:27 pgoyette Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,11 +36,10 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.4 2019/11/13 16:11:27 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
-#include "opt_coredump.h"
 #include "opt_execfmt.h"
 #endif
 

Index: src/sys/arch/arm/arm32/netbsd32_machdep.c
diff -u src/sys/arch/arm/arm32/netbsd32_machdep.c:1.8 src/sys/arch/arm/arm32/netbsd32_machdep.c:1.9
--- src/sys/arch/arm/arm32/netbsd32_machdep.c:1.8	Sun Jan 27 02:08:37 2019
+++ src/sys/arch/arm/arm32/netbsd32_machdep.c	Wed Nov 13 16:11:27 2019
@@ -29,12 +29,11 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.8 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep.c,v 1.9 2019/11/13 16:11:27 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
 #include "opt_compat_netbsd32.h"
-#include "opt_coredump.h"
 #endif
 
 #include 

Index: src/sys/arch/arm/arm32/netbsd32_machdep_13.c
diff -u src/sys/arch/arm/arm32/netbsd32_machdep_13.c:1.2 src/sys/arch/arm/arm32/netbsd32_machdep_13.c:1.3
--- src/sys/arch/arm/arm32/netbsd32_machdep_13.c:1.2	Sun Jan 27 02:08:37 2019
+++ src/sys/arch/arm/arm32/netbsd32_machdep_13.c	Wed Nov 13 16:11:27 2019
@@ -29,12 +29,11 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_13.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_13.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
 #include "opt_compat_netbsd32.h"
-#include "opt_coredump.h"
 #endif
 
 #include 
Index: src/sys/arch/arm/arm32/netbsd32_machdep_16.c
diff -u src/sys/arch/arm/arm32/netbsd32_machdep_16.c:1.2 src/sys/arch/arm/arm32/netbsd32_machdep_16.c:1.3
--- src/sys/arch/arm/arm32/netbsd32_machdep_16.c:1.2	Sun Jan 27 02:08:37 2019
+++ src/sys/arch/arm/arm32/netbsd32_machdep_16.c	Wed Nov 13 16:11:27 2019
@@ -29,12 +29,11 @@
 
 #include 
 
-__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(1, "$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
 #include "opt_compat_netbsd32.h"
-#include "opt_coredump.h"
 #endif
 
 #include 


CVS commit: src/sys/arch

2019-11-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov 13 16:11:28 UTC 2019

Modified Files:
src/sys/arch/amd64/amd64: netbsd32_machdep_13.c netbsd32_machdep_16.c
src/sys/arch/arm/arm32: netbsd32_machdep.c netbsd32_machdep_13.c
netbsd32_machdep_16.c
src/sys/arch/mips/mips: netbsd32_machdep_13.c netbsd32_machdep_16.c
src/sys/arch/riscv/riscv: vm_machdep.c

Log Message:
Clean-up unnecessary inclusions of opt_coredump.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/amd64/netbsd32_machdep_13.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/amd64/netbsd32_machdep_16.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/arm32/netbsd32_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/arm32/netbsd32_machdep_13.c \
src/sys/arch/arm/arm32/netbsd32_machdep_16.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/mips/mips/netbsd32_machdep_13.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/mips/netbsd32_machdep_16.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/riscv/vm_machdep.c

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



CVS commit: src/sys/kern

2019-11-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov 13 15:48:36 UTC 2019

Modified Files:
src/sys/kern: sys_ptrace_common.c

Log Message:
Return success if no coredump module is loaded/hooked.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/sys_ptrace_common.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/kern/sys_ptrace_common.c
diff -u src/sys/kern/sys_ptrace_common.c:1.70 src/sys/kern/sys_ptrace_common.c:1.71
--- src/sys/kern/sys_ptrace_common.c:1.70	Sun Nov 10 14:20:50 2019
+++ src/sys/kern/sys_ptrace_common.c	Wed Nov 13 15:48:36 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_ptrace_common.c,v 1.70 2019/11/10 14:20:50 pgoyette Exp $	*/
+/*	$NetBSD: sys_ptrace_common.c,v 1.71 2019/11/13 15:48:36 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.70 2019/11/10 14:20:50 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.71 2019/11/13 15:48:36 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ptrace.h"
@@ -959,7 +959,7 @@ ptrace_dumpcore(struct lwp *lt, char *pa
 		path[len] = '\0';
 	}
 	DPRINTF(("%s: lwp=%d\n", __func__, lt->l_lid));
-	MODULE_HOOK_CALL(coredump_hook, (lt, path), enosys(), error);
+	MODULE_HOOK_CALL(coredump_hook, (lt, path), 0, error);
 out:
 	if (path)
 		kmem_free(path, len + 1);



CVS commit: src/sys/kern

2019-11-13 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Nov 13 15:48:36 UTC 2019

Modified Files:
src/sys/kern: sys_ptrace_common.c

Log Message:
Return success if no coredump module is loaded/hooked.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/kern/sys_ptrace_common.c

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



Re: case-sensitive APFS volumes

2019-11-13 Thread Jason Thorpe



> On Nov 13, 2019, at 1:57 AM, Christoph Badura  wrote:
> 
> Just HTF does one add the same cryptographic users that the / volume has?
> TFM does not tell.  It just says that "indeed, they should be added before
> encryption".

Hm, I'm not actually sure.  I'll do a bit of research.

> Maybe we can document this for the benfit of other NetBSD developers.
> 
> And yes, I do *not* want to dink around in the Disk Utility GUI.
> Automation or GTFO.

All of these things should be possible with the diskutil command.

-- thorpej



CVS commit: [netbsd-9] src/doc

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:57:15 UTC 2019

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

Log Message:
Tickets #420 and #421


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.100 -r1.1.2.101 src/doc/CHANGES-9.0

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

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:57:15 UTC 2019

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

Log Message:
Tickets #420 and #421


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.100 -r1.1.2.101 src/doc/CHANGES-9.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-9.0
diff -u src/doc/CHANGES-9.0:1.1.2.100 src/doc/CHANGES-9.0:1.1.2.101
--- src/doc/CHANGES-9.0:1.1.2.100	Tue Nov 12 18:25:33 2019
+++ src/doc/CHANGES-9.0	Wed Nov 13 12:57:15 2019
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-9.0,v 1.1.2.100 2019/11/12 18:25:33 martin Exp $
+# $NetBSD: CHANGES-9.0,v 1.1.2.101 2019/11/13 12:57:15 martin Exp $
 
 A complete list of changes from the initial NetBSD 9.0 branch on 2019-07-30
 until the 9.0 release:
@@ -5648,3 +5648,15 @@ sys/arch/x86/x86/spectre.c			1.31
 	Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).
 	[maxv, ticket #419]
 
+sys/net/if_vlan.c1.148
+tests/net/if_vlan/t_vlan.sh			1.16
+
+	Fix a bug that vlan(4) fragments IPv6 packets unecessarily.
+	Add a test case for this.
+	[yamaguchi, ticket #420]
+
+bin/pax/Makefile1.40
+
+	PR bin/54468: install manual pages for tar and cpio only once.
+	[nakayama, ticket #421]
+



CVS commit: [netbsd-9] src/bin/pax

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:56:22 UTC 2019

Modified Files:
src/bin/pax [netbsd-9]: Makefile

Log Message:
Pull up following revision(s) (requested by nakayama in ticket #421):

bin/pax/Makefile: revision 1.40

Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"
PR bin/54468


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.39.50.1 src/bin/pax/Makefile

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

Modified files:

Index: src/bin/pax/Makefile
diff -u src/bin/pax/Makefile:1.39 src/bin/pax/Makefile:1.39.50.1
--- src/bin/pax/Makefile:1.39	Fri Apr 23 19:41:02 2010
+++ src/bin/pax/Makefile	Wed Nov 13 12:56:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.39 2010/04/23 19:41:02 joerg Exp $
+#	$NetBSD: Makefile,v 1.39.50.1 2019/11/13 12:56:22 martin Exp $
 #   @(#)Makefile	8.1 (Berkeley) 5/31/93
 
 .include 
@@ -23,7 +23,7 @@ LDADD+= -lutil
 .endif
 .endif
 
-MAN=	pax.1 tar.1 cpio.1
+MAN=	pax.1
 
 .if defined(HOSTPROG)
 CPPFLAGS+=	-DHOSTPROG
@@ -35,9 +35,11 @@ CPPFLAGS+=	-DHAVE_SYS_MTIO_H
 .if ${MKBSDTAR} == "no"
 LINKS+=	${BINDIR}/pax ${BINDIR}/tar
 SYMLINKS+=${BINDIR}/tar /usr/bin/tar
+MAN+=tar.1
 
 LINKS+=	${BINDIR}/pax ${BINDIR}/cpio
 SYMLINKS+=${BINDIR}/cpio /usr/bin/cpio
+MAN+=cpio.1
 .endif
 .endif	# }	! HOSTPROG
 



CVS commit: [netbsd-9] src/bin/pax

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:56:22 UTC 2019

Modified Files:
src/bin/pax [netbsd-9]: Makefile

Log Message:
Pull up following revision(s) (requested by nakayama in ticket #421):

bin/pax/Makefile: revision 1.40

Install manual pages for tar and cpio only if ${MKBSDTAR} == "no"
PR bin/54468


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.39.50.1 src/bin/pax/Makefile

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



CVS commit: [netbsd-8] src/doc

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:55:06 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1434


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.63 -r1.1.2.64 src/doc/CHANGES-8.2

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



CVS commit: src/sys/arch/x86

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 12:55:10 UTC 2019

Modified Files:
src/sys/arch/x86/include: pmap.h pmap_pv.h
src/sys/arch/x86/x86: pmap.c

Log Message:
Rename:
PP_ATTRS_M -> PP_ATTRS_D
PP_ATTRS_U -> PP_ATTRS_A
For consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/include/pmap_pv.h
cvs rdiff -u -r1.337 -r1.338 src/sys/arch/x86/x86/pmap.c

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



CVS commit: src/sys/arch/x86

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 12:55:10 UTC 2019

Modified Files:
src/sys/arch/x86/include: pmap.h pmap_pv.h
src/sys/arch/x86/x86: pmap.c

Log Message:
Rename:
PP_ATTRS_M -> PP_ATTRS_D
PP_ATTRS_U -> PP_ATTRS_A
For consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/include/pmap_pv.h
cvs rdiff -u -r1.337 -r1.338 src/sys/arch/x86/x86/pmap.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/arch/x86/include/pmap.h
diff -u src/sys/arch/x86/include/pmap.h:1.103 src/sys/arch/x86/include/pmap.h:1.104
--- src/sys/arch/x86/include/pmap.h:1.103	Sat Oct  5 07:30:03 2019
+++ src/sys/arch/x86/include/pmap.h	Wed Nov 13 12:55:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.103 2019/10/05 07:30:03 maxv Exp $	*/
+/*	$NetBSD: pmap.h,v 1.104 2019/11/13 12:55:10 maxv Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -327,11 +327,11 @@ extern long nkptp[PTP_LEVELS];
 #define	pmap_resident_count(pmap)	((pmap)->pm_stats.resident_count)
 #define	pmap_wired_count(pmap)		((pmap)->pm_stats.wired_count)
 
-#define pmap_clear_modify(pg)		pmap_clear_attrs(pg, PP_ATTRS_M)
-#define pmap_clear_reference(pg)	pmap_clear_attrs(pg, PP_ATTRS_U)
+#define pmap_clear_modify(pg)		pmap_clear_attrs(pg, PP_ATTRS_D)
+#define pmap_clear_reference(pg)	pmap_clear_attrs(pg, PP_ATTRS_A)
 #define pmap_copy(DP,SP,D,L,S)		__USE(L)
-#define pmap_is_modified(pg)		pmap_test_attrs(pg, PP_ATTRS_M)
-#define pmap_is_referenced(pg)		pmap_test_attrs(pg, PP_ATTRS_U)
+#define pmap_is_modified(pg)		pmap_test_attrs(pg, PP_ATTRS_D)
+#define pmap_is_referenced(pg)		pmap_test_attrs(pg, PP_ATTRS_A)
 #define pmap_move(DP,SP,D,L,S)
 #define pmap_phys_address(ppn)		(x86_ptob(ppn) & ~X86_MMAP_FLAG_MASK)
 #define pmap_mmap_flags(ppn)		x86_mmap_flags(ppn)

Index: src/sys/arch/x86/include/pmap_pv.h
diff -u src/sys/arch/x86/include/pmap_pv.h:1.5 src/sys/arch/x86/include/pmap_pv.h:1.6
--- src/sys/arch/x86/include/pmap_pv.h:1.5	Sat Mar  9 08:42:26 2019
+++ src/sys/arch/x86/include/pmap_pv.h	Wed Nov 13 12:55:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_pv.h,v 1.5 2019/03/09 08:42:26 maxv Exp $	*/
+/*	$NetBSD: pmap_pv.h,v 1.6 2019/11/13 12:55:10 maxv Exp $	*/
 
 /*-
  * Copyright (c)2008 YAMAMOTO Takashi,
@@ -82,8 +82,8 @@ struct pmap_page {
 #define	pp_link	pp_u.u_link
 	uint8_t pp_flags;
 	uint8_t pp_attrs;
-#define PP_ATTRS_M	0x01	/* Dirty */
-#define PP_ATTRS_U	0x02	/* Accessed */
+#define PP_ATTRS_D	0x01	/* Dirty */
+#define PP_ATTRS_A	0x02	/* Accessed */
 #define PP_ATTRS_W	0x04	/* Writable */
 };
 

Index: src/sys/arch/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.337 src/sys/arch/x86/x86/pmap.c:1.338
--- src/sys/arch/x86/x86/pmap.c:1.337	Wed Oct 30 07:40:05 2019
+++ src/sys/arch/x86/x86/pmap.c	Wed Nov 13 12:55:10 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.337 2019/10/30 07:40:05 maxv Exp $	*/
+/*	$NetBSD: pmap.c,v 1.338 2019/11/13 12:55:10 maxv Exp $	*/
 
 /*
  * Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.337 2019/10/30 07:40:05 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.338 2019/11/13 12:55:10 maxv Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -3434,9 +3434,9 @@ pmap_pte_to_pp_attrs(pt_entry_t pte)
 {
 	uint8_t ret = 0;
 	if (pte & PTE_D)
-		ret |= PP_ATTRS_M;
+		ret |= PP_ATTRS_D;
 	if (pte & PTE_A)
-		ret |= PP_ATTRS_U;
+		ret |= PP_ATTRS_A;
 	if (pte & PTE_W)
 		ret |= PP_ATTRS_W;
 	return ret;
@@ -3446,9 +3446,9 @@ static inline pt_entry_t
 pmap_pp_attrs_to_pte(uint8_t attrs)
 {
 	pt_entry_t pte = 0;
-	if (attrs & PP_ATTRS_M)
+	if (attrs & PP_ATTRS_D)
 		pte |= PTE_D;
-	if (attrs & PP_ATTRS_U)
+	if (attrs & PP_ATTRS_A)
 		pte |= PTE_A;
 	if (attrs & PP_ATTRS_W)
 		pte |= PTE_W;
@@ -3674,7 +3674,7 @@ pmap_sync_pv(struct pv_pte *pvpte, paddr
 	expect = pmap_pa2pte(pa) | PTE_P;
 
 	if (clearbits != ~0) {
-		KASSERT((clearbits & ~(PP_ATTRS_M|PP_ATTRS_U|PP_ATTRS_W)) == 0);
+		KASSERT((clearbits & ~(PP_ATTRS_D|PP_ATTRS_A|PP_ATTRS_W)) == 0);
 		clearbits = pmap_pp_attrs_to_pte(clearbits);
 	}
 
@@ -4938,11 +4938,11 @@ pmap_ept_to_pp_attrs(pt_entry_t ept)
 	uint8_t ret = 0;
 	if (pmap_ept_has_ad) {
 		if (ept & EPT_D)
-			ret |= PP_ATTRS_M;
+			ret |= PP_ATTRS_D;
 		if (ept & EPT_A)
-			ret |= PP_ATTRS_U;
+			ret |= PP_ATTRS_A;
 	} else {
-		ret |= (PP_ATTRS_M|PP_ATTRS_U);
+		ret |= (PP_ATTRS_D|PP_ATTRS_A);
 	}
 	if (ept & EPT_W)
 		ret |= PP_ATTRS_W;
@@ -4953,9 +4953,9 @@ static inline pt_entry_t
 pmap_pp_attrs_to_ept(uint8_t attrs)
 {
 	pt_entry_t ept = 0;
-	if (attrs & PP_ATTRS_M)
+	if (attrs & PP_ATTRS_D)
 		ept |= EPT_D;
-	if (attrs & PP_ATTRS_U)
+	if (attrs & PP_ATTRS_A)
 		ept |= EPT_A;
 	if (attrs & PP_ATTRS_W)
 		ept |= EPT_W;
@@ -5531,7 

CVS commit: [netbsd-8] src/doc

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:55:06 UTC 2019

Modified Files:
src/doc [netbsd-8]: CHANGES-8.2

Log Message:
Ticket #1434


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.63 -r1.1.2.64 src/doc/CHANGES-8.2

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-8.2
diff -u src/doc/CHANGES-8.2:1.1.2.63 src/doc/CHANGES-8.2:1.1.2.64
--- src/doc/CHANGES-8.2:1.1.2.63	Tue Nov 12 19:24:08 2019
+++ src/doc/CHANGES-8.2	Wed Nov 13 12:55:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-8.2,v 1.1.2.63 2019/11/12 19:24:08 martin Exp $
+# $NetBSD: CHANGES-8.2,v 1.1.2.64 2019/11/13 12:55:05 martin Exp $
 
 A complete list of changes from the NetBSD 8.1 release to the NetBSD 8.2
 release:
@@ -1513,3 +1513,8 @@ sys/arch/x86/x86/spectre.c			1.31 (patch
 	Mitigation for CVE-2019-11135: TSX Asynchronous Abort (TAA).
 	[maxv, ticket #1433]
 
+sys/net/if_vlan.c1.148
+
+	Fix a bug that vlan(4) fragments IPv6 packets unecessarily.
+	[yamaguchi, ticket #1434]
+



CVS commit: [netbsd-8] src/sys/net

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:53:35 UTC 2019

Modified Files:
src/sys/net [netbsd-8]: if_vlan.c

Log Message:
Pull up following revision(s) (requested by yamaguchi in ticket #1434):

sys/net/if_vlan.c: revision 1.148

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
>From t-kusaba@IIJ


To generate a diff of this commit:
cvs rdiff -u -r1.97.2.17 -r1.97.2.18 src/sys/net/if_vlan.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/net/if_vlan.c
diff -u src/sys/net/if_vlan.c:1.97.2.17 src/sys/net/if_vlan.c:1.97.2.18
--- src/sys/net/if_vlan.c:1.97.2.17	Thu Oct 24 15:48:37 2019
+++ src/sys/net/if_vlan.c	Wed Nov 13 12:53:34 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vlan.c,v 1.97.2.17 2019/10/24 15:48:37 martin Exp $	*/
+/*	$NetBSD: if_vlan.c,v 1.97.2.18 2019/11/13 12:53:34 martin Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.97.2.17 2019/10/24 15:48:37 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.97.2.18 2019/11/13 12:53:34 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -119,6 +119,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 
 #ifdef INET6
 #include 
 #include 
+#include 
 #endif
 
 #include "ioconf.h"
@@ -520,6 +521,12 @@ vlan_config(struct ifvlan *ifv, struct i
 	nmib->ifvm_p = p;
 	nmib->ifvm_tag = vid;
 	ifv->ifv_if.if_mtu = p->if_mtu - nmib->ifvm_mtufudge;
+#ifdef INET6
+	KERNEL_LOCK_UNLESS_NET_MPSAFE();
+	if (in6_present)
+		nd6_setmtu(ifp);
+	KERNEL_UNLOCK_UNLESS_NET_MPSAFE();
+#endif
 	ifv->ifv_if.if_flags = p->if_flags &
 	(IFF_UP | IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
 



CVS commit: [netbsd-8] src/sys/net

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:53:35 UTC 2019

Modified Files:
src/sys/net [netbsd-8]: if_vlan.c

Log Message:
Pull up following revision(s) (requested by yamaguchi in ticket #1434):

sys/net/if_vlan.c: revision 1.148

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
>From t-kusaba@IIJ


To generate a diff of this commit:
cvs rdiff -u -r1.97.2.17 -r1.97.2.18 src/sys/net/if_vlan.c

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



CVS commit: [netbsd-9] src

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:50:30 UTC 2019

Modified Files:
src/sys/net [netbsd-9]: if_vlan.c
src/tests/net/if_vlan [netbsd-9]: t_vlan.sh

Log Message:
Pull up following revision(s) (requested by yamaguchi in ticket #420):

sys/net/if_vlan.c: revision 1.148
tests/net/if_vlan/t_vlan.sh: revision 1.16

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
>From t-kusaba@IIJ

atf: add test cases for MTU that is increased on SIOCSETVLAN
>From t-kusaba@IIJ, thanks


To generate a diff of this commit:
cvs rdiff -u -r1.141.2.2 -r1.141.2.3 src/sys/net/if_vlan.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/tests/net/if_vlan/t_vlan.sh

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



CVS commit: [netbsd-9] src

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 12:50:30 UTC 2019

Modified Files:
src/sys/net [netbsd-9]: if_vlan.c
src/tests/net/if_vlan [netbsd-9]: t_vlan.sh

Log Message:
Pull up following revision(s) (requested by yamaguchi in ticket #420):

sys/net/if_vlan.c: revision 1.148
tests/net/if_vlan/t_vlan.sh: revision 1.16

Fix a bug that vlan(4) fragments IPv6 packets
even the MTU > packet length.

The bug is appeared when the mtu is increased on SIOCSETVLAN.
>From t-kusaba@IIJ

atf: add test cases for MTU that is increased on SIOCSETVLAN
>From t-kusaba@IIJ, thanks


To generate a diff of this commit:
cvs rdiff -u -r1.141.2.2 -r1.141.2.3 src/sys/net/if_vlan.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/tests/net/if_vlan/t_vlan.sh

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

Modified files:

Index: src/sys/net/if_vlan.c
diff -u src/sys/net/if_vlan.c:1.141.2.2 src/sys/net/if_vlan.c:1.141.2.3
--- src/sys/net/if_vlan.c:1.141.2.2	Wed Oct 23 19:28:49 2019
+++ src/sys/net/if_vlan.c	Wed Nov 13 12:50:30 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vlan.c,v 1.141.2.2 2019/10/23 19:28:49 martin Exp $	*/
+/*	$NetBSD: if_vlan.c,v 1.141.2.3 2019/11/13 12:50:30 martin Exp $	*/
 
 /*
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.141.2.2 2019/10/23 19:28:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.141.2.3 2019/11/13 12:50:30 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -119,6 +119,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 
 #ifdef INET6
 #include 
 #include 
+#include 
 #endif
 
 #include "ioconf.h"
@@ -540,6 +541,12 @@ vlan_config(struct ifvlan *ifv, struct i
 	nmib->ifvm_p = p;
 	nmib->ifvm_tag = vid;
 	ifv->ifv_if.if_mtu = p->if_mtu - nmib->ifvm_mtufudge;
+#ifdef INET6
+	KERNEL_LOCK_UNLESS_NET_MPSAFE();
+	if (in6_present)
+		nd6_setmtu(ifp);
+	KERNEL_UNLOCK_UNLESS_NET_MPSAFE();
+#endif
 	ifv->ifv_if.if_flags = p->if_flags &
 	(IFF_UP | IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
 

Index: src/tests/net/if_vlan/t_vlan.sh
diff -u src/tests/net/if_vlan/t_vlan.sh:1.15 src/tests/net/if_vlan/t_vlan.sh:1.15.2.1
--- src/tests/net/if_vlan/t_vlan.sh:1.15	Tue Dec 11 03:47:51 2018
+++ src/tests/net/if_vlan/t_vlan.sh	Wed Nov 13 12:50:30 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: t_vlan.sh,v 1.15 2018/12/11 03:47:51 ozaki-r Exp $
+#	$NetBSD: t_vlan.sh,v 1.15.2.1 2019/11/13 12:50:30 martin Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -33,9 +33,9 @@ IP_LOCAL1=10.0.1.1
 IP_REMOTE0=10.0.0.2
 IP_REMOTE1=10.0.1.2
 IP_MCADDR0=224.0.0.10
-IP6_LOCAL0=fc00:0::1
+IP6_LOCAL0=fc00::1
 IP6_LOCAL1=fc00:1::1
-IP6_REMOTE0=fc00:0::2
+IP6_REMOTE0=fc00::2
 IP6_REMOTE1=fc00:1::2
 IP6_MCADDR0=ff11::10
 ETH_IP_MCADDR0=01:00:5e:00:00:0a
@@ -255,6 +255,133 @@ vlan_basic6_cleanup()
 	cleanup
 }
 
+vlan_auto_follow_mtu_body_common()
+{
+	local atf_ifconfig="atf_check -s exit:0 rump.ifconfig"
+	local outfile=./out
+	local af=inet
+	local prefix=24
+	local local0=$IP_LOCAL0
+	local remote0=$IP_REMOTE0
+	local ping_cmd="rump.ping -D -n -w 1 -c 1"
+	local mtu=1500
+	local vlan_mtu=`expr $mtu - 4`
+	# ipv4 header=20bytes, icmp header=8bytes
+	local padding=`expr $vlan_mtu - 20 - 8`
+	local over_padding=`expr $vlan_mtu - 20 - 8 + 1`
+	local nonfrag_msg="$local0 > $remote0: ICMP echo request"
+	# unused for ipv4
+	local frag_msg=""
+
+	if [ x"$1" = x"inet6" ]; then
+		af="inet6"
+		prefix=64
+		local0=$IP6_LOCAL0
+		remote0=$IP6_REMOTE0
+		# ipv6 header=40bytes, icmpv6 header=8bytes
+		padding=`expr $vlan_mtu - 40 - 8`
+		over_padding=`expr $vlan_mtu - 40 - 8 + 1`
+		ping_cmd="rump.ping6 -mm -n -c 1 -i 1"
+		nonfrag_msg="$local0 > $remote0: ICMP6, echo request"
+		frag_msg="$local0 > $remote0: frag .* ICMP6, echo request"
+	fi
+
+	rump_server_add_iface $SOCK_LOCAL shmif0 $BUS
+	rump_server_add_iface $SOCK_REMOTE shmif0 $BUS
+
+	export RUMP_SERVER=$SOCK_LOCAL
+	$atf_ifconfig shmif0 up
+	export RUMP_SERVER=$SOCK_REMOTE
+	$atf_ifconfig shmif0 up
+
+	export RUMP_SERVER=$SOCK_LOCAL
+	$atf_ifconfig vlan0 create
+
+	# since upper bound of shmif's mtu is 1500,
+	# so we lower vlan's mtu instead of raising shmif's.
+	# to do this, we change the interface's parameter
+	# such as ND_IFINFO(ifp)->maxmtu that is changed by SIOCSIFMTU.
+
+	# $atf_config shmif0 mtu 1600
+	$atf_ifconfig vlan0 vlan 10 vlanif shmif0
+	$atf_ifconfig vlan0 mtu 1400
+	$atf_ifconfig vlan0 -vlanif shmif0
+
+	$atf_ifconfig vlan0 vlan 10 vlanif shmif0
+	$atf_ifconfig vlan0 $af $local0/$prefix
+	$atf_ifconfig vlan0 up
+	$atf_ifconfig -w 10
+
+	export RUMP_SERVER=$SOCK_REMOTE
+	$atf_ifconfig vlan0 create
+	$atf_ifconfig vlan0 vlan 10 vlanif shmif0
+	$atf_ifconfig vlan0 $af $remote0/$prefix
+	$atf_ifconfig vlan0 up
+	$atf_ifconfig -w 10
+
+	extract_new_packets $BUS > $outfile
+	export RUMP_SERVER=$SOCK_LOCAL
+
+	atf_check -s exit:0 -o 

Re: CVS commit: src [llvm]

2019-11-13 Thread Tobias Nygren
On Tue, 12 Nov 2019 23:10:45 +0100
Joerg Sonnenberger  wrote:

> On Tue, Nov 12, 2019 at 04:31:00PM +0100, Maxime Villard wrote:
> > Le 12/11/2019 à 16:06, Maxime Villard a écrit :
> > > Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit :
> > > > On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote:
> > > > > Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit :
> > > > > > Module Name:    src
> > > > > > Committed By:    joerg
> > > > > > Date:    Mon Nov 11 22:45:32 UTC 2019
> > > > > > 
> > > > > > [...]
> > > > > > Log Message:
> > > > > > Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
> > > > > 
> > > > > Since this change, I cannot cross-compile GENERIC amd64 from Linux:
> > > > 
> > > > What non-standard settings are you using? amd64 is certainly on my list
> > > > of architectures to test.
> > > 
> > > No particular settings. Just the latest src/ compiled unchanged with
> > > 
> > > ./build.sh -j4 -U -O ../obj -V MKLLVM=yes -V MKGCC=no -V HAVE_LLVM=yes -m 
> > > amd64 kernel=GENERIC
> > 
> > I'm also having the same issue on a NetBSD-amd64 host, with again an 
> > unchanged
> > src/ and the same command
> 
> Is that a clean build? I certainly do full release builds for all LLVM
> architectures and I don't get this.

I was able to reproduce the problem by building in a NetBSD-9 chroot
with a GCC host toolchain, but not with my -current LLVM host
toolchain. I wonder if GCC miscompiles something.


Re: CVS commit: src [llvm]

2019-11-13 Thread Thomas Klausner
On Wed, Nov 13, 2019 at 12:30:52PM +0100, Tobias Nygren wrote:
> On Wed, 13 Nov 2019 10:29:52 +0100
> Maxime Villard  wrote:
> 
> > Am I the only one seeing this? It's hard to blame the configuration when the
> > failure is seen on several hardware and several OSes.
> 
> FWIW I'm typing this from an x86_64 machine running today's LLVM
> userland and kernel. I have some local patches but none that should be
> relevant.
> 

I have a different build problem:

# build.sh -j 32 -x -V MKDEBUG=yes -V MKDEBUGLIB=yes -V MKLLVM=yes -T 
/usr/obj/tools.gcc -m amd64 -O /usr/obj/src.amd64 -D /usr/obj/
amd64.gcc.20191113 -R /usr/obj/amd64.gcc.20191113.release distribution

In file included from 
/usr/src/external/apache2/llvm/lib/libclangParse/../../dist/clang/include/clang/Parse/Parser.h:25,
 from 
/usr/src/external/apache2/llvm/lib/libclangParse/../../dist/clang/lib/Parse/ParseCXXInlineMethods.cpp:13:
/usr/src/external/apache2/llvm/lib/libclangParse/../../dist/clang/include/clang/Sema/Sema.h:2566:42:
 error: 'clang::Sema::DefaultedFunctionKind::Comparison'
 is too small to hold all values of 'enum class 
clang::Sema::DefaultedComparisonKind' [-Werror]
 DefaultedComparisonKind Comparison : 8;
  ^
Clean checkout from an hour or two ago.
 Thomas


Re: CVS commit: src [llvm]

2019-11-13 Thread Tobias Nygren
On Wed, 13 Nov 2019 10:29:52 +0100
Maxime Villard  wrote:

> Am I the only one seeing this? It's hard to blame the configuration when the
> failure is seen on several hardware and several OSes.

FWIW I'm typing this from an x86_64 machine running today's LLVM
userland and kernel. I have some local patches but none that should be
relevant.


CVS commit: src/doc

2019-11-13 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Nov 13 10:52:40 UTC 2019

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
Note import of dhcpcd-8.1.2


To generate a diff of this commit:
cvs rdiff -u -r1.1669 -r1.1670 src/doc/3RDPARTY
cvs rdiff -u -r1.2612 -r1.2613 src/doc/CHANGES

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

Modified files:

Index: src/doc/3RDPARTY
diff -u src/doc/3RDPARTY:1.1669 src/doc/3RDPARTY:1.1670
--- src/doc/3RDPARTY:1.1669	Tue Nov 12 21:03:49 2019
+++ src/doc/3RDPARTY	Wed Nov 13 10:52:40 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: 3RDPARTY,v 1.1669 2019/11/12 21:03:49 christos Exp $
+#	$NetBSD: 3RDPARTY,v 1.1670 2019/11/13 10:52:40 roy Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -327,12 +327,12 @@ Notes:
 Use the dhcp2netbsd script.
 
 Package:	dhcpcd
-Version:	8.1.1
-Current Vers:	8.1.1
+Version:	8.1.2
+Current Vers:	8.1.2
 Maintainer:	roy
 Archive Site:	ftp://roy.marples.name/pub/dhcpcd/
 Home Page:	http://roy.marples.name/projects/dhcpcd/
-Date:		2019-10-16
+Date:		2019-11-13
 Mailing List: 	dhcpcd-disc...@marples.name
 License:	BSD (2-clause)
 Location:	external/bsd/dhcpcd/dist

Index: src/doc/CHANGES
diff -u src/doc/CHANGES:1.2612 src/doc/CHANGES:1.2613
--- src/doc/CHANGES:1.2612	Tue Nov 12 21:03:49 2019
+++ src/doc/CHANGES	Wed Nov 13 10:52:40 2019
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2612 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2613 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -75,3 +75,4 @@ Changes from NetBSD 9.0 to NetBSD 10.0:
 		KS8731 and KSZ9477.
 		[msaitoh 20191107]
 	tmux(1): Imported 2.9a. [christos 20191112]
+	dhcpcd(8): Import 8.1.2. [roy 20191113]



CVS commit: src/doc

2019-11-13 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Nov 13 10:52:40 UTC 2019

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
Note import of dhcpcd-8.1.2


To generate a diff of this commit:
cvs rdiff -u -r1.1669 -r1.1670 src/doc/3RDPARTY
cvs rdiff -u -r1.2612 -r1.2613 src/doc/CHANGES

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



CVS commit: src/external/bsd/dhcpcd/dist/src

2019-11-13 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Nov 13 10:50:22 UTC 2019

Modified Files:
src/external/bsd/dhcpcd/dist/src: dhcp.c dhcp6.c dhcpcd.c if-bsd.c
ipv6nd.c

Log Message:
Sync


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/bsd/dhcpcd/dist/src/dhcp.c
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/dhcpcd/dist/src/dhcp6.c
cvs rdiff -u -r1.28 -r1.29 src/external/bsd/dhcpcd/dist/src/dhcpcd.c
cvs rdiff -u -r1.14 -r1.15 src/external/bsd/dhcpcd/dist/src/if-bsd.c
cvs rdiff -u -r1.12 -r1.13 src/external/bsd/dhcpcd/dist/src/ipv6nd.c

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



CVS commit: src/external/bsd/dhcpcd/dist/src

2019-11-13 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Nov 13 10:50:22 UTC 2019

Modified Files:
src/external/bsd/dhcpcd/dist/src: dhcp.c dhcp6.c dhcpcd.c if-bsd.c
ipv6nd.c

Log Message:
Sync


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/external/bsd/dhcpcd/dist/src/dhcp.c
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/dhcpcd/dist/src/dhcp6.c
cvs rdiff -u -r1.28 -r1.29 src/external/bsd/dhcpcd/dist/src/dhcpcd.c
cvs rdiff -u -r1.14 -r1.15 src/external/bsd/dhcpcd/dist/src/if-bsd.c
cvs rdiff -u -r1.12 -r1.13 src/external/bsd/dhcpcd/dist/src/ipv6nd.c

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/dhcpcd/dist/src/dhcp.c
diff -u src/external/bsd/dhcpcd/dist/src/dhcp.c:1.29 src/external/bsd/dhcpcd/dist/src/dhcp.c:1.30
--- src/external/bsd/dhcpcd/dist/src/dhcp.c:1.29	Wed Oct 16 14:54:39 2019
+++ src/external/bsd/dhcpcd/dist/src/dhcp.c	Wed Nov 13 10:50:22 2019
@@ -41,6 +41,10 @@
 #include 
 #undef __FAVOR_BSD
 
+#ifdef AF_LINK
+#  include 
+#endif
+
 #include 
 #include 
 #include 
@@ -132,9 +136,7 @@ static void dhcp_arp_found(struct arp_st
 #endif
 static void dhcp_handledhcp(struct interface *, struct bootp *, size_t,
 const struct in_addr *);
-#ifdef IP_PKTINFO
 static void dhcp_handleifudp(void *);
-#endif
 static int dhcp_initstate(struct interface *);
 
 void
@@ -1550,7 +1552,10 @@ dhcp_openudp(struct interface *ifp)
 	n = 1;
 	if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, , sizeof(n)) == -1)
 		goto eexit;
-#ifdef IP_RECVPKTINFO
+#ifdef IP_RECVIF
+	if (setsockopt(s, IPPROTO_IP, IP_RECVIF, , sizeof(n)) == -1)
+		goto eexit;
+#else
 	if (setsockopt(s, IPPROTO_IP, IP_RECVPKTINFO, , sizeof(n)) == -1)
 		goto eexit;
 #endif
@@ -1647,39 +1652,36 @@ dhcp_makeudppacket(size_t *sz, const uin
 static ssize_t
 dhcp_sendudp(struct interface *ifp, struct in_addr *to, void *data, size_t len)
 {
-	int s;
-	struct msghdr msg;
-	struct sockaddr_in sin;
-	struct iovec iov[1];
-	struct dhcp_state *state = D_STATE(ifp);
-	ssize_t r;
-
-	iov[0].iov_base = data;
-	iov[0].iov_len = len;
-
-	memset(, 0, sizeof(sin));
-	sin.sin_family = AF_INET;
-	sin.sin_addr = *to;
-	sin.sin_port = htons(BOOTPS);
+	struct sockaddr_in sin = {
+		.sin_family = AF_INET,
+		.sin_addr = *to,
+		.sin_port = htons(BOOTPS),
 #ifdef HAVE_SA_LEN
-	sin.sin_len = sizeof(sin);
+		.sin_len = sizeof(sin),
 #endif
+	};
+	struct iovec iov[] = {
+		{ .iov_base = data, .iov_len = len }
+	};
+	struct msghdr msg = {
+		.msg_name = (void *),
+		.msg_namelen = sizeof(sin),
+		.msg_iov = iov,
+		.msg_iovlen = 1,
+	};
+	struct dhcp_state *state = D_STATE(ifp);
+	ssize_t r;
+	int fd;
 
-	memset(, 0, sizeof(msg));
-	msg.msg_name = (void *)
-	msg.msg_namelen = sizeof(sin);
-	msg.msg_iov = iov;
-	msg.msg_iovlen = 1;
-
-	s = state->udp_fd;
-	if (s == -1) {
-		s = dhcp_openudp(ifp);
-		if (s == -1)
+	fd = state->udp_fd;
+	if (fd == -1) {
+		fd = dhcp_openudp(ifp);
+		if (fd == -1)
 			return -1;
 	}
-	r = sendmsg(s, , 0);
+	r = sendmsg(fd, , 0);
 	if (state->udp_fd == -1)
-		close(s);
+		close(fd);
 	return r;
 }
 
@@ -1780,7 +1782,7 @@ send_message(struct interface *ifp, uint
 	 * As such we remove it from consideration without actually
 	 * stopping the interface. */
 	if (r == -1) {
-		logerr("%s: if_sendraw", ifp->name);
+		logerr("%s: bpf_send", ifp->name);
 		switch(errno) {
 		case ENETDOWN:
 		case ENETRESET:
@@ -2257,30 +2259,27 @@ dhcp_bind(struct interface *ifp)
 
 	ipv4_applyaddr(ifp);
 
-#ifdef IP_PKTINFO
 	/* Close the BPF filter as we can now receive DHCP messages
 	 * on a UDP socket. */
-	if (state->udp_fd == -1 ||
-	(state->old != NULL && state->old->yiaddr != state->new->yiaddr))
-	{
-		dhcp_close(ifp);
-		/* If not in master mode, open an address specific socket. */
-		if (ctx->udp_fd == -1) {
-			state->udp_fd = dhcp_openudp(ifp);
-			if (state->udp_fd == -1) {
-logerr(__func__);
-/* Address sharing without master mode is
- * not supported. It's also possible another
- * DHCP client could be running which is
- * even worse.
- * We still need to work, so re-open BPF. */
-dhcp_openbpf(ifp);
-			} else
-eloop_event_add(ctx->eloop,
-state->udp_fd, dhcp_handleifudp, ifp);
-		}
+	if (!(state->udp_fd == -1 ||
+	(state->old != NULL && state->old->yiaddr != state->new->yiaddr)))
+		return;
+	dhcp_close(ifp);
+
+	/* If not in master mode, open an address specific socket. */
+	if (ctx->udp_fd != -1)
+		return;
+	state->udp_fd = dhcp_openudp(ifp);
+	if (state->udp_fd == -1) {
+		logerr(__func__);
+		/* Address sharing without master mode is not supported.
+		 * It's also possible another DHCP client could be running,
+		 * which is even worse.
+		 * We still need to work, so re-open BPF. */
+		dhcp_openbpf(ifp);
+		return;
 	}
-#endif
+	eloop_event_add(ctx->eloop, state->udp_fd, dhcp_handleifudp, ifp);
 }
 
 static void
@@ -2609,6 +2608,11 @@ dhcp_reboot(struct interface 

CVS import: src/external/bsd/dhcpcd/dist

2019-11-13 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Nov 13 10:49:21 UTC 2019

Update of /cvsroot/src/external/bsd/dhcpcd/dist
In directory ivanova.netbsd.org:/tmp/cvs-serv23019

Log Message:
Import dhcpcd-8.1.2 with the following changes:
 * hooks: STOPPED is now run on timeout and exit
 * BSD: Use IP_REVCIF rather than IN_PKTINFO
 * DHCP: When rebinding, ensure we have a DHCP ARP state
 * RA: Sort routers when reachability changes
 * RA: Apply hoplimit, reachable and retrans timer values to kernel
 * RA: Warn if advertised MTU > interface MTU
 * dhcpcd: Report SSID connection to when we gain carrier
 * DHCP: Fix corruption of address flags when renewing

Status:

Vendor Tag: ROY
Release Tags:   dhcpcd-8_1_2

U src/external/bsd/dhcpcd/dist/LICENSE
U src/external/bsd/dhcpcd/dist/README.md
U src/external/bsd/dhcpcd/dist/src/defs.h
U src/external/bsd/dhcpcd/dist/src/common.c
U src/external/bsd/dhcpcd/dist/src/control.c
C src/external/bsd/dhcpcd/dist/src/dhcpcd.c
U src/external/bsd/dhcpcd/dist/src/duid.c
U src/external/bsd/dhcpcd/dist/src/eloop.c
U src/external/bsd/dhcpcd/dist/src/logerr.c
U src/external/bsd/dhcpcd/dist/src/if.c
U src/external/bsd/dhcpcd/dist/src/if-options.c
U src/external/bsd/dhcpcd/dist/src/sa.c
U src/external/bsd/dhcpcd/dist/src/route.c
U src/external/bsd/dhcpcd/dist/src/dhcp-common.c
U src/external/bsd/dhcpcd/dist/src/script.c
U src/external/bsd/dhcpcd/dist/src/auth.c
C src/external/bsd/dhcpcd/dist/src/if-bsd.c
C src/external/bsd/dhcpcd/dist/src/dhcp.c
U src/external/bsd/dhcpcd/dist/src/ipv4.c
U src/external/bsd/dhcpcd/dist/src/bpf.c
U src/external/bsd/dhcpcd/dist/src/arp.c
U src/external/bsd/dhcpcd/dist/src/ipv4ll.c
U src/external/bsd/dhcpcd/dist/src/ipv6.c
C src/external/bsd/dhcpcd/dist/src/ipv6nd.c
C src/external/bsd/dhcpcd/dist/src/dhcp6.c
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c
U src/external/bsd/dhcpcd/dist/src/common.h
U src/external/bsd/dhcpcd/dist/src/control.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd.h
U src/external/bsd/dhcpcd/dist/src/duid.h
U src/external/bsd/dhcpcd/dist/src/eloop.h
U src/external/bsd/dhcpcd/dist/src/logerr.h
U src/external/bsd/dhcpcd/dist/src/if.h
U src/external/bsd/dhcpcd/dist/src/if-options.h
U src/external/bsd/dhcpcd/dist/src/sa.h
U src/external/bsd/dhcpcd/dist/src/route.h
U src/external/bsd/dhcpcd/dist/src/dhcp-common.h
U src/external/bsd/dhcpcd/dist/src/script.h
U src/external/bsd/dhcpcd/dist/src/auth.h
U src/external/bsd/dhcpcd/dist/src/dhcp.h
U src/external/bsd/dhcpcd/dist/src/ipv4.h
U src/external/bsd/dhcpcd/dist/src/bpf.h
U src/external/bsd/dhcpcd/dist/src/arp.h
U src/external/bsd/dhcpcd/dist/src/ipv4ll.h
U src/external/bsd/dhcpcd/dist/src/ipv6.h
U src/external/bsd/dhcpcd/dist/src/ipv6nd.h
U src/external/bsd/dhcpcd/dist/src/dhcp6.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h
U src/external/bsd/dhcpcd/dist/src/dev.h
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.8.in
U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf
U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in
U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in
U src/external/bsd/dhcpcd/dist/hooks/01-test
U src/external/bsd/dhcpcd/dist/hooks/02-dump
U src/external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant
U src/external/bsd/dhcpcd/dist/hooks/15-timezone
U src/external/bsd/dhcpcd/dist/hooks/20-resolv.conf
U src/external/bsd/dhcpcd/dist/hooks/29-lookup-hostname
U src/external/bsd/dhcpcd/dist/hooks/30-hostname
U src/external/bsd/dhcpcd/dist/hooks/50-ntp.conf
U src/external/bsd/dhcpcd/dist/hooks/50-ypbind.in

5 conflicts created by this import.
Use the following command to help the merge:

cvs checkout -jROY:yesterday -jROY src/external/bsd/dhcpcd/dist



CVS commit: src/external/cddl/osnet/dev/fbt/x86

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 10:13:41 UTC 2019

Modified Files:
src/external/cddl/osnet/dev/fbt/x86: fbt_isa.c

Log Message:
Use x86_patch_window_{open,close}. This also fixes a bug: the CR0/PSL
reloads were inverted.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c

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



CVS commit: src/external/cddl/osnet/dev/fbt/x86

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 10:13:41 UTC 2019

Modified Files:
src/external/cddl/osnet/dev/fbt/x86: fbt_isa.c

Log Message:
Use x86_patch_window_{open,close}. This also fixes a bug: the CR0/PSL
reloads were inverted.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c

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

Modified files:

Index: src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c
diff -u src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c:1.1 src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c:1.2
--- src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c:1.1	Mon May 28 23:47:39 2018
+++ src/external/cddl/osnet/dev/fbt/x86/fbt_isa.c	Wed Nov 13 10:13:41 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: fbt_isa.c,v 1.1 2018/05/28 23:47:39 chs Exp $	*/
+/*	$NetBSD: fbt_isa.c,v 1.2 2019/11/13 10:13:41 maxv Exp $	*/
 
 /*
  * CDDL HEADER START
@@ -175,28 +175,15 @@ fbt_patch_tracepoint(fbt_probe_t *fbt, f
 void
 fbt_patch_tracepoint(fbt_probe_t *fbt, fbt_patchval_t val)
 {
-	u_long psl;
-	u_long cr0;
+	u_long psl, cr0;
 
-	/* Disable interrupts. */
-	psl = x86_read_psl();
-	x86_disable_intr();
-
-	/* Disable write protection in supervisor mode. */
-	cr0 = rcr0();
-	lcr0(cr0 & ~CR0_WP);
+	x86_patch_window_open(, );
 
 	for (; fbt != NULL; fbt = fbt->fbtp_next) {
 		*fbt->fbtp_patchpoint = val;
 	}
 
-	/* Write back and invalidate cache, flush pipelines. */
-	wbinvd();
-	x86_flush();
-	x86_write_psl(psl);
-
-	/* Re-enable write protection. */
-	lcr0(cr0);
+	x86_patch_window_close(psl, cr0);
 }
 #endif
 



CVS commit: src/sys/arch/sparc64/include

2019-11-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Wed Nov 13 10:06:39 UTC 2019

Modified Files:
src/sys/arch/sparc64/include: ctlreg.h psl.h

Log Message:
Revert workarounds for clang.
In-tree clang can now handle the "r" asm constraint for 64-bit values properly.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/sparc64/include/ctlreg.h
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sparc64/include/psl.h

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

Modified files:

Index: src/sys/arch/sparc64/include/ctlreg.h
diff -u src/sys/arch/sparc64/include/ctlreg.h:1.66 src/sys/arch/sparc64/include/ctlreg.h:1.67
--- src/sys/arch/sparc64/include/ctlreg.h:1.66	Fri Apr  5 23:09:18 2019
+++ src/sys/arch/sparc64/include/ctlreg.h	Wed Nov 13 10:06:38 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: ctlreg.h,v 1.66 2019/04/05 23:09:18 nakayama Exp $ */
+/*	$NetBSD: ctlreg.h,v 1.67 2019/11/13 10:06:38 nakayama Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath
@@ -485,13 +485,12 @@
 #ifdef __arch64__
 
 /* 64-bit kernel, non-constant */
-#define SPARC64_LD_NONCONST(ld, type)	\
+#define SPARC64_LD_NONCONST(ld)	\
 	__asm volatile(			\
 		"wr %2,%%g0,%%asi;	"\
 		#ld " [%1]%%asi,%0	"\
 		: "=r" (_v)		\
-		: "r" ((__uintptr_t)(loc)), "r" (asi),			\
-		  "m" (*(type *)(__uintptr_t)(loc)))
+		: "r" ((__uintptr_t)(loc)), "r" (asi))
 
 #if defined(__GNUC__) && defined(__OPTIMIZE__)
 #define SPARC64_LD_DEF(ld, type, vtype)	\
@@ -502,10 +501,9 @@ static __inline type ld(paddr_t loc, int
 		__asm volatile(		\
 			#ld " [%1]%2,%0		"			\
 			: "=r" (_v)	\
-			: "r" ((__uintptr_t)(loc)), "n" (asi),		\
-			  "m" (*(type *)(__uintptr_t)(loc)));		\
+			: "r" ((__uintptr_t)(loc)), "n" (asi));		\
 	else\
-		SPARC64_LD_NONCONST(ld, type);\
+		SPARC64_LD_NONCONST(ld);\
 	return _v;			\
 }
 #else
@@ -513,7 +511,7 @@ static __inline type ld(paddr_t loc, int
 static __inline type ld(paddr_t loc, int asi)\
 {	\
 	vtype _v;			\
-	SPARC64_LD_NONCONST(ld, type);	\
+	SPARC64_LD_NONCONST(ld);	\
 	return _v;			\
 }
 #endif
@@ -679,12 +677,12 @@ SPARC64_LD_DEF64(ldxa, uint64_t)
 #ifdef __arch64__
 
 /* 64-bit kernel, non-constant */
-#define SPARC64_ST_NONCONST(st, type)	\
+#define SPARC64_ST_NONCONST(st)	\
 	__asm volatile(			\
-		"wr %3,%%g0,%%asi;	"\
-		#st " %1,[%2]%%asi	"\
-		: "=m" (*(type *)(__uintptr_t)(loc))			\
-		: "r" (value), "r" ((__uintptr_t)(loc)), "r" (asi))
+		"wr %2,%%g0,%%asi;	"\
+		#st " %0,[%1]%%asi	"\
+		: : "r" (value), "r" ((__uintptr_t)(loc)),		\
+		"r" (asi))
 
 #if defined(__GNUC__) && defined(__OPTIMIZE__)
 #define SPARC64_ST_DEF(st, type)	\
@@ -692,18 +690,17 @@ static __inline void st(paddr_t loc, int
 {	\
 	if (__builtin_constant_p(asi))	\
 		__asm volatile(		\
-			#st " %1,[%2]%3		"			\
-			: "=m" (*(type *)(__uintptr_t)(loc))		\
-			: "r" (value), "r" ((__uintptr_t)(loc)),	\
-			  "n" (asi));	\
+			#st " %0,[%1]%2		"			\
+			: : "r" (value), "r" ((__uintptr_t)(loc)),	\
+			"n" (asi));	\
 	else\
-		SPARC64_ST_NONCONST(st, type);\
+		SPARC64_ST_NONCONST(st);\
 }
 #else
 #define SPARC64_ST_DEF(st, type)	\
 static __inline void st(paddr_t loc, int asi, type value)		\
 {	\
-	SPARC64_ST_NONCONST(st, type);	\
+	SPARC64_ST_NONCONST(st);	\
 }
 #endif
 #define SPARC64_ST_DEF64(st, type)	SPARC64_ST_DEF(st, type)

Index: src/sys/arch/sparc64/include/psl.h
diff -u src/sys/arch/sparc64/include/psl.h:1.60 src/sys/arch/sparc64/include/psl.h:1.61
--- src/sys/arch/sparc64/include/psl.h:1.60	Sat Apr  6 21:40:15 2019
+++ src/sys/arch/sparc64/include/psl.h	Wed Nov 13 10:06:38 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: psl.h,v 1.60 2019/04/06 21:40:15 nakayama Exp $ */
+/*	$NetBSD: psl.h,v 1.61 2019/11/13 10:06:38 nakayama Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -322,13 +322,11 @@ static __inline void set##name(type _val
 	__asm volatile(#wr " %0,0,%" #reg : : "r" (_val) : "memory");	\
 }
 
-/*
- * XXX: clang's "r" constraint cannot handle 64-bit,
- * so use 32-bit kernel code as a workaround.
- */
-#if defined(__arch64__) && !defined(__clang__)
+#ifdef __arch64__
 #define SPARC64_RDCONST64_DEF(rd, name, reg) \
 	SPARC64_RDCONST_DEF(rd, name, reg, uint64_t)
+#define SPARC64_RD64_DEF(rd, name, reg) SPARC64_RD_DEF(rd, name, reg, uint64_t)
+#define SPARC64_WR64_DEF(wr, name, reg) SPARC64_WR_DEF(wr, name, reg, uint64_t)
 #else
 #define SPARC64_RDCONST64_DEF(rd, name, reg)\
 static __inline __constfunc uint64_t get##name(void)			\
@@ -338,12 +336,6 @@ static __inline __constfunc uint64_t get
 		: "=r" (_hi), "=r" (_lo) : : constasm_clobbers);	\
 	return ((uint64_t)_hi << 32) | _lo;\
 }
-#endif
-
-#ifdef __arch64__
-#define SPARC64_RD64_DEF(rd, name, reg) SPARC64_RD_DEF(rd, name, reg, uint64_t)
-#define SPARC64_WR64_DEF(wr, name, reg) SPARC64_WR_DEF(wr, name, reg, uint64_t)
-#else
 #define 

CVS commit: src/sys/arch/sparc64/include

2019-11-13 Thread Takeshi Nakayama
Module Name:src
Committed By:   nakayama
Date:   Wed Nov 13 10:06:39 UTC 2019

Modified Files:
src/sys/arch/sparc64/include: ctlreg.h psl.h

Log Message:
Revert workarounds for clang.
In-tree clang can now handle the "r" asm constraint for 64-bit values properly.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/sparc64/include/ctlreg.h
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sparc64/include/psl.h

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



Re: CVS commit: src [llvm]

2019-11-13 Thread Maxime Villard

Le 12/11/2019 à 23:10, Joerg Sonnenberger a écrit :

On Tue, Nov 12, 2019 at 04:31:00PM +0100, Maxime Villard wrote:

Le 12/11/2019 à 16:06, Maxime Villard a écrit :

Le 12/11/2019 à 14:37, Joerg Sonnenberger a écrit :

On Tue, Nov 12, 2019 at 11:39:09AM +0100, Maxime Villard wrote:

Le 11/11/2019 à 23:45, Joerg Sonnenberger a écrit :

Module Name:    src
Committed By:    joerg
Date:    Mon Nov 11 22:45:32 UTC 2019

[...]
Log Message:
Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)


Since this change, I cannot cross-compile GENERIC amd64 from Linux:


What non-standard settings are you using? amd64 is certainly on my list
of architectures to test.


No particular settings. Just the latest src/ compiled unchanged with

./build.sh -j4 -U -O ../obj -V MKLLVM=yes -V MKGCC=no -V HAVE_LLVM=yes -m amd64 
kernel=GENERIC


I'm also having the same issue on a NetBSD-amd64 host, with again an unchanged
src/ and the same command


Is that a clean build? I certainly do full release builds for all LLVM
architectures and I don't get this.


Yes, a clean build.

I've done two again just now, on different physical machines. One has NetBSD,
the other has Linux.

I deleted the src and obj directories and started from scratch using github,
with the following commands exactly as-is on both hosts from an empty folder:

git clone https://github.com/NetBSD/src.git
cd src
./build.sh -j 4 -U -O ../obj -V MKGCC=no -V MKLLVM=yes -V HAVE_LLVM=yes 
-m amd64 tools
./build.sh -j 4 -U -O ../obj -V MKGCC=no -V MKLLVM=yes -V HAVE_LLVM=yes 
-m amd64 kernel=GENERIC

Both hosts fail the same way.

My two tests from yesterday were on the same physical machine but with both
NetBSD/Linux, using the same commands as above except that it was anoncvs
instead of github, and both hosts failed the same way.

Am I the only one seeing this? It's hard to blame the configuration when the
failure is seen on several hardware and several OSes.


CVS commit: src

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 09:59:02 UTC 2019

Modified Files:
src: UPDATING

Log Message:
Mention LLVM fallout


To generate a diff of this commit:
cvs rdiff -u -r1.304 -r1.305 src/UPDATING

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

Modified files:

Index: src/UPDATING
diff -u src/UPDATING:1.304 src/UPDATING:1.305
--- src/UPDATING:1.304	Wed Oct 23 16:26:42 2019
+++ src/UPDATING	Wed Nov 13 09:59:02 2019
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.304 2019/10/23 16:26:42 martin Exp $
+$NetBSD: UPDATING,v 1.305 2019/11/13 09:59:02 martin Exp $
 
 This file (UPDATING) is intended to be a brief reference to recent
 changes that might cause problems in the build process, and a guide for
@@ -19,6 +19,10 @@ See also: BUILDING, build.sh, Makefile.
 Recent changes:
 ^^^
 
+20191112:
+	The LLVM update requires a clean rebuild for all architectures using
+	LLVM during the tools build phase (i386, amd64, aarch64).
+
 20191022:
 	Ports amd64 and aarch64 switched to GCC 8.3 by default.
 	In-place ("expert mode", build.sh -E) builds are not supported



CVS commit: src

2019-11-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 13 09:59:02 UTC 2019

Modified Files:
src: UPDATING

Log Message:
Mention LLVM fallout


To generate a diff of this commit:
cvs rdiff -u -r1.304 -r1.305 src/UPDATING

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



case-sensitive APFS volumes

2019-11-13 Thread Christoph Badura
On Tue, Sep 03, 2019 at 07:31:06AM -0700, Jason Thorpe wrote:
> If your Mac has APFS, it's not quite that bad -- you can create a new
> file system that's case-insensitive inside the same APFS container as
> the file system with your home directory and space-share with that
> file system (the default behavior).  You can do this all within Disk
> Utility without having to remember any command line magic.

Just HTF does one add the same cryptographic users that the / volume has?
TFM does not tell.  It just says that "indeed, they should be added before
encryption".

Maybe we can document this for the benfit of other NetBSD developers.

And yes, I do *not* want to dink around in the Disk Utility GUI.
Automation or GTFO.

--chris


CVS commit: src/sys/arch/usermode/usermode

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 09:47:37 UTC 2019

Modified Files:
src/sys/arch/usermode/usermode: db_memrw.c

Log Message:
Switch to the new PTE naming.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/usermode/db_memrw.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/arch/usermode/usermode/db_memrw.c
diff -u src/sys/arch/usermode/usermode/db_memrw.c:1.5 src/sys/arch/usermode/usermode/db_memrw.c:1.6
--- src/sys/arch/usermode/usermode/db_memrw.c:1.5	Sat Mar  9 08:42:26 2019
+++ src/sys/arch/usermode/usermode/db_memrw.c	Wed Nov 13 09:47:37 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_memrw.c,v 1.5 2019/03/09 08:42:26 maxv Exp $	*/
+/*	$NetBSD: db_memrw.c,v 1.6 2019/11/13 09:47:37 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.5 2019/03/09 08:42:26 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_memrw.c,v 1.6 2019/11/13 09:47:37 maxv Exp $");
 
 #include 
 #include 
@@ -162,7 +162,7 @@ db_write_text(vaddr_t addr, size_t size,
 		 * with this mapping and subtract it from the
 		 * total size.
 		 */
-		if (pte & PG_PS)
+		if (pte & PTE_PS)
 			limit = NBPD_L2 - (addr & (NBPD_L2 - 1));
 		else
 			limit = PAGE_SIZE - (addr & PGOFSET);



CVS commit: src/sys/arch/usermode/usermode

2019-11-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Wed Nov 13 09:47:37 UTC 2019

Modified Files:
src/sys/arch/usermode/usermode: db_memrw.c

Log Message:
Switch to the new PTE naming.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/usermode/usermode/db_memrw.c

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