Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (54m)  netbsd-8 (6d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 21:31:02 UTC Now

2019-09-02 00:30:58 UTC MAIN commitmail json YAML

2019-09-02 00:30:01 UTC MAIN commitmail json YAML

route(8): Show addres for RTM_LOSING

While here, add /* FALLTHROUGH */.

(roy)

2019-09-02 00:25:47 UTC MAIN commitmail json YAML

2019-09-02 00:24:01 UTC MAIN commitmail json YAML

start documenting history

(sevan)

2019-09-02 00:13:09 UTC MAIN commitmail json YAML

2019-09-02 00:12:11 UTC MAIN commitmail json YAML

2019-09-02 00:09:14 UTC MAIN commitmail json YAML

2019-09-02 00:05:38 UTC MAIN commitmail json YAML

2019-09-02 00:01:42 UTC MAIN commitmail json YAML

2019-09-02 00:00:25 UTC MAIN commitmail json YAML

2019-09-01 23:57:14 UTC MAIN commitmail json YAML

2019-09-01 23:53:46 UTC MAIN commitmail json YAML

2019-09-01 23:42:19 UTC MAIN commitmail json YAML

2019-09-01 23:01:01 UTC MAIN commitmail json YAML

urndis.4: note two additional brands/models known to work

(gutteridge)

2019-09-01 22:50:11 UTC MAIN commitmail json YAML

Document history.
https://www.bell-labs.com/usr/dmr/www/man11.pdf
Between v1 & v6 UNIX, bcd was rewritten in C, but I don't know if which version,
hence I've skipped mentioning it.

(sevan)

2019-09-01 22:10:13 UTC MAIN commitmail json YAML

Note inet change as well.

(roy)

2019-09-01 22:09:02 UTC MAIN commitmail json YAML

inet: Send RTM_MISS when we fail to resolve an address.

Takes the same approach as when adding a new address - we no longer
announce the new lladdr right away but we announce the result.
This will either be RTM_ADD or RTM_MISS.
RTM_DELETE is only sent if we have a lladdr assigned OR gc'ed.

This tells us when a new lladdr has been added (RTM_ADD),
changed (RTM_CHANGE), deleted (RTM_DELETED) or has failed to been
resolved (RTM_MISS). The latter case can be interpreted as unreachable.

(roy)

2019-09-01 21:55:13 UTC MAIN commitmail json YAML

2019-09-01 19:54:04 UTC MAIN commitmail json YAML

2019-09-01 19:52:32 UTC MAIN commitmail json YAML

2019-09-01 19:46:58 UTC MAIN commitmail json YAML

2019-09-01 19:45:48 UTC MAIN commitmail json YAML

2019-09-01 19:40:07 UTC MAIN commitmail json YAML

2019-09-01 19:37:21 UTC MAIN commitmail json YAML

2019-09-01 19:36:09 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2019-09-01 19:35:17 UTC netbsd-9 commitmail json YAML

2019-09-01 19:34:16 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by oster in ticket #167):

share/man/man9/copy.9: revision 1.21
share/man/man9/intro.9: revision 1.25
share/man/man9/uiomove.9: revision 1.19

s/Xr store/Xr ustore/ to fix cross-references in these man-pages.

(martin)

2019-09-01 19:33:45 UTC MAIN commitmail json YAML

Document history of exec()
Move statement on execlpe() & execvpe() to HISTORY section.

(sevan)

2019-09-01 19:31:44 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by oster in ticket #166):

share/man/man9/Makefile: revision 1.439

oops. i must have deleted the 'u' in 'ustore.9' when partially
fixing the alphabeta ordering here.  fixes build.

(martin)

2019-09-01 19:29:33 UTC MAIN commitmail json YAML

Document recent inet6 changes.

(roy)

2019-09-01 19:28:31 UTC MAIN commitmail json YAML

2019-09-01 19:26:22 UTC MAIN commitmail json YAML

inet6: Re-introduce ND6_LLINFO_WAITDELETE so we can return EHOSTDOWN

Once we've sent nd6_mmaxtries NS messages, send RTM_MISS and move to the
ND6_LLINFO_WAITDELETE state rather than freeing the llentry right away.
Wait for a probe cycle and then free the llentry.

If a connection attempts to re-use the llentry during ND6_LLINFO_WAITDELETE,
return EHOSTDOWN (or EHOSTUNREACH if a gateway) to match inet behaviour.
Continue to ND6_LLINFO_INCOMPLETE and send another NS probe in hope of a
reply. Rinse and repeat.

This reverts part of nd6.c r1.14 - an 18 year old commit!

(roy)

2019-09-01 19:20:45 UTC MAIN commitmail json YAML

2019-09-01 19:16:43 UTC MAIN commitmail json YAML

2019-09-01 19:13:57 UTC MAIN commitmail json YAML

2019-09-01 19:13:18 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2019-09-01 19:12:16 UTC MAIN commitmail json YAML

Remove superfluous Ns.

(wiz)

2019-09-01 19:11:41 UTC MAIN commitmail json YAML

2019-09-01 19:10:39 UTC MAIN commitmail json YAML

Remove superfluous Pp.

(wiz)

2019-09-01 19:09:00 UTC MAIN commitmail json YAML

fetch(9) -> ufetch(9). Remove reference to unimplemented ppi(9).

(wiz)

2019-09-01 19:08:36 UTC MAIN commitmail json YAML

fetch(9) -> ufetch(9). Remove superfluous Pp.

(wiz)

2019-09-01 19:08:23 UTC MAIN commitmail json YAML

fetch(9) -> ufetch(9)

(wiz)

2019-09-01 19:04:59 UTC MAIN commitmail json YAML

2019-09-01 18:57:05 UTC MAIN commitmail json YAML

2019-09-01 18:54:38 UTC MAIN commitmail json YAML

inet6: Send RTM_MISS when we fail to resolve an address.

Takes the same approach as when adding a new address - we no longer
announce the new lladdr right away but we announce the result.
This will either be RTM_ADD or RTM_MISS.
RTM_DELETE is only sent if we have a lladdr assigned OR gc'ed.

This results in less messages via route(4) and tells us when a new
lladdr has been added (RTM_ADD), changed (RTM_CHANGE), deleted (RTM_DELETED)
or has failed to been resolved (RTM_MISS). The latter case can be
interpreted as unreachable.

(roy)

2019-09-01 18:51:28 UTC MAIN commitmail json YAML

2019-09-01 18:48:01 UTC MAIN commitmail json YAML

2019-09-01 18:46:22 UTC MAIN commitmail json YAML

2019-09-01 18:44:06 UTC MAIN commitmail json YAML

2019-09-01 18:41:14 UTC MAIN commitmail json YAML

2019-09-01 18:37:44 UTC MAIN commitmail json YAML

2019-09-01 18:31:37 UTC MAIN commitmail json YAML

2019-09-01 18:26:01 UTC MAIN commitmail json YAML

2019-09-01 18:24:28 UTC MAIN commitmail json YAML

2019-09-01 18:18:42 UTC MAIN commitmail json YAML

2019-09-01 18:15:58 UTC MAIN commitmail json YAML

2019-09-01 18:04:54 UTC MAIN commitmail json YAML

2019-09-01 17:50:32 UTC MAIN commitmail json YAML

s/Xr store/Xr ustore/ to fix cross-references in these man-pages.

(oster)

2019-09-01 17:27:22 UTC MAIN commitmail json YAML

2019-09-01 17:15:34 UTC netbsd-8 commitmail json YAML

2019-09-01 15:08:52 UTC MAIN commitmail json YAML

2019-09-01 15:02:17 UTC MAIN commitmail json YAML

sunxi_mmc_wait_rint: protect against spurious wakeups

(jmcneill)

2019-09-01 14:49:11 UTC MAIN commitmail json YAML

Update arpresolve arguments

(sevan)

2019-09-01 14:44:14 UTC MAIN commitmail json YAML

Driver for Broadcom RNG200 hardware random generator

(mlelstv)

2019-09-01 14:40:07 UTC MAIN commitmail json YAML

Grammar
Document history

(sevan)

2019-09-01 14:34:54 UTC MAIN commitmail json YAML

2019-09-01 14:32:04 UTC MAIN commitmail json YAML

2019-09-01 14:26:28 UTC MAIN commitmail json YAML

2019-09-01 14:22:36 UTC netbsd-9 commitmail json YAML

2019-09-01 14:22:12 UTC MAIN commitmail json YAML

2019-09-01 14:20:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #153):

share/man/man1/cd.1: revision 1.10
share/man/man1/cd.1: revision 1.9

Direct reader to shell documentation generally, rather than csh(1)
specifically.

Mention variables OLDPWD and PWD.

Move the text that explains that cd(1) is a shell built-in to the very
beginning of the description where it can be seen prominently.

Improve formatting.

(martin)

2019-09-01 14:18:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #152):

external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c: revision 1.14
external/mit/xorg-server/dist/hw/xfree86/common/xf86AutoConfig.c: revision 1.15

Match wsfb on x86, too.

When uefi booting without driver-specific GPU support, wsfb is the only
choice for a graphical driver.

While here, combine the wsfb cases.

-

Try modesetting on x86, too.

Not the best option without functional GLAMOR, but it does work.

(martin)

2019-09-01 14:15:25 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #151):

external/gpl3/gdb/dist/gdb/arm-nbsd-nat.c: revision 1.12

Restore the kvm support

(martin)

2019-09-01 14:14:57 UTC MAIN commitmail json YAML

Instead of delaying ack of sdio card interrupts, ack them immediately and
disable card interrupts until the sdio layer acks them later.

(jmcneill)

2019-09-01 14:13:46 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #150):

sbin/route/route.c: revision 1.162

route(8): show addrs for RTM_MISS

(martin)

2019-09-01 14:12:23 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #149):

external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.4
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.4

Register syms.extra in LLVM sanitizer .syms files
syms.extra contain additional content that has to be shipped with these
.syms files.

At least libFuzzer requires the .syms files to be in order.

(martin)

2019-09-01 14:06:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #148):

sys/netinet6/nd6.c: revision 1.261

inet6: don't set an invalid lladdr in nd6_free()

We don't want to announce that we've deleted a hwaddr of all zeros.

(martin)

2019-09-01 14:04:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #147):

sys/netinet/if_arp.c: revision 1.285
sys/netinet/if_arp.c: revision 1.286

ARP: remove unused sysctl entry log_unknown_network

ARP: change default sysctl entry log_movements to 0
IP address sharing is a thing and shouldn't cause needless diagnostics
by default.

(martin)

2019-09-01 14:03:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #146):

sys/arch/arm/conf/Makefile.arm: revision 1.50
sys/dev/usb/if_axe.c: revision 1.120

PR kern/54486

Workaround for alignment faults on ARMv6+, at least occur with
axe(4) and athn(4) drivers.

For ARMv6+, unaligned access is enabled by default. However, it
cannot be used for non-cacheable memory, which is used as DMA
buffers. This results in alignment faults above. A real fix is
to use cacheable memory as DMA buffers. However, it breaks some
drivers, awge(4) and vchiq(4) at least.

Until we figure out problems and fix them, we choose a fail-safe
workaround here; forbid unaligned memory access for whole kernel.
Affects on performance is negligibly small as far as we can see.

XXX
pullup netbsd-9

-

PR kern/54486
Revert workaround introduced in rev 1.94:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/if_axe.c#rev1.94

This is a problem specific to ARMv6+, and addressed by
arch/arm/conf/Makefile.arm rev 1.50:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/conf/Makefile.arm#rev1.50

XXX
pullup netbsd-9

(martin)

2019-09-01 14:00:13 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #145):

sys/arch/sparc/include/ctlreg.h: revision 1.30
sys/dev/pci/if_xgereg.h: revision 1.3

Add missing NUL to prevent buffer overrun.

(martin)

2019-09-01 13:56:01 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #144):

sys/dev/mii/miidevs: revision 1.154
sys/dev/mii/etphy.c: revision 1.5
sys/dev/mii/etphy.c: revision 1.6

No functional change:
- Use static.
- KNF.

From FreeBSD:
- Rename ET1011 to ET1011C
- Add ET1011

From FreeBSD:
- Support ET1011.
- Use mii_phy_flowstatus() to reflect flow status from negotiated result.

(martin)

2019-09-01 13:52:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #143):

sys/arch/x86/pci/if_vmx.c: revision 1.49

vmxnet3_softc.vmx_stats should not count globally. pointed out by hikaru@n.o

divide vmxnet3_softc.vmx_stats to each vmxnet3_txqueue and vmxnet3_rxqueue,
furthermore make them evcnt.

(martin)

2019-09-01 13:39:07 UTC MAIN commitmail json YAML

2019-09-01 13:30:55 UTC MAIN commitmail json YAML

2019-09-01 13:25:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #142):

sys/stand/efiboot/efifdt.c: revision 1.19

Only set #address-cells and #size-cells properties on /chosen if we are
fabricating a devicetree (ACPI mode). Fixes PR# 54494

(martin)

2019-09-01 13:21:39 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rmind in ticket #141):

usr.sbin/npf/npfctl/npf_bpf_comp.c: revision 1.15
sys/net/npf/npf_alg.c: revision 1.21
sys/net/npf/npf.h: revision 1.62
sys/net/npf/npf_ctl.c: revision 1.57
sys/net/npf/npf_ctl.c: revision 1.58
sys/net/npf/npf_os.c: revision 1.16
sys/net/npf/npf_os.c: revision 1.17
sys/net/npf/npf_conf.c: revision 1.15
sys/net/npf/npf_impl.h: revision 1.78
sys/sys/mbuf.h: revision 1.220
sys/net/npf/npf_impl.h: revision 1.79
sys/net/npf/npf.c: revision 1.41
usr.sbin/npf/npftest/libnpftest/npf_rule_test.c: revision 1.19
sys/net/npf/npf_nat.c: revision 1.48
sys/net/npf/npf_handler.c: revision 1.48
sys/net/npf/npf_ifaddr.c: revision 1.6

- npfctl_load_nvlist: simplify the config loading logic.
- Fix a small race condition in npf_nat_getaddr().
- Rework pserialize/EBR wrappers, make it easier to maintain.
Move PACKET_TAG_NPF where it belongs to.
Make npfctl_switch() and pfil private to OS-specific module.

(martin)

2019-09-01 13:18:40 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rmind in ticket #140):

external/bsd/libnv/lib/Makefile: revision 1.3
usr.sbin/npf/npfd/Makefile: revision 1.7
lib/libnpf/Makefile: revision 1.11
lib/libnpf/Makefile: revision 1.12
libexec/identd/Makefile: revision 1.18
usr.sbin/npf/npfctl/Makefile: revision 1.14
lib/npf/mod.mk: revision 1.8
external/bsd/libnv/lib/srcs.mk: revision 1.1

libnpf fix: link the library itself to libnv; libnpf users should not be
expected to assume this dependency.

Move common parts into a makefile fragment usable from elsewhere.
Suggested by mrg.

Include libnv directly into this library

(martin)

2019-09-01 13:13:14 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rmind in ticket #139):

lib/libnpf/npf.c: revision 1.47
usr.sbin/npf/npftest/libnpftest/npf_nbuf_test.c: revision 1.10
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c: revision 1.10
sys/net/npf/npf.h: revision 1.61
sys/net/npf/npf_ctl.c: revision 1.56
sys/net/npf/npf_os.c: revision 1.15
lib/libnpf/libnpf.3: revision 1.10
sys/net/npf/npf_tableset.c: revision 1.34
usr.sbin/npf/npfctl/npfctl.c: revision 1.61
sys/net/npf/npf_impl.h: revision 1.77
lib/libnpf/npf.h: revision 1.37

- npftest: fix a memleak in a unit test (standalone path only).
- Minor style fixes.  No functional change.
npfkern/libnpf: Add support for the table replace/swap operation.
Contributed by Timshel Knoll-Miller.

(martin)

2019-09-01 13:10:27 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maya in ticket #137):

external/gpl3/gcc/dist/gcc/dse.c: revision 1.10
external/gpl3/gcc/dist/gcc/reload.c: revision 1.8

Don't keep our local modifications as ifdef __NetBSD__.

When we build netbsd on another OS, we produce a cross compiler without
these definitions.

Fixes some compiler crashes when building netbsd/vax on linux.

(martin)

2019-09-01 13:08:13 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #136):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.205
sys/dev/pci/ixgbe/ixgbe.c: revision 1.206

fix typo in error handling of ixgbe_allocate_legacy().
ok by msaitoh@n.o

pullup-8, pullup-9

-

Fix panic when ncpu == 1 && sysctl -w hw.ixg0.txrx_workqueue=1. Reported by nonaka@n.o.

ok by msaitoh@n.o and nonaka@n.o

pullup-8, pullup-9

(martin)

2019-09-01 13:00:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #135):

distrib/sets/lists/comp/mi 1.2279
distrib/sets/lists/modules/mi 1.123
share/man/man9/Makefile 1.438
share/man/man9/usbnet.9 1.1-1.9
sys/dev/ic/rndisreg.h 1.3
sys/dev/usb/TODO 1.47-1.52
sys/dev/usb/TODO.usbmp 1.15,1.16
sys/dev/usb/files.usb 1.157-1.167
sys/dev/usb/if_aue.c 1.155-1.161
sys/dev/usb/if_auereg.h 1.30-1.32
sys/dev/usb/if_axe.c 1.103-1.119
sys/dev/usb/if_axen.c 1.51-1.53,1.55-1.67
sys/dev/usb/if_axenreg.h 1.15
sys/dev/usb/if_cdce.c 1.54-1.67
sys/dev/usb/if_cue.c 1.85,1.86
sys/dev/usb/if_cuereg.h 1.23
sys/dev/usb/if_kue.c 1.97-1.100
sys/dev/usb/if_kuereg.h 1.23,1.24
sys/dev/usb/if_mue.c 1.51-1.55
sys/dev/usb/if_muereg.h 1.6
sys/dev/usb/if_muevar.h 1.9
sys/dev/usb/if_smsc.c 1.46-1.61
sys/dev/usb/if_smscreg.h 1.6
sys/dev/usb/if_smscvar.h delete
sys/dev/usb/if_udav.c 1.60-1.71
sys/dev/usb/if_udavreg.h 1.14,1.15
sys/dev/usb/if_upl.c 1.65,1.66
sys/dev/usb/if_ure.c 1.15-1.31
sys/dev/usb/if_urevar.h 1.4,1.5
sys/dev/usb/if_url.c 1.67-1.70
sys/dev/usb/if_urlreg.h 1.14
sys/dev/usb/if_urndis.c 1.22-1.33
sys/dev/usb/if_urtwn.c 1.72
sys/dev/usb/ohci.c 1.290
sys/dev/usb/uhub.c 1.143
sys/dev/usb/usb.c 1.180
sys/dev/usb/usb.h 1.118
sys/dev/usb/usb_mem.c 1.71
sys/dev/usb/usb_subr.c 1.238,1.239
sys/dev/usb/usbdevs 1.772
sys/dev/usb/usbdi.c 1.183,1.186
sys/dev/usb/usbdi.h 1.97
sys/dev/usb/usbdi_util.c 1.75
sys/dev/usb/usbhist.h 1.5,1.6
sys/dev/usb/usbnet.c 1.1-1.24
sys/dev/usb/usbnet.h 1.1-1.14
sys/dev/usb/usbroothub.c 1.9
sys/dev/usb/xhci.c 1.109,1.110
sys/modules/Makefile 1.223
sys/modules/usbnet/Makefile 1.1

usbnet(9): Add common framework for USB network devices.
This bring various safety fixes to all updated drivers,
and includes locking clean up, detach safety when being
used or not, separate rx/tx locks to improve performance,
porting to NET_MPSAFE, many edge/error case bugs in
drivers fixed, as well as resovling PRs 54303 and 54308.
These drivers are converted: axe(4), axen(4), aue(4),
cdce(4), cue(4), kue(4), mue(4), smsc(4), udav(4),
upl(4), ure(4), url(4), and urndis(4).

(martin)

2019-09-01 12:56:14 UTC MAIN commitmail json YAML

2019-09-01 12:50:22 UTC MAIN commitmail json YAML

grammar
address warnings from mandoc -Tlint while here.

(sevan)

2019-09-01 11:44:23 UTC MAIN commitmail json YAML

Keep SDIO interrupt enable state when masking other interrupts

(jmcneill)

2019-09-01 11:12:45 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #134):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.202
sys/dev/pci/ixgbe/ixgbe.c: revision 1.203
sys/dev/pci/ixgbe/ixgbe.c: revision 1.204
sys/dev/pci/ixgbe/ixv.c: revision 1.128

Simplify ix{gbe,v}_[un]register_vlan() API suggested by knakahara.

The API was the same as FreeBSD's pre-iflib's. They use iflib now and it's
not required for us to keep the old API.
X550EM supports QSFP, so check ixgbe_media_type_fiber_qsfp too.

An interrupt might not arrive when a module is inserted. When an link status
change interrupt occurred and the driver still regard SFP as unplugged, link
becomes up and the real media type is unknown. e.g:

% ifconfig -m ixg0
(snip)
        media: Ethernet autoselect (autoselect rxpause,txpause)
        status: active
        supported Ethernet media:
                media none
                media autoselect
(snip)

To resolve this problem, when an link status change interrupt occurred and the
driver still regard SFP as unplugged, issue the module softint before issuing
LSC interrupt.

(martin)

2019-09-01 11:07:06 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #133):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.200
sys/dev/pci/ixgbe/ixgbe.c: revision 1.201
sys/dev/pci/ixgbe/ixv.c: revision 1.126
sys/dev/pci/ixgbe/ixv.c: revision 1.127
sys/net/if_vlan.c: revision 1.142
sys/net/if_vlan.c: revision 1.143
sys/net/if_vlan.c: revision 1.144
sys/net/if_vlan.c: revision 1.145
sys/net/if_vlan.c: revision 1.146

Check ec_capenable instead of ec_capabilities to control TX side of VLAN HW
tagging correctly.
XXX pullup-9

Add missing IFNET_LOCK() and IFNET_UNLOCK() in vlan_config().
XXX pullup-9

Fix a bug that VLAN HW "tagging" enable/disable may not reflect correctly.
  - Always call ec_vlan_cb() if it exists.
  - Some (or all?) ethernet drivers don't enable HW tagging if no any vlan is
    attached. ixgbe is one of them. Check the the transition and update
    VLAN HW tagging function.
XXX pullup-9

Use ETHER_LOCK()/ETHER_UNLOCK() suggested by knakahara.
- kmem_alloc(,KM_SLEEP) never return NULL, so remove NULL check.
- VLAN ID is never duplicated, so break the loop when found. Also move
  kmen_free() outside of ETHER_LOCK(ec)/ETHER_UNLOCK(ec) to reduce the hold
  time. suggested by ozaki-r.
- Whitespace fix.

(martin)

2019-09-01 11:02:27 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #132):
sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207
Add missing operation VOP_GETPAGES() returning EFAULT.
Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.
Observed by maxv@

(martin)

2019-09-01 11:00:31 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by roy in ticket #131):

sys/netinet6/nd6.c: revision 1.260

inet6: nd6_free assumes all routers are processed by kernel RA

This hasn't been the case for a long time if you're a dhcpcd
user with a default config. As such, it's possible for the default
IPv6 router as set by dhcpcd could be erroneously gc'ed by nd6_free.

This reduces the scope of the ND6_WLOCK taken as well as fixing an
issue where we write to ln->ln_state without a lock being held.

(martin)

2019-09-01 10:57:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #128):

sys/dev/sysmon/sysmon_power.c: revision 1.61

Fix info leak, not all of 'pev' is initialized.

(martin)

2019-09-01 10:56:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #129):

sys/kern/subr_pool.c: revision 1.256
sys/kern/subr_pool.c: revision 1.257

Kernel Heap Hardening: use bitmaps on all off-page pools. This migrates 29
MI pools on amd64 from linked lists to bitmaps, which have higher security
properties.

Then, change the computation of the size of the PH pools: take into account
the bitmap area available by default in the ph_u2 union, and don't go with
&phpool[>0] if &phpool[0] already has enough space to embed a bitmap.

The pools that are migrated in this change all use bitmaps small enough to
fit in &phpool[0], therefore there is no increase in memory consumption.

-

Revert r1.254, put back || for KASAN, some destructors like lwp_dtor()
caused false positives. Needs more work.

(martin)

2019-09-01 10:49:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #127):

sys/netipsec/key.c: revision 1.266

Fix info leaks.

(martin)

2019-09-01 10:44:24 UTC netbsd-9 commitmail json YAML

src/Makefile@1.327.2.2 / diff / nxr@1.327.2.2
src/common/lib/libc/gmon/mcount.c@1.13.18.1 / diff / nxr@1.13.18.1
src/distrib/sets/lists/base/mi@1.1209.2.2 / diff / nxr@1.1209.2.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile@1.1.2.4 / diff / nxr@1.1.2.4
src/external/bsd/fetch/lib/Makefile@1.11.6.1 / diff / nxr@1.11.6.1
src/external/gpl2/lvm2/lvm2tools.mk@1.4.46.1 / diff / nxr@1.4.46.1
src/lib/libc/gen/sysctlgetmibinfo.c@1.13.16.1 / diff / nxr@1.13.16.1
src/share/mk/Makefile@1.50.4.1 / diff / nxr@1.50.4.1
src/share/mk/bsd.lib.mk@1.379.2.1 / diff / nxr@1.379.2.1
src/share/mk/bsd.prog.mk@1.319.2.3 / diff / nxr@1.319.2.3
src/share/mk/bsd.sanitizer.mk@1.1.2.2 / diff / nxr@1.1.2.2
src/tests/lib/libc/net/Makefile@1.11.2.1 / diff / nxr@1.11.2.1

Pull up following revision(s) (requested by kamil in ticket #126):

external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3
external/gpl2/lvm2/lvm2tools.mk: revision 1.5
common/lib/libc/gmon/mcount.c: revision 1.14
Makefile: revision 1.331
share/mk/Makefile: revision 1.51
external/bsd/fetch/lib/Makefile: revision 1.12
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3
tests/lib/libc/net/Makefile: revision 1.12
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3
distrib/sets/lists/base/mi: revision 1.1213
share/mk/bsd.lib.mk: revision 1.380
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3
share/mk/bsd.sanitizer.mk: revision 1.1
share/mk/bsd.prog.mk: revision 1.323
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3
lib/libc/gen/sysctlgetmibinfo.c: revision 1.14

Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.

Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.

(martin)

2019-09-01 10:40:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by gson in ticket #124):

share/mk/bsd.own.mk: revision 1.1150

Don't install PIC libraries by default because they are too big since they
contain debug symbols. I supplied a patch in PR/54449 to remove the debugging
symbols but folks preferred to not install them at all.

(martin)

2019-09-01 10:36:27 UTC netbsd-9 commitmail json YAML

src/Makefile@1.327.2.1 / diff / nxr@1.327.2.1
src/distrib/sets/lists/base/md.amd64@1.277.2.2 / diff / nxr@1.277.2.2
src/distrib/sets/lists/comp/md.amd64@1.271.2.1 / diff / nxr@1.271.2.1
src/distrib/sets/lists/comp/md.i386@1.189.2.1 / diff / nxr@1.189.2.1
src/external/bsd/Makefile@1.63.2.2 / diff / nxr@1.63.2.2
src/external/bsd/compiler_rt/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile@1.1.2.3 / diff / nxr@1.1.2.3
      :
(more 2 files)
Pull up following revision(s) (requested by kamil in ticket #122):

external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.2
distrib/sets/lists/base/md.amd64: revision 1.280
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.2
distrib/sets/lists/comp/md.amd64: revision 1.272
external/bsd/compiler_rt/lib/clang/lib/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/Makefile: revision 1.3
distrib/sets/lists/comp/md.i386: revision 1.190
external/bsd/compiler_rt/lib/clang/Makefile: revision 1.2
Makefile: revision 1.330
external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.2
distrib/sets/lists/base/md.i386: revision 1.153
distrib/sets/lists/base/md.i386: revision 1.154
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.2
external/bsd/Makefile: revision 1.65
external/bsd/compiler_rt/lib/clang/lib/netbsd/syms.mk: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/sources.mk: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.2
distrib/sets/lists/base/md.amd64: revision 1.279
external/bsd/compiler_rt/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile: revision 1.2
external/bsd/compiler_rt/lib/clang/lib/netbsd/Makefile: revision 1.3
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.2
Makefile: revision 1.328
Makefile: revision 1.329
external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.2

Fix building compiler_rt with MKCOMPAT=no; approved by kamil@

Enhance MKSANITIZER support

Add i386 support for LLVM sanitizers.

Add new build phases do-sanitizer-* for building LLVM sanitizers after libs
and before other programs. This phase is important as sanitizers need
to link with libs and sanitized programs must link with sanitizer runtimes.

Fix LLVM sanitizer build by GCC (HAVE_LLVM=no)

Do not error if a priority from 0 to 100 is used for constructor or
destructor.

Use -Wno-error to silence all errors from this warning type. There should
be used -Wno-prio-ctor-dtor, but it's not supported by GCC7.

Rework the LLVM compiler_rt build rules

Register external/bsd/compiler_rt as a _SUBDIR. This will allow to handle
properly includes specific for compiler_rt.

Centralize build_install target for external/bsd/compiler_rt.
With the above changes MKOBJDIR is now respected properly for me.

Do not install LLVM sanitizers into TOOLDIR for !HAVE_LLVM.

Correct the build rules of LLVM sanitizers

Fix generation of .a.syms files in LLVM sanitizers. The old rules weren't
functional and sometimes they were fatal in the build.

Add the .a.syms files to distribution sets.
These files are generated only in certain .a files in 64bit version of
sanitizers.

Correct the location of files with LLVM sanitizers. Move the LLVM sanitizer
entries from base to comp files.

(martin)

2019-09-01 10:19:04 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1350:

sys/dev/mii/ciphy.c 1.27-1.28, 1.30, 1.32
via patch
sys/dev/mii/ciphyreg.h 1.6

- The register bit definitions from register 0 to 15 in ciphyreg.h
  conform to the 802.3 spec, so remove them and use mii.h's definition.
  No functional change.
- Add CS8204, CS8244 VSC8211 and VSC8601 support from {Free,Open}BSD.
- KNF.

(martin)

2019-09-01 10:14:20 UTC netbsd-8 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #1349:

sys/dev/mii/micphy.c 1.6 via patch

Add KSZ8081 support from FreeBSD.

(martin)

2019-09-01 10:08:01 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1348):

sys/dev/isa/itesio_isavar.h: revision 1.12
sys/dev/isa/itesio_isa.c: revision 1.28

Add IT8655 support.

(martin)

2019-09-01 10:03:09 UTC netbsd-7 commitmail json YAML

2019-09-01 10:01:50 UTC netbsd-7 commitmail json YAML

Apply patch, requested by mrg in ticket #1704:

external/gpl3/gdb/dist/bfd/coffgen.c
external/gpl3/gdb/dist/bfd/elf.c
external/gpl3/gdb/dist/bfd/elflink.c
external/gpl3/gdb/dist/bfd/reloc.c
external/gpl3/gdb/dist/bfd/srec.c

Cherry-pick fixes for newer compilers (fixing fallthrough warnings)
from -current.

(martin)

2019-09-01 08:04:48 UTC MAIN commitmail json YAML

List bwfm at sdmmc

(maya)

2019-09-01 05:51:45 UTC MAIN commitmail json YAML

From OpenBSD:
- All the missing pieces (firmware load, chip setup, protocol handling)
TX queue and interrupt handling via sdmmc_task.
Fix locking.
Fix packet parsing.
Add parser for original firmware config files.

(mlelstv)

2019-09-01 05:45:42 UTC MAIN commitmail json YAML

From OpenBSD:
- support block length per function
- add functions to read/write regions
Decode (but not use) SDIO tuple in CIS.
Fix locking.
Add more SDIO defines (partially from version 3.0).

(mlelstv)

2019-09-01 05:40:40 UTC MAIN commitmail json YAML

From OpenBSD:
- move event handling to workqueue
- check for save/restore capability
Tag work queue as MPsafe and increase length.
Juse use bpf_mtap(), the 802.11 encapsulation is handled by firmware.

(mlelstv)

2019-09-01 01:23:14 UTC MAIN commitmail json YAML

Refer to "w+" as "mode" as that's what fopen(3) calls it.

(uwe)

2019-09-01 00:36:52 UTC MAIN commitmail json YAML

add PCMCIA_CISTPL_SDIO definition.

(mlelstv)

2019-08-31 21:35:50 UTC MAIN commitmail json YAML

Move the text that explains that cd(1) is a shell built-in to the very
beginning of the description where it can be seen prominently.
Improve formatting.

(uwe)

2019-08-31 20:16:25 UTC MAIN commitmail json YAML

2019-08-31 18:20:08 UTC MAIN commitmail json YAML

route(8): show addrs for RTM_MISS

(roy)

2019-08-31 17:34:46 UTC MAIN commitmail json YAML

Direct reader to shell documentation generally, rather than csh(1) specifically.
Mention variables OLDPWD and PWD.

(sevan)

2019-08-31 07:49:48 UTC MAIN commitmail json YAML

New sentence, new line. Punctuation improvements.

(wiz)

2019-08-31 02:14:51 UTC MAIN commitmail json YAML

fix Kensington Turbo Mouse support properly
- program the buttons sanely ( as left & right mouse buttons, no toggles and
  no ridiculous debounce delay either ) - apparently the init values were
  cargo culted from cthulhu knows where
- don't fudge buttons anymore, now that they behave sanely
- add comments on what I could figure out the init command actually does
- leave in code to find checksum values for init commands, at least until I
  can figure out what exactly the checksum is
Todo: deal with models that have more than 2 buttons, figure out what the rest
      of the init command does

(macallan)

2019-08-31 01:49:46 UTC MAIN commitmail json YAML

inet6: don't set an invalid lladdr in nd6_free()

We don't want to announce that we've deleted a hwaddr of all zeros.

(roy)

2019-08-30 23:45:13 UTC MAIN commitmail json YAML

The cleaner is compiled into the ATF test harness for the LFS
filesystem tests.  Use the new -J option to pass the raw device into
the cleaner.  This avoids the not rump safe getdiskrawname call and
makes sure we use an internal rump device name for cleaning.  This
should fix bin/54488.

(brad)

2019-08-30 23:41:48 UTC MAIN commitmail json YAML

The cleaner is compiled into rump_lfs and executed as a thread.  Pass
in the raw device using the new -J option.  This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.

(brad)

2019-08-30 23:37:23 UTC MAIN commitmail json YAML

Add support for passing the raw device name separate from the
filesystem.  This is useful in the case where the cleaner is compiled
into code, such as rump_lfs and the ATF tests.  This helps to fix
bin/54488

(brad)

2019-08-30 23:36:41 UTC MAIN commitmail json YAML

2019-08-30 21:41:42 UTC MAIN commitmail json YAML

Document history

(sevan)

2019-08-30 19:24:03 UTC MAIN commitmail json YAML

make Kensington Turbo Mouse ( actually a trackball ) work:
- this thing speaks EMP, act like it
- adjust the *way* excessive timeout for trying to enable EMP mode on mice -
  for some reason this trackball shows up as two devices - the trackball and a
  non-functional non-EMP mouse
- map both buttons to button 0 - one is an on/off switch for button 0, the
  other shows up as regular button 1

(macallan)

2019-08-30 18:52:00 UTC MAIN commitmail json YAML

ARP: change default sysctl entry log_movements to 0

IP address sharing is a thing and shouldn't cause needless diagnostics
by default.

(roy)

2019-08-30 18:48:34 UTC MAIN commitmail json YAML

ARP: remove unused sysctl entry log_unknown_network

(roy)

2019-08-30 15:57:00 UTC MAIN commitmail json YAML

Try modesetting on x86, too.

Not the best option without functional GLAMOR, but it does work.

(maya)

2019-08-30 15:48:25 UTC MAIN commitmail json YAML

Match wsfb on x86, too.

When uefi booting without driver-specific GPU support, wsfb is the only
choice for a graphical driver.

While here, combine the wsfb cases.

(maya)

2019-08-30 15:43:53 UTC MAIN commitmail json YAML

2019-08-30 13:29:17 UTC MAIN commitmail json YAML

2019-08-30 13:12:25 UTC MAIN commitmail json YAML

Decode AMD's CPUID Fn8000_0008 %ebx.

(msaitoh)

2019-08-30 13:11:28 UTC MAIN commitmail json YAML

Add definitions of AMD's CPUID Fn8000_0008 %ebx.

(msaitoh)

2019-08-30 09:24:19 UTC MAIN commitmail json YAML

2019-08-30 09:22:17 UTC MAIN commitmail json YAML

2019-08-30 08:54:58 UTC MAIN commitmail json YAML

2019-08-30 08:40:25 UTC MAIN commitmail json YAML

inet6: Revert prior

It's not needed, listing to RA is enough as discussed on tech-net.

(roy)

2019-08-30 07:53:47 UTC MAIN commitmail json YAML

avoid misalignment in 32 bit kernels and "mach cpu".

(mrg)

2019-08-30 05:59:17 UTC MAIN commitmail json YAML

don't try to set dying when we haven't usbnet_attach()d yet.

reported by maxv.

(mrg)

2019-08-30 05:03:32 UTC MAIN commitmail json YAML

vmxnet3_softc.vmx_stats should not count globally. pointed out by hikaru@n.o

divide vmxnet3_softc.vmx_stats to each vmxnet3_txqueue and vmxnet3_rxqueue,
furthermore make them evcnt.

(knakahara)

2019-08-30 03:34:37 UTC MAIN commitmail json YAML

Delete dead-as-a-doornail-in-a-dead-horse branch.

If dev_priv is null here, you're hosed to begin with, so the apparent
null pointer dereference in this branch is moot; also this is the old
drm code that we should maybe just delete altogether...

Potential null pointer dereference reported by Dr Silvio Cesare of
InfoSect.

(riastradh)

2019-08-30 00:36:53 UTC MAIN commitmail json YAML

Delete dead null test after malloc(M_WAITOK).

Reported as a possible null pointer dereference by Dr Silvio Cesare
of InfoSect, but the branch is dead code anyway.

(riastradh)

2019-08-30 00:33:55 UTC MAIN commitmail json YAML

Don't dereference pointer when we're about to panic because it's null.

Reported by Dr Silvio Cesare of InfoSect.

(riastradh)

2019-08-30 00:01:33 UTC MAIN commitmail json YAML

Only set #address-cells and #size-cells properties on /chosen if we are
fabricating a devicetree (ACPI mode). Fixes PR# 54494

(jmcneill)

2019-08-29 17:54:32 UTC MAIN commitmail json YAML

Note inet6 change about router -> host.

(roy)

2019-08-29 16:58:40 UTC netbsd-9 commitmail json YAML

2019-08-29 16:48:44 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #121):

distrib/i386/ramdisks/common/Makefile.ramdisk: revision 1.14

Set NOSANITIZER in i386 ramdisk image

(martin)

2019-08-29 16:45:26 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kamil in ticket #120):

tests/usr.bin/cc/t_msan_poison.sh: revision 1.1
tests/usr.bin/cc/t_msan_allocated_memory.sh: revision 1.2
tests/usr.bin/cc/t_msan_poison.sh: revision 1.2
tests/usr.bin/c++/t_fuzzer_oom.sh: revision 1.1
tests/usr.bin/cc/t_tsan_signal_errno.sh: revision 1.1
tests/usr.bin/c++/t_fuzzer_simple.sh: revision 1.1
tests/usr.bin/c++/t_fuzzer_oom.sh: revision 1.2
tests/usr.bin/cc/t_tsan_signal_errno.sh: revision 1.2
tests/usr.bin/cc/t_tsan_heap_use_after_free.sh: revision 1.1
tests/usr.bin/c++/t_fuzzer_simple.sh: revision 1.2
tests/usr.bin/cc/t_tsan_heap_use_after_free.sh: revision 1.2
tests/usr.bin/c++/t_tsan_thread_leak.sh: revision 1.1
tests/usr.bin/c++/t_tsan_thread_leak.sh: revision 1.2
tests/usr.bin/cc/t_fuzzer_oom.sh: revision 1.1
distrib/sets/lists/tests/mi: revision 1.819
tests/usr.bin/cc/t_fuzzer_oom.sh: revision 1.2
tests/usr.bin/cc/t_fuzzer_timeout.sh: revision 1.1
tests/usr.bin/cc/t_msan_unpoison.sh: revision 1.1
tests/usr.bin/cc/t_fuzzer_timeout.sh: revision 1.2
tests/usr.bin/cc/t_msan_unpoison.sh: revision 1.2
tests/usr.bin/c++/t_msan_heap.sh: revision 1.1
tests/usr.bin/cc/t_tsan_locked_mutex_destroy.sh: revision 1.1
tests/usr.bin/c++/t_msan_heap.sh: revision 1.2
tests/usr.bin/cc/t_tsan_locked_mutex_destroy.sh: revision 1.2
tests/usr.bin/cc/Makefile: revision 1.8
tests/usr.bin/c++/t_msan_free.sh: revision 1.1
tests/usr.bin/c++/t_msan_unpoison.sh: revision 1.1
tests/usr.bin/c++/t_msan_free.sh: revision 1.2
tests/usr.bin/c++/t_msan_unpoison.sh: revision 1.2
tests/usr.bin/c++/t_tsan_heap_use_after_free.sh: revision 1.1
tests/usr.bin/cc/t_tsan_lock_order_inversion.sh: revision 1.1
tests/usr.bin/c++/t_tsan_heap_use_after_free.sh: revision 1.2
tests/usr.bin/c++/t_msan_poison.sh: revision 1.1
tests/usr.bin/c++/t_msan_partial_poison.sh: revision 1.1
tests/usr.bin/cc/t_tsan_lock_order_inversion.sh: revision 1.2
tests/usr.bin/c++/t_msan_poison.sh: revision 1.2
tests/usr.bin/c++/t_msan_partial_poison.sh: revision 1.2
tests/usr.bin/c++/t_msan_realloc.sh: revision 1.1
tests/usr.bin/cc/t_msan_shadow.sh: revision 1.1
tests/usr.bin/cc/t_msan_partial_poison.sh: revision 1.1
tests/usr.bin/c++/t_msan_realloc.sh: revision 1.2
tests/usr.bin/c++/t_msan_allocated_memory.sh: revision 1.1
tests/usr.bin/cc/t_msan_shadow.sh: revision 1.2
tests/usr.bin/cc/t_msan_partial_poison.sh: revision 1.2
tests/usr.bin/c++/t_msan_allocated_memory.sh: revision 1.2
tests/usr.bin/cc/t_msan_free.sh: revision 1.1
tests/usr.bin/cc/t_msan_free.sh: revision 1.2
tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh: revision 1.1
tests/usr.bin/c++/t_fuzzer_timeout.sh: revision 1.1
tests/usr.bin/cc/t_msan_heap.sh: revision 1.1
tests/usr.bin/c++/t_tsan_locked_mutex_destroy.sh: revision 1.2
tests/usr.bin/c++/t_fuzzer_timeout.sh: revision 1.2
tests/usr.bin/cc/t_tsan_thread_leak.sh: revision 1.1
tests/usr.bin/cc/t_msan_heap.sh: revision 1.2
tests/usr.bin/cc/t_tsan_thread_leak.sh: revision 1.2
tests/usr.bin/cc/t_tsan_data_race.sh: revision 1.1
tests/usr.bin/cc/t_tsan_data_race.sh: revision 1.2
tests/usr.bin/c++/t_tsan_lock_order_inversion.sh: revision 1.1
tests/usr.bin/c++/t_tsan_signal_errno.sh: revision 1.1
tests/usr.bin/c++/t_tsan_lock_order_inversion.sh: revision 1.2
tests/usr.bin/c++/Makefile: revision 1.12
tests/usr.bin/c++/t_tsan_signal_errno.sh: revision 1.2
tests/usr.bin/cc/t_msan_check_mem.sh: revision 1.1
tests/usr.bin/cc/t_msan_check_mem.sh: revision 1.2
tests/usr.bin/cc/t_msan_realloc.sh: revision 1.1
tests/usr.bin/c++/t_tsan_vptr_race.sh: revision 1.1
tests/usr.bin/cc/t_msan_realloc.sh: revision 1.2
tests/usr.bin/c++/t_tsan_vptr_race.sh: revision 1.2
tests/usr.bin/c++/t_msan_shadow.sh: revision 1.1
tests/usr.bin/c++/t_msan_shadow.sh: revision 1.2
tests/usr.bin/c++/t_msan_stack.sh: revision 1.1
tests/usr.bin/c++/t_tsan_data_race.sh: revision 1.1
tests/usr.bin/c++/t_msan_stack.sh: revision 1.2
tests/usr.bin/cc/t_fuzzer_simple.sh: revision 1.1
tests/usr.bin/c++/t_tsan_data_race.sh: revision 1.2
tests/usr.bin/cc/t_fuzzer_simple.sh: revision 1.2
tests/usr.bin/c++/t_msan_check_mem.sh: revision 1.1
tests/usr.bin/cc/t_msan_stack.sh: revision 1.1
tests/usr.bin/c++/t_msan_check_mem.sh: revision 1.2
tests/usr.bin/cc/t_msan_stack.sh: revision 1.2
tests/usr.bin/cc/t_msan_allocated_memory.sh: revision 1.1

Add ATF c and c++ tests for TSan, MSan, libFuzzer

These tests require Clang/LLVM 7 or newer on NetBSD.

Contributed by Yang Zheng during GSoC 2018.

-

Define target_not_supported_body() in TSan, MSan and libFuzzer tests

(martin)

2019-08-29 16:33:56 UTC netbsd-8 commitmail json YAML

2019-08-29 16:31:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by knakahara in ticket #1347):

sys/dev/pci/ixgbe/ixgbe.c: revision 1.205
sys/dev/pci/ixgbe/ixgbe.c: revision 1.206

fix typo in error handling of ixgbe_allocate_legacy().
ok by msaitoh@n.o
pullup-8, pullup-9

-

Fix panic when ncpu == 1 && sysctl -w hw.ixg0.txrx_workqueue=1. Reported by nonaka@n.o.

ok by msaitoh@n.o and nonaka@n.o
pullup-8, pullup-9

(martin)

2019-08-29 16:28:47 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1346):

sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(martin)

2019-08-29 16:26:46 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1345):

