Re: reproducible kernel crash in NetBSD 7.1_RC1

2017-01-24 Thread 6bone

On Mon, 23 Jan 2017, Christos Zoulas wrote:


Date: Mon, 23 Jan 2017 19:35:06 + (UTC)
From: Christos Zoulas 
To: current-users@netbsd.org
Subject: Re: reproducible kernel crash in NetBSD 7.1_RC1

I think that the vlan creation/removal code is racy even under /current.
There was some discussion recently about it.

I have unfortunately not heard the discussion. Is it planned to solve the 
problem in the near future?

christos


Regards
Uwe


Re: OpenVPN causes fresh -current to crash

2017-01-24 Thread Tom Ivar Helbekkmo
Ryota Ozaki  writes:

>>> The latest pfil.c (v1.34) should fix the panic. Could you try it?
>>
>> I'll give it a go tonight, and report back.

I re-introduced the change that I previously rolled back to get things
working, and then upgraded pfil.c to 1.34 and built a new kernel.  This
worked fine -- you've obviously corrected the problem.  :)

About the NFS hang:

> Can you get DDB? If you can, you can know where the processes hang up:
>   db> ps # you can get LWP addresses of ld and ls
>   db> bt/a  # you can get their stack traces

Noted - but I haven't been able to get into DDB.  I though Ctrl-Alt-Esc
in the first console (the Ctrl-Alt-F1 one) should do it, but it doesn't.

> The hang may happen depending on a NIC. Which NIC do you use?

re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet

> And please let me know NFS options of the client and the server?

Not much.  Server:

nfs_server=YES and nfsd_flags="-n 16" in rc.conf.

Client:

nfs_client=YES in rc.conf, and "rw,bg,intr" as mount options.

Hm. Maybe I should change to a TCP mount, and see what happens...

-tih
-- 
Most people who graduate with CS degrees don't understand the significance
of Lisp.  Lisp is the most important idea in computer science.  --Alan Kay


Re: Recent amd64 auich panics

2017-01-24 Thread Chavdar Ivanov
Indeed the kernel from overnight boots OK and sound works. There is some
problem with the sound in this configuration though - I use from time to
time audio/moc on this machine and noticed it has become decidedly choppy -
I don't know when, as it is the same with earlier working kernels (but
perhaps two months ago it was OK). Of course the reason for this may lay
outside NetBSD - VirtualBox sound emulation driver, Windows 10 driver etc.

Chavdar

On Tue, 24 Jan 2017 at 07:43 Martin Husemann  wrote:

> On Mon, Jan 23, 2017 at 08:33:34AM +, Chavdar Ivanov wrote:
> > Hi,
> >
> > The last few days I am getting repeated panics on amd64 -current running
> > under VirtualBox (latest 5.1.14 version at the moment) as follows:
> > ---
> > panic: auidui_init_ringbuffer: blksize=0
>
> There were some changes in this area yesterday which fixed a similar
> problem for me, also this code probably needs fixing:
>
> static int
> auich_round_blocksize(void *v, int blk, int mode,
> const audio_params_t *param)
> {
>
> return blk & ~0x3f; /* keep good alignment */
> }
>
> It should return 0x40 instead of 0 for too small block sizes.
> Something like:
>
> if (blk < 0x40)
> return 0x40;/* avoid 0 block size */
> return blk & ~0x3f; /* keep good alignment */
>
> Martin
>


Re: reproducible kernel crash in NetBSD 7.1_RC1

2017-01-24 Thread Christos Zoulas
In article ,
 <6b...@6bone.informatik.uni-leipzig.de> wrote:
>On Mon, 23 Jan 2017, Christos Zoulas wrote:
>
>> Date: Mon, 23 Jan 2017 19:35:06 + (UTC)
>> From: Christos Zoulas 
>> To: current-users@netbsd.org
>> Subject: Re: reproducible kernel crash in NetBSD 7.1_RC1
>> 
>> I think that the vlan creation/removal code is racy even under /current.
>> There was some discussion recently about it.
>>
>I have unfortunately not heard the discussion. Is it planned to solve the 
>problem in the near future?

I asked to try a patch protecting vlan creation and removal with a mutex.

christos



build failure, tcpdump import, char subscript

2017-01-24 Thread bch
dependall ===> external/bsd/openresolv/sbin
dependall ===> external/bsd/openresolv/sbin/resolvconf
dependall ===> external/bsd/tcpdump
dependall ===> external/bsd/tcpdump/bin
#   compile  bin/util-print.o
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc -O2
-fPIE-std=gnu99-Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional
  -Wa,--fatal-warnings  -Werror
