Automated report: NetBSD-current/i386 build failure

2019-08-08 Thread NetBSD Test Fixture
This is an automatically generated notice of a NetBSD-current/i386
build failure.

The failure occurred on babylon5.netbsd.org, a NetBSD/amd64 host,
using sources from CVS date 2019.08.09.02.56.51.

An extract from the build.sh output follows:

   URE_FLAG_VER_5C00

/tmp/bracket/build/2019.08.09.02.56.51-i386/src/sys/dev/usb/if_ure.c:916:19: 
error: 'URE_FLAG_VER_5C20' undeclared (first use in this function); did you 
mean 'URE_FLAG_VER_5C10'?
   un->un_flags |= URE_FLAG_VER_5C20;
   ^
   URE_FLAG_VER_5C10

/tmp/bracket/build/2019.08.09.02.56.51-i386/src/sys/dev/usb/if_ure.c:919:19: 
error: 'URE_FLAG_VER_5C30' undeclared (first use in this function); did you 
mean 'URE_FLAG_VER_5C20'?
   un->un_flags |= URE_FLAG_VER_5C30;
   ^
   URE_FLAG_VER_5C20
*** [if_ure.o] Error code 1
nbmake[8]: stopped in 
/tmp/bracket/build/2019.08.09.02.56.51-i386/src/sys/modules/if_ure
1 error

The following commits were made between the last successful build and
the failed build:

2019.08.09.02.14.35 mrg src/sys/dev/usb/usbnet.h,v 1.8
2019.08.09.02.52.59 mrg src/sys/dev/usb/if_axe.c,v 1.108
2019.08.09.02.52.59 mrg src/sys/dev/usb/if_axen.c,v 1.58
2019.08.09.02.52.59 mrg src/sys/dev/usb/if_cdce.c,v 1.60
2019.08.09.02.52.59 mrg src/sys/dev/usb/if_ure.c,v 1.20
2019.08.09.02.56.51 mrg src/sys/dev/usb/TODO,v 1.49

Log files can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2019.08.html#2019.08.09.02.56.51


daily CVS update output

2019-08-08 Thread NetBSD source update


Updating src tree:
P src/distrib/sets/lists/modules/mi
P src/doc/3RDPARTY
P src/doc/CHANGES
U src/external/bsd/compiler_rt/Makefile
U src/external/bsd/compiler_rt/lib/Makefile
U src/external/bsd/compiler_rt/lib/clang/Makefile
U src/external/bsd/compiler_rt/lib/clang/include/Makefile
U src/external/bsd/compiler_rt/lib/clang/include/sanitizer/Makefile
U src/external/bsd/compiler_rt/lib/clang/include/xray/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/gen_dynamic_list.sh
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m32.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/m64.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/shared_deps.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/shlib_version
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/shlib_version
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/shlib_version
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/shlib_version
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/shlib_version
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/shlib_version
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/shlib_version
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile
U 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile
U src/external/bsd/compiler_rt/lib/clang/share/Makefile
P src/external/bsd/openldap/dist/ANNOUNCEMENT
P src/external/bsd/openldap/dist/CHANGES
P src/external/bsd/openldap/dist/COPYRIGHT
P src/external/bsd/openldap/dist/INSTALL
P src/external/bsd/openldap/dist/Makefile.in
P src/external/bsd/openldap/dist/README
P src/external/bsd/openldap/dist/configure
P src/external/bsd/openldap/dist/configure.in
P src/external/bsd/openldap/dist/build/dir.mk
P src/external/bsd/openldap/dist/build/info.mk
P src/external/bsd/openldap/dist/build/lib-shared.mk
P src/external/bsd/openldap/dist/build/lib-static.mk
P src/external/bsd/openldap/dist/build/lib.mk
P src/external/bsd/openldap/dist/build/ltmain.sh
P src/external/bsd/openldap/dist/build/man.mk
P src/external/bsd/openldap/dist/build/missing
P src/external/bsd/openldap/dist/build/mkdep
P src/external/bsd/openldap/dist/build/mkdep.aix
P 

Re: Automated report: NetBSD-current/i386 test failure

2019-08-08 Thread Paul Goyette

On Thu, 8 Aug 2019, Paul Goyette wrote:


I am investigating...


This should be fixed by sys/kern/kern_module.c rev 1.138






On Thu, 8 Aug 2019, NetBSD Test Fixture wrote:


This is an automatically generated notice of a new failure of the
NetBSD test suite.

The newly failing test case is:

   modules/t_builtin:busydisable

The above test failed in each of the last 3 test runs, and passed in
at least 27 consecutive runs before that.