sys/fs/tmpfs/tmpfs_rename.c: revision 1.9

Fix uninitialized variable: if 'tvp' is NULL, '*tdep' is not initialized.

This could have caused the KASSERT to wrongfully fire.

ok riastradh@

(martin)

2019-08-29 16:26:43 UTC MAIN commitmail json YAML

Userland really has no business with NA messages.
However, RFC 4861 6.2.5 only says departing routers
*SHOULD* send RA with lifetime of zero and *MUST*
send all subsequent NA messages if the router flag
unset.

To help userland avoid the expensive process of
parsing NA messages, send RTM_CHANGE without a
lladdr in the gateway.
This is different from the intial RTM_ADD also
without a lladdr in the gateway and RTM_DELETE.

(roy)

2019-08-29 16:20:48 UTC MAIN commitmail json YAML

Add "d_minphys" to "mddkdriver" to make physio() on wedges happy.

(hannken)

2019-08-29 16:17:08 UTC netbsd-7-0 commitmail json YAML

2019-08-29 16:15:36 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1703):

sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(martin)

2019-08-29 16:15:06 UTC netbsd-7-1 commitmail json YAML

2019-08-29 16:14:37 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1703):

sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(martin)

2019-08-29 16:14:07 UTC netbsd-7 commitmail json YAML