--sysroot=/usr/src/obj/destdir.amd64
-I/usr/src/external/bsd/tcpdump/bin/../include
-I/usr/src/external/bsd/tcpdump/bin
-I/usr/src/external/bsd/tcpdump/bin/../dist -DHAVE_CONFIG_H
-I/usr/src/dist/pf/sbin/pfctl  -I/usr/src/sys/dist/pf -DHAVE_CONFIG_H
-D_U_="__attribute__((__unused__))" -DWITH_USER=\"_tcpdump\"
-DWITH_CHROOT=\"/var/chroot/tcpdump\" -DHAVE_OS_IPV6_SUPPORT=1
-DHAVE_LIBCRYPTO=1 -DHAVE_OPENSSL_EVP_H  -c
/usr/src/external/bsd/tcpdump/bin/../dist/util-print.c
In file included from
/usr/src/external/bsd/tcpdump/bin/../dist/util-print.c:60:0:
/usr/src/external/bsd/tcpdump/bin/../dist/util-print.c: In function
'txtproto_print':
/usr/src/external/bsd/tcpdump/bin/../dist/util-print.c:791:24: error:
array subscript has type 'char' [-Werror=char-subscripts]
   ND_PRINT((ndo, "%c", toupper(*pnp)));
^
/usr/src/external/bsd/tcpdump/bin/../dist/netdissect.h:314:43: note:
in definition of macro 'ND_PRINT'
 #define ND_PRINT(STUFF) (*ndo->ndo_printf)STUFF
   ^
cc1: all warnings being treated as errors

*** Failed target:  util-print.o
*** Failed command:
/usr/src/obj/tooldir.NetBSD-7.99.59-amd64/bin/x86_64--netbsd-gcc -O2
-fPIE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional
-Wa,--fatal-warnings -Werror --sysroot=/usr/src/obj/destdir.amd64
-I/usr/src/external/bsd/tcpdump/bin/../include
-I/usr/src/external/bsd/tcpdump/bin
-I/usr/src/external/bsd/tcpdump/bin/../dist -DHAVE_CONFIG_H
-I/usr/src/dist/pf/sbin/pfctl -I/usr/src/sys/dist/pf -DHAVE_CONFIG_H
-D_U_="__attribute__((__unused__))" -DWITH_USER=\"_tcpdump\"
-DWITH_CHROOT=\"/var/chroot/tcpdump\" -DHAVE_OS_IPV6_SUPPORT=1
-DHAVE_LIBCRYPTO=1 -DHAVE_OPENSSL_EVP_H -c
/usr/src/external/bsd/tcpdump/bin/../dist/util-print.c
*** Error code 1


daily CVS update output

2017-01-24 Thread NetBSD source update

