Re: -current cloner interfaces broken/gone/unusable
Hi Robert ! That made it work again. I share your view on relative beauty here. There are also 2 other observations with a 8.99.12 userland: named has now trouble with interface scanning. 2018-04-24T05:13:34.522295+00:00 gateway named 345 - - automatic interface scanning terminated: not enough free resources syslogd has sometimes issues with /var/run/log 2018-04-24T05:13:34.542548+00:00 gateway syslogd 408 - - recvfrom() unix `/var/run/log': No buffer space available Looks like the may be more issues with (compatibility) code. Thanks for the (preliminary) fix. Frank On 04/24/18 00:34, Robert Swindells wrote: Frank Kardelwrote: using -current as of 20180421 (NetBSD 8.99.14 (GENERIC) #0: Sat Apr 21 23:01:29 UTC 2018 mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64) no cloning interfaces are visible: gateway# ifconfig -l ixg0 ixg1 ixg2 ixg3 lo0 tun0 tun1 gateway# ifconfig -C ifconfig: SIOCIFGCLONERS for count: Device not configured gateway# ifconfig vlan0 create ifconfig: clone_command: Device not configured ifconfig: exec_matches: Device not configured gateway# This does not seem to be a desirable state - any clues what broke here ? It looks to be the test for a valid interface name in sys/compat/common/uipc_syscalls_50.c that is causing this, I think it should only be done when the ioctl command is SIOCGIFDATA or SIOCZIFDATA. This works for me but is a bit ugly: Index: uipc_syscalls_50.c === RCS file: /cvsroot/src/sys/compat/common/uipc_syscalls_50.c,v retrieving revision 1.4 diff -u -r1.4 uipc_syscalls_50.c --- uipc_syscalls_50.c 12 Apr 2018 18:50:13 - 1.4 +++ uipc_syscalls_50.c 23 Apr 2018 22:33:14 - @@ -63,9 +63,17 @@ struct ifnet *ifp; int error; - ifp = ifunit(ifdr->ifdr_name); - if (ifp == NULL) - return ENXIO; + switch (cmd) { + case SIOCGIFDATA: + case SIOCZIFDATA: + ifp = ifunit(ifdr->ifdr_name); + if (ifp == NULL) + return ENXIO; + break; + default: + ifp = NULL; + break; + } switch (cmd) { case SIOCGIFDATA:
daily CVS update output
Updating src tree: P src/external/gpl3/gdb/dist/gdb/amd64-nbsd-tdep.c P src/external/gpl3/gdb/dist/gdb/i386-nbsd-tdep.c P src/sbin/ping6/ping6.8 P src/sbin/ping6/ping6.c P src/sys/arch/amd64/amd64/locore.S P src/sys/arch/riscv/riscv/db_machdep.c P src/sys/dev/usb/xhci.c P src/sys/dev/usb/xhcireg.h P src/sys/kern/kern_lwp.c P src/sys/net/npf/npf_nat.c P src/sys/netinet/in.c P src/sys/netinet6/ip6_output.c P src/sys/netipsec/xform_ah.c P src/usr.sbin/traceroute6/Makefile P src/usr.sbin/traceroute6/traceroute6.8 P src/usr.sbin/traceroute6/traceroute6.c Updating xsrc tree: Killing core files: Updating file list: -rw-rw-r-- 1 srcmastr netbsd 57976811 Apr 24 03:03 ls-lRA.gz
Re: -current cloner interfaces broken/gone/unusable
Frank Kardelwrote: >using -current as of 20180421 (NetBSD 8.99.14 (GENERIC) #0: Sat Apr 21 >23:01:29 UTC 2018 >mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64) > >no cloning interfaces are visible: > >gateway# ifconfig -l >ixg0 ixg1 ixg2 ixg3 lo0 tun0 tun1 >gateway# ifconfig -C >ifconfig: SIOCIFGCLONERS for count: Device not configured >gateway# ifconfig vlan0 create >ifconfig: clone_command: Device not configured >ifconfig: exec_matches: Device not configured >gateway# > >This does not seem to be a desirable state - any clues what broke here ? It looks to be the test for a valid interface name in sys/compat/common/uipc_syscalls_50.c that is causing this, I think it should only be done when the ioctl command is SIOCGIFDATA or SIOCZIFDATA. This works for me but is a bit ugly: Index: uipc_syscalls_50.c === RCS file: /cvsroot/src/sys/compat/common/uipc_syscalls_50.c,v retrieving revision 1.4 diff -u -r1.4 uipc_syscalls_50.c --- uipc_syscalls_50.c 12 Apr 2018 18:50:13 - 1.4 +++ uipc_syscalls_50.c 23 Apr 2018 22:33:14 - @@ -63,9 +63,17 @@ struct ifnet *ifp; int error; - ifp = ifunit(ifdr->ifdr_name); - if (ifp == NULL) - return ENXIO; + switch (cmd) { + case SIOCGIFDATA: + case SIOCZIFDATA: + ifp = ifunit(ifdr->ifdr_name); + if (ifp == NULL) + return ENXIO; + break; + default: + ifp = NULL; + break; + } switch (cmd) { case SIOCGIFDATA:
-current cloner interfaces broken/gone/unusable
Hi, using -current as of 20180421 (NetBSD 8.99.14 (GENERIC) #0: Sat Apr 21 23:01:29 UTC 2018 mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64) no cloning interfaces are visible: gateway# ifconfig -l ixg0 ixg1 ixg2 ixg3 lo0 tun0 tun1 gateway# ifconfig -C ifconfig: SIOCIFGCLONERS for count: Device not configured gateway# ifconfig vlan0 create ifconfig: clone_command: Device not configured ifconfig: exec_matches: Device not configured gateway# This does not seem to be a desirable state - any clues what broke here ? Frank
Automated report: NetBSD-current/i386 test failure
This is an automatically generated notice of new failures of the NetBSD test suite. The newly failing test cases are: net/ndp/t_ra:ra_basic net/ndp/t_ra:ra_defrouter_expiration net/ndp/t_ra:ra_delete_address net/ndp/t_ra:ra_flush_defrouter_entries net/ndp/t_ra:ra_multiple_routers net/ndp/t_ra:ra_multiple_routers_maxifprefixes net/ndp/t_ra:ra_multiple_routers_single_prefix net/ndp/t_ra:ra_temporary_address The above tests 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: 2018.04.19.21.22.02 christos src/sys/netinet6/in6.h,v 1.91 2018.04.19.21.22.02 christos src/sys/netinet6/in6_var.h,v 1.98 2018.04.19.21.50.06 christos src/sys/altq/altq_classq.h,v 1.8 2018.04.19.21.50.06 christos src/sys/arch/alpha/include/alpha.h,v 1.37 2018.04.19.21.50.06 christos src/sys/arch/evbcf/include/intr.h,v 1.3 2018.04.19.21.50.06 christos src/sys/arch/mips/cavium/dev/octeon_fpavar.h,v 1.2 2018.04.19.21.50.06 christos src/sys/arch/mips/cavium/dev/octeon_gmxvar.h,v 1.2 2018.04.19.21.50.06 christos src/sys/arch/mips/cavium/dev/octeon_pkovar.h,v 1.2 2018.04.19.21.50.06 christos src/sys/arch/mips/cavium/dev/octeon_powvar.h,v 1.3 2018.04.19.21.50.06 christos src/sys/arch/mips/cavium/octeonvar.h,v 1.6 2018.04.19.21.50.06 christos src/sys/arch/mmeye/include/intr.h,v 1.12 2018.04.19.21.50.07 christos src/sys/arch/mvme68k/include/intr.h,v 1.21 2018.04.19.21.50.07 christos src/sys/arch/news68k/include/intr.h,v 1.27 2018.04.19.21.50.07 christos src/sys/arch/next68k/include/intr.h,v 1.22 2018.04.19.21.50.07 christos src/sys/arch/or1k/include/cpu.h,v 1.2 2018.04.19.21.50.07 christos src/sys/arch/or1k/include/db_machdep.h,v 1.2 2018.04.19.21.50.07 christos src/sys/arch/or1k/include/intr.h,v 1.2 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/float.h,v 1.10 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/pcb.h,v 1.8 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/proc.h,v 1.6 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/profile.h,v 1.8 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/reg.h,v 1.8 2018.04.19.21.50.07 christos src/sys/arch/pmax/include/setjmp.h,v 1.3 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/altivec.h,v 1.18 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/booke/cpuvar.h,v 1.19 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/booke/intr.h,v 1.11 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/booke/pmap.h,v 1.18 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/booke/pte.h,v 1.10 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/fenv.h,v 1.5 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/fpu.h,v 1.22 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/ibm4xx/cpu.h,v 1.22 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/ibm4xx/pmap.h,v 1.18 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/ibm4xx/tlb.h,v 1.5 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/intr.h,v 1.13 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/oea/pmap.h,v 1.29 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/pci_machdep.h,v 1.15 2018.04.19.21.50.07 christos src/sys/arch/powerpc/include/spr.h,v 1.52 2018.04.19.21.50.07 christos src/sys/arch/powerpc/pic/ipivar.h,v 1.9 2018.04.19.21.50.07 christos src/sys/coda/coda.h,v 1.20 2018.04.19.21.50.08 christos src/sys/compat/netbsd32/netbsd32_conv.h,v 1.34 2018.04.19.21.50.08 christos src/sys/compat/netinet6/in6_var.h,v 1.4 2018.04.19.21.50.08 christos src/sys/compat/sys/ipc.h,v 1.5 2018.04.19.21.50.08 christos src/sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h,v 1.2 2018.04.19.21.50.08 christos src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h,v 1.3 2018.04.19.21.50.08 christos src/sys/dev/acpi/acpica/acpi_func.h,v 1.5 2018.04.19.21.50.08 christos src/sys/dev/clock_subr.h,v 1.26 2018.04.19.21.50.08 christos src/sys/dev/dtv/dtvif.h,v 1.4 2018.04.19.21.50.08 christos src/sys/dev/flash/flash.h,v 1.9 2018.04.19.21.50.08 christos src/sys/dev/hdaudio/hdaudiovar.h,v 1.6 2018.04.19.21.50.08 christos src/sys/dev/ic/aic7xxx_inline.h,v 1.15 2018.04.19.21.50.08 christos src/sys/dev/ic/atwvar.h,v 1.39 2018.04.19.21.50.08 christos src/sys/dev/ic/dm9000var.h,v 1.3 2018.04.19.21.50.08 christos src/sys/dev/ic/nvmeio.h,v 1.3 2018.04.19.21.50.08 christos src/sys/dev/ic/nvmevar.h,v 1.17 2018.04.19.21.50.08 christos src/sys/dev/ic/rtwvar.h,v 1.47 2018.04.19.21.50.08 christos src/sys/dev/marvell/if_mvxpevar.h,v 1.4 2018.04.19.21.50.09 christos src/sys/dev/nand/nand.h,v 1.19 2018.04.19.21.50.09 christos src/sys/dev/nor/cfi.h,v 1.7 2018.04.19.21.50.09 christos
Re: Two fatal errors with yesterday's -current
On Sun, Apr 22, 2018 at 05:51:01AM +0800, Paul Goyette wrote: > With sources built from 2018-04-20 23:11:20 UTC I encountered two fatal > errors while booting: > > First, the system was unable to identify either of my hard drives: > > ... > [ 6.4285988] ums0 at uhidev2: 3 buttons and Z dir > [ 6.4285988] wsmouse0 at ums0 mux 0 > [ 6.6787124] wd0: IDENTIFY failed > [ 6.6787124] wd0: fixing 0 sector size > [ 6.6787124] wd0: secperunit and ncylinders are zero > [ 9.6800696] wd0(ahcisata0:0:0): using PIO mode 0 > [ 9.6800696] wd1 at atabus1 drive 0 > [ 9.7100829] ehci_sync_hc: timed out > [ 10.7105355] ehci_sync_hc: timed out > [ 12.6814270] wd1: IDENTIFY failed > [ 12.6814270] wd1: fixing 0 sector size > [ 12.6814270] wd1: secperunit and ncylinders are zero > ... > > > Second, I received a whole bunch of the "ehci_sync_hc: timed out" > messages. The two occurrences above were the first, but there were > several more later on in the boot. Looks like some interrupts are not working any more -- Manuel BouyerNetBSD: 26 ans d'experience feront toujours la difference --
Re: running out of file descriptors
f...@netbsd.org (Erik Fair) writes: >We (NetBSD) still have a historical construct in config(5) that a bunch of >system-wide limits like MAXFILES are calculated from a presumed average or >median amount of those resources per user, expressed as multiples of >âmaxusers [n]â in config(5). MAXFILES is fortunately no hard limit anymore, just the default that you can override with sysctl. The various platform defaults are also arbitrary. maxusers 64 = 3404 descriptors amd64, emips, i386, pmax, riscv, sparc64 maxusers 32 = 1772 descriptors acorn32, arc, bebox, cats, cesfic, cobalt, epoc32, evbarm, hpcsh, hppa, ia64, iyonix, macppc, netwinder, ofppc, prep, rs6000, sandpoint, sbmips, shark, sparc, usermode, zaurus maxusers 16 = 956 descriptors atari, dreamcast, ews4800mips, hpcmips, landisk, mac68k, mipsco, mmeye, newsmips, next68k maxusers 8 = 548 descriptors amiga, amigappc, hp300, ibmnws, luna68k, mvmeppc, news68k, vax, x68k maxusers 4 = 344 descriptors mvme68k, sun2, sun3 -- -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."