2019-08-29 16:13:37 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1703):

sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161
sys/miscfs/procfs/procfs_vnops.c: revision 1.207

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(martin)

2019-08-29 16:10:28 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by sevan in ticket #1702):

distrib/hpcsh/miniroot/list: revision 1.11
distrib/hpcarm/miniroot/list: revision 1.11
distrib/hpcmips/miniroot/list: revision 1.19

sysctl(8) is useful to have in the install env when debugging

(martin)

2019-08-29 16:08:14 UTC MAIN commitmail json YAML

New sentence - new line.  Minor markup tweaks.

(uwe)

2019-08-29 15:22:08 UTC MAIN commitmail json YAML

Earliest reference to /dev/null I can find is in v4 sh(1) and nulldev in
nsys/ken/subr.c
via TUHS archive
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V4

(sevan)

2019-08-29 14:28:06 UTC MAIN commitmail json YAML

2019-08-29 14:26:55 UTC MAIN commitmail json YAML

inet6: change rt_announce and llchange to bool in nd6_na_input()

(roy)

2019-08-29 13:01:07 UTC MAIN commitmail json YAML

Fix lock assertion on async I/O mode.
psignal() must be called without any spin locks.
Thanks maxv@!

(isaki)

2019-08-29 11:45:29 UTC MAIN commitmail json YAML