The following commits were made between the last successful test and
the failed test:

   2019.08.07.00.38.01 pgoyette src/sys/dev/ccd.c,v 1.180
   2019.08.07.00.38.02 pgoyette src/sys/dev/iscsi/iscsi_main.c,v 1.31
   2019.08.07.00.38.02 pgoyette src/sys/dev/usb/usbnet.c,v 1.7
   2019.08.07.00.38.02 pgoyette src/sys/kern/kern_module.c,v 1.137
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_ipc.c,v 1.40
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_msg.c,v 1.75
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_sem.c,v 1.98
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_shm.c,v 1.137
   2019.08.07.00.38.02 pgoyette src/sys/miscfs/genfs/layer_vfsops.c,v 1.52
   2019.08.07.00.38.02 pgoyette src/sys/sys/module.h,v 1.47
   2019.08.07.00.38.02 pgoyette src/sys/sys/msg.h,v 1.28
   2019.08.07.00.38.02 pgoyette src/sys/sys/sem.h,v 1.34
   2019.08.07.00.38.02 pgoyette src/sys/sys/shm.h,v 1.53
   2019.08.07.00.39.23 pgoyette src/sys/sys/param.h,v 1.603
   2019.08.07.01.09.49 roy src/lib/libc/sys/read.2,v 1.37

Log files can be found at:

   
http://releng.NetBSD.org/b5reports/i386/commits-2019.08.html#2019.08.07.01.09.49

!DSPAM:5d4bb60467481808415646!




++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+



++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+


Re: Automated report: NetBSD-current/i386 test failure

2019-08-08 Thread Paul Goyette

I am investigating...


On Thu, 8 Aug 2019, NetBSD Test Fixture wrote:


This is an automatically generated notice of a new failure of the
NetBSD test suite.

The newly failing test case is:

   modules/t_builtin:busydisable

The above test failed in each of the last 3 test runs, and passed in
at least 27 consecutive runs before that.

The following commits were made between the last successful test and
the failed test:

   2019.08.07.00.38.01 pgoyette src/sys/dev/ccd.c,v 1.180
   2019.08.07.00.38.02 pgoyette src/sys/dev/iscsi/iscsi_main.c,v 1.31
   2019.08.07.00.38.02 pgoyette src/sys/dev/usb/usbnet.c,v 1.7
   2019.08.07.00.38.02 pgoyette src/sys/kern/kern_module.c,v 1.137
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_ipc.c,v 1.40
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_msg.c,v 1.75
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_sem.c,v 1.98
   2019.08.07.00.38.02 pgoyette src/sys/kern/sysv_shm.c,v 1.137
   2019.08.07.00.38.02 pgoyette src/sys/miscfs/genfs/layer_vfsops.c,v 1.52
   2019.08.07.00.38.02 pgoyette src/sys/sys/module.h,v 1.47
   2019.08.07.00.38.02 pgoyette src/sys/sys/msg.h,v 1.28
   2019.08.07.00.38.02 pgoyette src/sys/sys/sem.h,v 1.34
   2019.08.07.00.38.02 pgoyette src/sys/sys/shm.h,v 1.53
   2019.08.07.00.39.23 pgoyette src/sys/sys/param.h,v 1.603
   2019.08.07.01.09.49 roy src/lib/libc/sys/read.2,v 1.37

Log files can be found at:

   
http://releng.NetBSD.org/b5reports/i386/commits-2019.08.html#2019.08.07.01.09.49

!DSPAM:5d4bb60467481808415646!




++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+


Re: need help debugging libmicrohttpd regression on netbsd

2019-08-08 Thread N
Hi,

Martin Husemann transcribed 673 bytes:
> On Mon, Aug 05, 2019 at 10:46:13AM +, ng0 wrote:
> > Hi,
> > 
> > I have a problem with a regression in my Google Summer of Code project
> > which seems to only affect NetBSD in my last testing. The code can be
> > found at https://git.gnunet.org/libmicrohttpd.git/log/?h=dev/ng0/gsoc2019
> > or git cloned from https://git.gnunet.org/libmicrohttpd.git and check out
> > the dev/ng0/gsoc2019 branch.
> > 
> > I'm grateful for any pointers and advice into the right direction.
> 
> Just for clarification: you think this is a problem in your code
> or in NetBSD?
> 
> Either way, it would be helpfull if you could give short instructions
> how to reproduce the issue and what the fallout is.
> 
> Martin

I've looked a bit more into this yesterday.

To clarify, this is about libmicrohttpd code on NetBSD, not NetBSD code.

If we are unable to fix this, I'll get back to you.

On the bright side, the tests are failing on the default development
branch of libmicrohttpd and not just my Google Summer of Code branch.


NetBSD Security Advisory 2019-004: IPv6 neighbor cache leak on expiration

2019-08-08 Thread NetBSD Security-Officer


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

NetBSD Security Advisory 2019-004
=

Topic:  IPv6 neighbor cache leak on expiration