Updating src tree:
P src/crypto/dist/ipsec-tools/src/racoon/handler.h
P src/crypto/dist/ipsec-tools/src/racoon/isakmp.c
P src/crypto/dist/ipsec-tools/src/racoon/isakmp_frag.c
P src/crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
P src/distrib/acorn26/instkernel/Makefile
P src/distrib/acorn32/ramdisk/Makefile
P src/distrib/alpha/instkernel/ramdisk/Makefile
P src/distrib/amd64/Makefile
P src/distrib/amd64/cdroms/Makefile.cdrom
U src/distrib/amd64/uefi-installimage/Makefile
U src/distrib/amd64/uefi-installimage/Makefile.bootimage
U src/distrib/amd64/uefi-installimage/Makefile.installimage
U src/distrib/amd64/uefi-installimage/boot.cfg.in
U src/distrib/amd64/uefi-installimage/etc.rc
U src/distrib/amd64/uefi-installimage/etc.ttys
U src/distrib/amd64/uefi-installimage/install.sh
U src/distrib/amd64/uefi-installimage/spec.inst
P src/distrib/amiga/miniroot/Makefile.inc
P src/distrib/arc/ramdisk/Makefile
P src/distrib/bebox/ramdisk/Makefile
P src/distrib/cats/ramdisk/Makefile
P src/distrib/cobalt/ramdisk/Makefile
P src/distrib/common/bootimage/Makefile.bootimage
P src/distrib/dreamcast/ramdisk/Makefile
P src/distrib/emips/miniroot/Makefile.inc
P src/distrib/emips/ramdisk/Makefile
P src/distrib/evbarm/instkernel/ramdisk/Makefile
P src/distrib/evbarm/instkernel/sshramdisk/Makefile
P src/distrib/evbarm64/ramdisk/Makefile
P src/distrib/evbmips/instkernel/ramdisk/Makefile
P src/distrib/evbppc/ramdisk/Makefile
P src/distrib/evbsh3/instkernel/ramdisk/Makefile
P src/distrib/ews4800mips/floppies/ramdisk/Makefile
P src/distrib/hp300/miniroot/Makefile.inc
P src/distrib/hp300/ramdisk/Makefile
P src/distrib/hpcarm/miniroot/Makefile.inc
P src/distrib/hpcmips/miniroot/Makefile.inc
P src/distrib/hpcsh/miniroot/Makefile.inc
P src/distrib/hppa/ramdisk/Makefile
P src/distrib/i386/ramdisks/ramdisk-rescuetiny/Makefile
P src/distrib/i386/ramdisks/ramdisk-tiny/Makefile
P src/distrib/ibmnws/netboot/ramdisk/Makefile
P src/distrib/landisk/ramdisk/Makefile
P src/distrib/luna68k/ramdisk/Makefile
P src/distrib/mac68k/instkernel/ramdisk/Makefile
P src/distrib/mac68k/miniroot/Makefile.inc
P src/distrib/macppc/floppies/ramdisk/Makefile
P src/distrib/mipsco/ramdisk/Makefile
P src/distrib/mvme68k/miniroot/Makefile.inc
P src/distrib/news68k/floppies/ramdisk/Makefile
P src/distrib/newsmips/floppies/ramdisk/Makefile
P src/distrib/playstation2/miniroot/Makefile.inc
P src/distrib/pmax/miniroot/Makefile.inc
P src/distrib/pmax/ramdisk/Makefile
P src/distrib/prep/floppies/ramdisk/Makefile
P src/distrib/riscv/ramdisk/Makefile
P src/distrib/rs6000/ramdisk/Makefile
P src/distrib/sandpoint/ramdisk/Makefile
P src/distrib/sets/lists/base/md.amd64
P src/distrib/sets/lists/base/shl.mi
P src/distrib/sets/lists/comp/mi
P src/distrib/sets/lists/debug/shl.mi
P src/distrib/sgimips/miniroot/Makefile.inc.xxx
P src/distrib/sgimips/ramdisk/Makefile
P src/distrib/shark/instkernel/ramdisk/Makefile
P src/distrib/sparc/miniroot/Makefile.inc
P src/distrib/sparc64/instfs/Makefile.instfs
P src/distrib/sun2/miniroot/Makefile
P src/distrib/sun2/ramdisk/Makefile
P src/distrib/sun3/miniroot/Makefile
P src/distrib/sun3/ramdisk/Makefile
P src/distrib/vax/miniroot/Makefile.inc
P src/distrib/vax/ramdisk/Makefile
P src/distrib/x68k/floppies/ramdisk/Makefile
P src/distrib/zaurus/ramdisk/Makefile
P src/doc/3RDPARTY
P src/doc/CHANGES
U src/doc/TODO.smpnet
P src/etc/Makefile.params
P src/external/bsd/byacc/dist/output.c
P src/external/bsd/libpcap/dist/CHANGES
U src/external/bsd/libpcap/dist/CMakeLists.txt
U src/external/bsd/libpcap/dist/GenVersion.bat
P src/external/bsd/libpcap/dist/INSTALL.txt
P src/external/bsd/libpcap/dist/Makefile-devel-adds
P src/external/bsd/libpcap/dist/Makefile.in
P src/external/bsd/libpcap/dist/README.sita
U src/external/bsd/libpcap/dist/VERSION
P src/external/bsd/libpcap/dist/aclocal.m4
P src/external/bsd/libpcap/dist/bpf_dump.c
P src/external/bsd/libpcap/dist/bpf_image.c
U src/external/bsd/libpcap/dist/cmakeconfig.h.in
P src/external/bsd/libpcap/dist/config.h.in
P src/external/bsd/libpcap/dist/configure
U src/external/bsd/libpcap/dist/configure.ac
cvs update: `src/external/bsd/libpcap/dist/configure.in' is no longer in the 
repository
P src/external/bsd/libpcap/dist/dlpisubs.c
P src/external/bsd/libpcap/dist/etherent.c
P src/external/bsd/libpcap/dist/ethertype.h
U src/external/bsd/libpcap/dist/extract.h
P src/external/bsd/libpcap/dist/fad-getad.c
P src/external/bsd/libpcap/dist/fad-gifc.c
P src/external/bsd/libpcap/dist/fad-glifc.c
U src/external/bsd/libpcap/dist/fad-helpers.c
cvs update: `src/external/bsd/libpcap/dist/fad-null.c' is no longer in the 
repository
cvs update: `src/external/bsd/libpcap/dist/fad-sita.c' is no longer in the 
repository
cvs update: `src/external/bsd/libpcap/dist/fad-win32.c' is no longer in the 
repository
U src/external/bsd/libpcap/dist/gen_version_c.sh
U src/external/bsd/libpcap/dist/gen_version_header.sh
P src/external/bsd/libpcap/dist/gencode.c
P src/external/bsd/libpcap/dist/gencode.h
P src/external/bsd/libpcap/dist/grammar.y
P 