Don't keep our local modifications as ifdef __NetBSD__.
When we build netbsd on another OS, we produce a cross compiler without
these definitions.

Fixes some compiler crashes when building netbsd/vax on linux.

(maya)

2019-08-29 09:45:22 UTC MAIN commitmail json YAML

Fix panic when ncpu == 1 && sysctl -w hw.ixg0.txrx_workqueue=1. Reported by nonaka@n.o.

ok by msaitoh@n.o and nonaka@n.o

pullup-8, pullup-9

(knakahara)

2019-08-29 09:35:18 UTC MAIN commitmail json YAML

fix typo in error handling of ixgbe_allocate_legacy().

ok by msaitoh@n.o

pullup-8, pullup-9

(knakahara)

2019-08-29 09:17:51 UTC MAIN commitmail json YAML

fix a lock hang reported by sc.dying in PR#54495.

remove locking in usbnet_tick().  assume that all locking
needs are handled inside usbnet_tick_task(), which runs in
the usbtask thread.  ensure that usbnet private is valid
before using it.

also check NULL private pointer in usbnet_isdying().
all the other cases should never happen.

(mrg)

2019-08-29 06:46:44 UTC netbsd-9 commitmail json YAML

2019-08-29 06:46:13 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #130):
usr.sbin/sysinst/bsddisklabel.c: revision 1.27
Remove dead (#if 0) code.

(msaitoh)

2019-08-29 06:44:16 UTC netbsd-9 commitmail json YAML

2019-08-29 06:43:13 UTC MAIN commitmail json YAML

Add missing operation VOP_GETPAGES() returning EFAULT.

Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED)
would leave the v_interlock held.