Version:NetBSD-current: affected up to 8.99.51
NetBSD 8.1: affected
NetBSD 7.2: not affected
NetBSD 7.1.2:   not affected
NetBSD 7.0.2:   not affected

Severity:   Remote DoS attack can cause the kernel to run out of memory

Fixed:  NetBSD-current: July 26, 2019
NetBSD-9 branch:not affected
NetBSD-8 branch:July 26, 2019
NetBSD-7 branch:not affected
NetBSD-7-2 branch:  not affected
NetBSD-7-1 branch:  not affected
NetBSD-7-0 branch:  not affected

Please note that NetBSD releases prior to 7.1 are no longer supported.
It is recommended that all users upgrade to a supported release.

Abstract


An unprivileged user can cause kernel resource exhaustion by creating many
IPv6 neighbor entries, because the GC mechanism will not delete them due to
a reference counting bug. An explicit cache flush will delete them,
recovering the used memory.

Technical Details
=

The garbage collection (GC) mechanism of IPv6 neighbor caches has a bug in
that it doesn't free expired neighbor caches (llentry) because of a missing
refcount decrement.

The leak occurs when:
 1) giving up a neighbor discovery for a cache,
 2) giving up a reachability confirmation for a cache,
 3) a cache expires, or
 4) a forced GC runs.

A forced GC destroys cache entries that have overflowed its limit
(ip6.neighborgcthresh).

The third and fourth cases can be triggered on receiving NS packets so it
can be used as a DoS attack that can originate from machines on the same link.


Solutions and Workarounds
=

For all NetBSD versions, you need to obtain fixed kernel sources, rebuild
and install the new kernel, and reboot the system.

The fixed source may be obtained from the NetBSD CVS repository. The
following instructions briefly summarise how to upgrade your kernel.
In these instructions, replace:

ARCH with your architecture (from uname -m), and
KERNCONF with the name of your kernel configuration file.

To update from CVS, re-build, and re-install the kernel:

# cd src
# cvs update -d -P sys/netinet6/nd6.c
# ./build.sh kernel=KERNCONF
# mv /netbsd /netbsd.old
# cp sys/arch/ARCH/compile/obj/KERNCONF/netbsd /netbsd
# shutdown -r now

For more information on how to do this, see:

https://www.NetBSD.org/docs/guide/en/chap-kernel.html

Thanks To
=

Internet Initiative Japan Inc. for finding and fixing the vulnerability.

More Information


Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at


https://ftp.NetBSD.org/pub/NetBSD/security/advisories/NetBSD-SA2019-004.txt.asc

Information about NetBSD and NetBSD security can be found at

https://www.NetBSD.org/
https://www.NetBSD.org/Security/

Copyright 2019, The NetBSD Foundation, Inc.  All Rights Reserved.
Redistribution permitted only in full, unmodified form.

$NetBSD: NetBSD-SA2019-004.txt.asc,v 1.1 2019/08/08 10:18:29 christos Exp $
-BEGIN PGP SIGNATURE-

iQIcBAEBAgAGBQJdS/bCAAoJEIkmHhf170n/ku0P/j/SMhciOSowBzy9L0TX0c+C
TIyXqlnOfKWxfoGURIkb0mqEY//lpKXmL6qtXuvtsxgm8xJc9cpEa/yk9qzBtTiw
U7yRXCN5Wqv1+Xsh2uun0qMIYesSiTwRrgnoTqLgWvRDIdzOBsyv9BkAf8FCsKhc
RMon+BTvAmVTDkKFJgxUQYkgWYjuArnkkhGw789EzRbNAdCbWeoPkEksfeRG3VDC
tbtj4FMvuM40XayXhfSia3F+/GvC5bvVx87tkQXCiPum6/dOuTS6GMvqX4fASIPO
/27kPVY19OJxmLWR7M1emsxTq7PTV36eOkFDA3RZY5iSZ22YJVcy8zfZTVkHv3wJ
FD0buTV8xms6oxw6o9A9TUocaOtVzY7+iExg12do2c4URDxuaX6qer160UlHvxBs
mMPStRIJq+2uczMmwFsrLNzl6nad70fv/i//e3MVX5HC/1wk9aTaJIPDH40cU/5Z
pd+PvI4veq6ZefkPatiCBKrBTCQkOUMNMQETp7CuF9L49J3QZHV9xFZjtl3F96pk
f/AnJuLEn/XZ/kM1dQMItm9w5i9fGnaeQFQ6+sC5VvKxMMVgPFWFCGZa7xAqvP5o
ZX3O9tSkSTp2yDWl9SoLDKzpmjK6fkx3IDdxQeH7xpXDvpNl+l+HXUcYS7HJGvPd
XhgPZFVcLgSxbl58lWgI
=HQQm
-END PGP SIGNATURE-