Re: OpenVPN causes fresh -current to crash

2017-01-24 Thread Tom Ivar Helbekkmo
Tom Ivar Helbekkmo  writes:

> Hm. Maybe I should change to a TCP mount, and see what happens...

...and with NFS over TCP, writing works without hanging.  :)

-tih
-- 
Most people who graduate with CS degrees don't understand the significance
of Lisp.  Lisp is the most important idea in computer science.  --Alan Kay


Automated report: NetBSD-current/i386 build failure

2017-01-24 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 2017.01.24.22.12.42.

An extract from the build.sh output follows:

 ^
In file included from 
/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin/../dist/addrtoname.c:66:0:

/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin/../dist/addrtoname.h:56:25:
 note: previous declaration of 'newhnamemem' was here
 extern struct hnamemem *newhnamemem(netdissect_options *);
 ^

/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin/../dist/addrtoname.c:1205:1:
 error: conflicting types for 'newh6namemem'
 newh6namemem(void)
 ^
In file included from 
/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin/../dist/addrtoname.c:66:0:

/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin/../dist/addrtoname.h:57:26:
 note: previous declaration of 'newh6namemem' was here
 extern struct h6namemem *newh6namemem(netdissect_options *);
  ^
*** [addrtoname.o] Error code 1
nbmake[9]: stopped in 
/tmp/bracket/build/2017.01.24.22.12.42-i386/src/external/bsd/tcpdump/bin
1 error

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

2017.01.24.21.33.37 christos 
src/external/bsd/tcpdump/dist/ascii_strcasecmp.c,v 1.1
2017.01.24.21.33.37 christos 
src/external/bsd/tcpdump/dist/ascii_strcasecmp.h,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/addrtostr.c,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/addrtostr.h,v 1.1
2017.01.24.21.33.38 christos 
src/external/bsd/tcpdump/dist/netdissect-stdinc.h,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print-hncp.c,v 
1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print-lisp.c,v 
1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print-medsa.c,v 
1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print-nsh.c,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print-resp.c,v 
1.1
2017.01.24.21.33.38 christos 
src/external/bsd/tcpdump/dist/print-vxlan-gpe.c,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print.c,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/print.h,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/strtoaddr.c,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/strtoaddr.h,v 1.1
2017.01.24.21.33.38 christos 
src/external/bsd/tcpdump/dist/timeval-operations.h,v 1.1
2017.01.24.21.33.38 christos src/external/bsd/tcpdump/dist/util-print.c,v 
1.1
2017.01.24.21.33.39 christos 
src/external/bsd/tcpdump/dist/tests/isis_poi2.pcap,v 1.1
2017.01.24.21.33.39 christos 
src/external/bsd/tcpdump/dist/tests/lspping-fec-ldp.out,v 1.1
2017.01.24.21.33.39 christos 
src/external/bsd/tcpdump/dist/tests/lspping-fec-rsvp-vv.out,v 1.1
2017.01.24.21.33.39 christos 
src/external/bsd/tcpdump/dist/tests/resp_1.out,v 1.1
2017.01.24.21.33.40 christos 
src/external/bsd/tcpdump/dist/tests/dnssec.pcap,v 1.1
2017.01.24.21.33.40 christos 
src/external/bsd/tcpdump/dist/tests/isis_poi.pcap,v 1.1
2017.01.24.21.33.40 christos 
src/external/bsd/tcpdump/dist/tests/lisp_eid_notify.out,v 1.1
2017.01.24.21.33.40 christos 
src/external/bsd/tcpdump/dist/tests/mpls-traceroute.out,v 1.1
2017.01.24.21.33.40 christos 
src/external/bsd/tcpdump/dist/tests/nsh-over-vxlan-gpe.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/cve-2014-8769-AODV.pcap,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/lisp_eid_notify.pcap,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/lisp_ipv6.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/lspping-fec-ldp-vv.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/lspping-fec-rsvp.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/mpls-traceroute-v.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/nsh-over-vxlan-gpe-vvv.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/pcap-invalid-version-2.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/resp_2_inline.pcap,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/resp_3.out,v 1.1
2017.01.24.21.33.41 christos 
src/external/bsd/tcpdump/dist/tests/vxlan.pcap,v 1.1
2017.01.24.21.33.42 christos 
src/external/bsd/tcpdump/dist/tests/RADIUS-port1700.pcap,v 1.1
2017.01.24.21.33.42 christos 
src/external/bsd/tcpdump/dist/tests/cve-2014-8767-OLSR.out,v 1.1
2017.01.24.21.33.42 christos