Observed by maxv@

(hannken)

2019-08-29 05:55:19 UTC MAIN commitmail json YAML

Add missing NUL to prevent buffer overrun.

(msaitoh)

2019-08-28 22:11:25 UTC MAIN commitmail json YAML

Add RCS Id, sort sections.

(wiz)

2019-08-28 21:48:14 UTC MAIN commitmail json YAML

2019-08-28 20:08:11 UTC MAIN commitmail json YAML

Add thmap(9) man page.  Reviewed by wiz@.
Forgot to commit it half a year ago.

(rmind)

2019-08-28 15:19:06 UTC MAIN commitmail json YAML

Remove dead (#if 0) code.

(martin)

2019-08-28 12:24:03 UTC MAIN commitmail json YAML

syspkg naming for xcomp shl.mi

(uki)

2019-08-28 10:01:57 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #125):
usr.sbin/sysinst/mbr.c: revision 1.21
When requesting no special FS sub type, default to FAT32 with LBA.
Fixes one part of PR 54490.

(msaitoh)

2019-08-28 10:00:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #123):
usr.sbin/sysinst/util.c: revision 1.32
usr.sbin/sysinst/upgrade.c: revision 1.13
usr.sbin/sysinst/defs.h: revision 1.44
Do not offer to upgrade the "current system" if we are running off a CD
(i.e. / is mounted read-only)

(msaitoh)

2019-08-28 08:54:21 UTC MAIN commitmail json YAML

An interrupt might not arrive when a module is inserted. When an link status
change interrupt occurred and the driver still regard SFP as unplugged, link
becomes up and the real media type is unknown. e.g:

% ifconfig -m ixg0
(snip)
        media: Ethernet autoselect (autoselect rxpause,txpause)
        status: active
        supported Ethernet media:
                media none
                media autoselect
(snip)

To resolve this problem, when an link status change interrupt occurred and the
driver still regard SFP as unplugged, issue the module softint before issuing
LSC interrupt.

(msaitoh)

2019-08-28 08:23:35 UTC MAIN commitmail json YAML

X550EM supports QSFP, so check ixgbe_media_type_fiber_qsfp too.

(msaitoh)

2019-08-28 07:11:19 UTC MAIN commitmail json YAML

s/no free/no freelist entry/ in a debug message.

(mrg)

2019-08-28 07:09:52 UTC MAIN commitmail json YAML

introduce and use XHCIHIST_CALLARGS().  reduces lots of double logs,
and includes useful info in all cases instead of just "called".

add a couple of more logs that i've wanted while debugging ryzen3
vs USB issues.

(mrg)

2019-08-28 06:07:21 UTC MAIN commitmail json YAML

in usbnet_detach(), check both that the private pointer has
been allocated and that unp_attached is true before trying
to access anything else.

fixes a detach problem noticed by maxv when, eg, the call
to usbd_set_config_no() fails and attach bails early.

(mrg)

2019-08-28 01:44:39 UTC MAIN commitmail json YAML

add new usbd_do_request_len() that can allocate a larger than
request size buffer.  reimplement usbd_do_request_flags() in
terms of this.  use this for fetching string descriptors.

fixes a very strange problem where an axe(4) attaching (either
has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would
allocate a 2 byte fragment, perform the operation, and sometime
shortly afterwards (usually by the time the next allocation
is made for this fragment), would become corrupted (usually
two bytes were written with 0x0304.)

(initial request of 4 bytes also avoids the problem on this
device.  it really seems like a HC problem -- host should not
allow the device to write more than req.wLength!  nor should
it allow this write to happen after completion.)

avoid an (almost) always double-log in usbd_transfer().

(mrg)

2019-08-27 22:48:55 UTC MAIN commitmail json YAML

Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.
Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.

(kamil)

2019-08-27 21:11:26 UTC MAIN commitmail json YAML

inet6: nd6_free assumes all routers are processed by kernel RA

This hasn't been the case for a long time if you're a dhcpcd
user with a default config. As such, it's possible for the default
IPv6 router as set by dhcpcd could be erroneously gc'ed by nd6_free.

This reduces the scope of the ND6_WLOCK taken as well as fixing an
issue where we write to ln->ln_state without a lock being held.

(roy)

2019-08-27 19:23:23 UTC MAIN commitmail json YAML

2019-08-27 17:24:51 UTC MAIN commitmail json YAML

Fix bug, remove {0,0} because we switched to usb_lookup().

(maxv)

2019-08-27 17:23:24 UTC MAIN commitmail json YAML

When requesting no special FS sub type, default to FAT32 with LBA.
Fixes one part of PR 54490.

(martin)

2019-08-27 14:54:17 UTC MAIN commitmail json YAML

Include libnv directly into this library

(martin)

2019-08-27 14:53:38 UTC MAIN commitmail json YAML

Move common parts into a makefile fragment usable from elsewhere.
Suggested by mrg.

(martin)

2019-08-27 14:11:00 UTC MAIN commitmail json YAML

Do not offer to upgared the "current system" if we are running off a CD
(i.e. / is mounted read-only)

(martin)

2019-08-27 12:45:04 UTC MAIN commitmail json YAML