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 (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 01:39:28 UTC Now

2019-09-28 15:15:09 UTC MAIN commitmail json YAML

Disable NETBSD32_DRMKMS by not using it, but keep compiling it.

(christos)

2019-09-28 15:13:08 UTC MAIN commitmail json YAML

2019-09-28 15:11:53 UTC MAIN commitmail json YAML

remove local version of mstohz() now that <sys/param.h> provides it.

(christos)

2019-09-28 15:11:20 UTC MAIN commitmail json YAML

document that mstohz take and return unsigned int

(christos)

2019-09-28 15:10:58 UTC MAIN commitmail json YAML

For 32 bit the mstohz and hztoms functions evaluate their parameter multiple
times. This is inefficient for cases like:
    unsigned ms = hztoms(MIN(timeout, mstohz(INT_MAX)));
Make them inline functions; also provide the 64 bit versions for them here
so all the LP64 machines can use them (before only amd64 and sparc64
specialized mstohz).
Make them both return unsigned int.

(christos)

2019-09-28 12:40:34 UTC netbsd-9 commitmail json YAML

2019-09-28 12:39:23 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #265):

sys/dev/acpi/acpi_i2c.c: revision 1.5

joshua stein, PR kern/54493: acpi_i2c uses incorrect arguments for _DSM call

The last argument to the _DSM call has to be ACPI_TYPE_PACKAGE, as defined in in
clude/acpredef.h for _DSM.

Avoids an ACPI warning at boot.

(martin)

2019-09-28 12:36:47 UTC netbsd-9 commitmail json YAML

2019-09-28 12:34:56 UTC MAIN commitmail json YAML

2019-09-28 12:21:29 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/nvidia/tegra_pinmux.h: revision 1.2
sys/arch/arm/nvidia/tegra_pinmux.c: revision 1.3
sys/arch/arm/nvidia/tegra210_pinmux.c: revision 1.2

Update tegra_pinmux to support all bindings (pins and pin groups)
Update tegra210_pinmux.c with all defined pins and groups.

(martin)

2019-09-28 11:24:10 UTC MAIN commitmail json YAML

joshua stein, PR kern/54493: acpi_i2c uses incorrect arguments for _DSM call

The last argument to the _DSM call has to be ACPI_TYPE_PACKAGE, as defined in in
clude/acpredef.h for _DSM.

Avoids an ACPI warning at boot.

(bouyer)

2019-09-28 10:47:09 UTC MAIN commitmail json YAML

Fix typo, remove debug printf.

(mlelstv)

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

2019-09-28 07:52:18 UTC netbsd-7-0 commitmail json YAML

2019-09-28 07:51:58 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #1709):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:51:32 UTC netbsd-7-1 commitmail json YAML

2019-09-28 07:51:11 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #1709):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:50:46 UTC netbsd-7 commitmail json YAML

2019-09-28 07:50:23 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #1709):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:48:30 UTC netbsd-8 commitmail json YAML

2019-09-28 07:47:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #1395):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:45:25 UTC netbsd-8 commitmail json YAML

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

external/mit/expat/lib/libexpat/Makefile: revision 1.3
external/mit/expat/lib/libexpat/Makefile: revision 1.4

Now that expat_config.h uses a header that is OS-specific, using the HOST_CC
breaks for some setups which lack it (netbsd<8, possibly other things).

Use the compiler targetting netbsd that uses netbsd headers to figure out
PACKAGE_VERSION to avoid this problem.

Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.

(martin)

2019-09-28 07:43:34 UTC netbsd-9 commitmail json YAML

2019-09-28 07:42:47 UTC MAIN commitmail json YAML

Update tegra_pinmux to support all bindings (pins and pin groups)

Update tegra210_pinmux.c with all defined pins and groups.

(skrll)

2019-09-28 07:41:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #262):

usr.bin/audiocfg/main.c: revision 1.10
usr.bin/audiocfg/main.c: revision 1.11
usr.bin/audiocfg/audiodev.c: revision 1.8
usr.bin/audiocfg/audiodev.h: revision 1.6
usr.bin/audiocfg/audiodev.c: revision 1.9
usr.bin/audiocfg/audiodev.h: revision 1.7

Rename some members in adev for clarity.  No functional changes intended.

Revert to use single descriptor for "audiocfg test" as before.

(martin)

2019-09-28 07:39:30 UTC MAIN commitmail json YAML

Fix build on SOC_BCM2835 kernels

(skrll)

2019-09-28 07:34:50 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #261):

usr.bin/audiocfg/audiocfg.1: revision 1.6

Fix markup.  index of list command is optional.

(martin)

2019-09-28 07:32:03 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by plunky in ticket #260):

sys/netbt/hci_event.c: revision 1.26
sys/netbt/hci.h: revision 1.46

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506
https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(martin)

2019-09-28 07:29:15 UTC netbsd-9 commitmail json YAML

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

external/mit/expat/lib/libexpat/Makefile: revision 1.3
external/mit/expat/lib/libexpat/Makefile: revision 1.4

Now that expat_config.h uses a header that is OS-specific, using the HOST_CC
breaks for some setups which lack it (netbsd<8, possibly other things).
Use the compiler targetting netbsd that uses netbsd headers to figure out
PACKAGE_VERSION to avoid this problem.

Unless we add --sysroot, the netbsd src tree headers won't be used.

Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.

(martin)

2019-09-28 07:25:53 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by isaki in ticket #258):

usr.bin/audiocfg/main.c: revision 1.9

Fix assertion of "audiocfg list <n>" when n is an illegal index.

(martin)

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

2019-09-28 07:24:29 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jakllsch in ticket #257):

sys/stand/efiboot/efiblock.c: revision 1.7

Use roundup2() instead of open coding something almost the same that
truncates 64-bit quantities.

Fixes disk access and booting in bootaa64.efi on SoftIron OverDrive 1000
(which does not have any memory below 4GiB).

(martin)

2019-09-28 07:22:16 UTC netbsd-9 commitmail json YAML

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

sys/dev/fdt/fdt_pinctrl.c: revision 1.9

Don't assume pinctrl-0 is the default configuration.

(martin)

2019-09-28 07:10:55 UTC MAIN commitmail json YAML

permit read_encryption_key_size from userland

(plunky)

2019-09-28 07:06:50 UTC MAIN commitmail json YAML

2019-09-28 07:06:33 UTC MAIN commitmail json YAML

When encrypted connections are configured, verify that the encryption
key length has a minimum size when the adaptor supports that.

This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506

https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/

(plunky)

2019-09-28 07:06:32 UTC MAIN commitmail json YAML

2019-09-27 22:36:57 UTC MAIN commitmail json YAML

Fix copying issue that was causing errors in unit_test puffs_tstavfs by
removing code.

(christos)

2019-09-27 20:10:43 UTC MAIN commitmail json YAML

Use roundup2() instead of open coding something almost the same that
truncates 64-bit quantities.

Fixes disk access and booting in bootaa64.efi on SoftIron OverDrive 1000
(which does not have any memory below 4GiB).

(jakllsch)

2019-09-27 20:05:53 UTC MAIN commitmail json YAML

Don't assume pinctrl-0 is the default configuration.

(jmcneill)

2019-09-27 15:31:38 UTC netbsd-9 commitmail json YAML

2019-09-27 15:29:27 UTC netbsd-9 commitmail json YAML

2019-09-27 14:36:19 UTC MAIN commitmail json YAML

Instead of casting to size_t, cast to uintmax_t to prevent truncation
(pointed out by chuq). In all these cases uio_offset can't be negative.

(christos)

2019-09-27 12:58:55 UTC MAIN commitmail json YAML

2019-09-27 11:57:42 UTC MAIN commitmail json YAML

Remove libelf from "usr" list. Deleted 2015-09-30.

(bad)

2019-09-27 11:53:42 UTC MAIN commitmail json YAML

Exclude sys/external/{gpl2/dts,bsd/drm*}.

Saves some 100MB in the src-netbsd repo.

(bad)

2019-09-27 09:49:45 UTC netbsd-8 commitmail json YAML

2019-09-27 09:48:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #1393):

usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.10

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

(martin)

2019-09-27 09:40:08 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1392):

sys/arch/i386/stand/efiboot/conf.c: revision 1.3
sys/arch/i386/stand/efiboot/devopen.h: revision 1.5
sys/arch/i386/stand/efiboot/devopen.c: revision 1.8
sys/arch/i386/stand/efiboot/boot.c: revision 1.17
sys/arch/i386/stand/efiboot/dev_net.c: revision 1.3

x86 efiboot: pass a filename to BOOTP and parse a DHCP server provided filename.

(martin)

2019-09-27 09:38:07 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #1391):

sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.2

Fix multiboot32 argument usage

(martin)

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

2019-09-27 09:35:33 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nat in ticket #254):

usr.sbin/bta2dpd/bta2dpd/sbc_encode.c: revision 1.10

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.
XXX pullup -8 and -9.

(martin)

2019-09-27 09:32:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #253):

sys/arch/i386/stand/efiboot/conf.c: revision 1.3
sys/arch/i386/stand/efiboot/devopen.h: revision 1.5
sys/arch/i386/stand/efiboot/devopen.c: revision 1.8
sys/arch/i386/stand/efiboot/boot.c: revision 1.17
sys/arch/i386/stand/efiboot/dev_net.c: revision 1.3

x86 efiboot: pass a filename to BOOTP and parse a DHCP server provided filename.

(martin)

2019-09-27 09:24:30 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #252):

external/cddl/osnet/lib/libzpool/Makefile: revision 1.13
lib/libpthread/Makefile: revision 1.95
external/cddl/osnet/lib/libuutil/Makefile: revision 1.6
distrib/sets/lists/base/shl.mi: revision 1.871
external/cddl/osnet/lib/libzfs_core/Makefile: revision 1.2
external/cddl/osnet/lib/libnvpair/Makefile: revision 1.11
external/cddl/osnet/lib/libzfs/Makefile: revision 1.10
external/cddl/osnet/lib/libavl/Makefile: revision 1.6
distrib/sets/lists/debug/shl.mi: revision 1.230
external/cddl/osnet/lib/libumem/Makefile: revision 1.7

Add USE_SHLIBDIR=yes to a number of Makefiles for the libraries used
by /sbin/{zfs,zpool,mount_zfs}.  The general effect is to move them
from /usr/lib to /lib.  Compatibility links are installed in /usr/lib
and nothing that is installed, say in /usr/pkg, appears to break.

With this, it is possible to have a /var and /usr mount using ZFS
legacy mounting early on in the boot process.
Run tested on amd64 and i386 and compile tested on evbarm.

Fix MKDEBUG distrib sets
Add libpthread, libnvpair and ZFS libs to dynamicroot.

(martin)

2019-09-27 09:20:16 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by manu in ticket #251):

sys/arch/i386/stand/efiboot/bootia32/multiboot32.S: revision 1.2

Fix multiboot32 argument usage

(martin)

2019-09-27 09:18:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by brad in ticket #250):

external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.2
external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.3
external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.4
external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.5
distrib/sets/lists/man/mi: revision 1.1652
distrib/sets/lists/man/mi: revision 1.1653
distrib/sets/lists/etc/mi: revision 1.259
etc/rc.d/mountall: revision 1.11
external/cddl/osnet/sbin/zfs/Makefile: revision 1.5
external/cddl/osnet/dist/cmd/zfs/zfs_main.c: revision 1.7
etc/rc.d/Makefile: revision 1.105
distrib/sets/lists/base/mi: revision 1.1217
etc/rc.d/Makefile: revision 1.106
etc/rc.d/zfs: revision 1.1
etc/defaults/rc.conf: revision 1.152
external/cddl/osnet/sbin/zfs/mount_zfs.8: revision 1.1

Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
mount_zfs.8: add xref to fstab(5)

Use more markup.

Include mount_zfs man pages only for MKZFS builds.

Moved zfs out of MKX11 block.

Fix build failure without X11.

Add a copyright to the man page and a bit of history.
Use Pa macro for path
new sentence, new line

(martin)

2019-09-27 08:57:12 UTC MAIN commitmail json YAML

BEAGLE* kernel expects NetBSD bootargs (command line, no FDT).

(mlelstv)

2019-09-27 08:57:10 UTC MAIN commitmail json YAML

Incrase pxeboot code size limit from 64k to 128k.  Fixes PR kern/54560.
The start_pxe.S part was suggested by mlelstv.

(gson)

2019-09-27 08:17:12 UTC MAIN commitmail json YAML

Ensure failure if resid goes negative.

(mlelstv)

2019-09-27 08:12:01 UTC MAIN commitmail json YAML

2019-09-27 07:20:07 UTC MAIN commitmail json YAML

Sort errors. Remove trailing whitespace.

(wiz)

2019-09-27 02:59:21 UTC MAIN commitmail json YAML

2019-09-27 02:54:57 UTC MAIN commitmail json YAML

Add SDHC_FLAG_NO_BUSY_INTR flag.

(hkenken)

2019-09-27 00:53:34 UTC MAIN commitmail json YAML

do not clear "cold" in MD code, that is done in MI code.
this instance was missed when that was changed 20 years ago.

(chs)

2019-09-27 00:32:04 UTC MAIN commitmail json YAML

Actually return the updated pointer-to-mbuf-pointer to the caller
rather than discarding-after-assignment.  Introduced from the
[pgoyette-compat] branch work.

Welcome to 9.99.14 !!!  (Module hook routine prototype changed.)

Found by the lgtm bot, reported via private Email from maxv@

(pgoyette)

2019-09-26 22:43:37 UTC MAIN commitmail json YAML

rtadvd needs expandm.[hc] from libwrap.

(bad)

2019-09-26 22:39:55 UTC MAIN commitmail json YAML

revert r1.35-r1.40 of sys/rump/listsrcdirs.

addressed differently in tools/Makefile r1.204.

(bad)

2019-09-26 21:09:55 UTC MAIN commitmail json YAML

Do not assume safe to pass NULL to realpath(3).

PR: 54574
Reviewed by: buhrow

(sjg)

2019-09-26 20:57:19 UTC MAIN commitmail json YAML

provide VNOVALSIZE and VNOVALFLAGS to avoid casting in source.

(christos)

2019-09-26 20:11:10 UTC MAIN commitmail json YAML

Validate register number before fetching/storing it (Gopikrishnan Sidhardhan)

(christos)

2019-09-26 19:16:40 UTC netbsd-9 commitmail json YAML

2019-09-26 19:15:18 UTC netbsd-9 commitmail json YAML

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

sys/stand/efiboot/efiboot.c: revision 1.17

Do a full reset of the console at startup

(martin)

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

Pull up following revision(s) (requested by nonaka in ticket #248):

sys/dev/ic/nvme.c: revision 1.46

nvme(4): Don't attach the device, if namespace not found.

(martin)

2019-09-26 19:09:58 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/if_mcx.c: revision 1.2

Use IFM_50G_SR2.

(martin)

2019-09-26 19:07:23 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_type.h 1.42-1.43
sys/dev/pci/ixgbe/ixgbe.c 1.209-1.213
sys/dev/pci/ixgbe/ixgbe_x550.c 1.16
sys/dev/pci/ixgbe/ixv.c 1.131-1.138
sys/dev/pci/ixgbe/ixgbe_vf.c 1.19-1.22
sys/dev/pci/ixgbe/ixgbe_vf.h 1.14
sys/dev/pci/ixgbe/ixgbe.h 1.57-1.58
share/man/man4/ixv.4 1.5

- Fix a bug that MBSDC (Bad SFD Count) isn't counted on X550EM_X and
  X550EM_A. The register is for X550 and newer.
- ixv(4): Make SIOCADDMULTI returns ENOSPC and print error message
  when the Ethernet multicast address list exceeds the limit(30) and
  can't be ALLMULTI.
- ixv(4): SIOCZIFDATA clear the event counters as ixgbe.c.
- Reduce ixv(4)'s multicast table array size in ixv_set_multi from
  MAX_NUM_MULTICAST_ADDRESSES(128) to IXGBE_MAX_VF_MC(30).
- ixv(4): Add support ALLMULTI and PROMISC.
- if_flags is neither int nor short. It's unsigned short.
- ixg(4): Fix a bug that the multicast filter isn't correctly
  initialized when the total number of the Ethernet multicast
  addresses is just 128.
- Make ixv_set_multi() work correctly (especially for PROMISC) when the
  function is called from if_init().
- Remove *_set_promisc() and use *_set_multi(). And then, rename
  *_set_multi() to *_set_rxfilter().
- ixv(4): If a multicast entry has range, use ALLMULTI like others.
- Fix typo in comment. Found by Wataru Ashihara.

(martin)

2019-09-26 19:04:00 UTC netbsd-9 commitmail json YAML

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

sys/dev/microcode/radeon/R600_uvd.bin: revision 1.1
sys/dev/microcode/radeon/RV770_uvd.bin: revision 1.1
sys/dev/microcode/radeon/Makefile: revision 1.4
distrib/sets/lists/base/mi: revision 1.1211
sys/dev/microcode/radeon/TAHITI_vce.bin: revision 1.1
sys/dev/microcode/radeon/RS780_uvd.bin: revision 1.1
sys/dev/microcode/radeon/BONAIRE_uvd.bin: revision 1.2

Update BONAIRE_uvd.bin to the latest.

-

Add missing TAHITI_vce.bin, RV770_uvd.bin, RS780_uvd.bin and R600_uvd.bin.

Fix panic on my own HP EliteDesk 705 G1 SFF. It also fixes PR kern/53988
reported by Onno van der Linden.

(martin)

2019-09-26 18:56:06 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by bouyer in ticket #244):

sys/dev/i2c/ihidev.c: revision 1.8

Abort attach if acpi_intr_establish() fails. From K. Schreiner on
current-users@.

(martin)

2019-09-26 18:52:58 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/pci_subr.c: revision 1.216
sys/dev/pci/pci_subr.c: revision 1.217

Whitespace fixes. No functional change.

-

Print some DPC register values not with %04x but with %08x because those
are 32bit.

(martin)

2019-09-26 18:50:18 UTC netbsd-9 commitmail json YAML

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

usr.sbin/cpuctl/arch/i386.c: revision 1.106
sys/arch/x86/x86/identcpu.c: revision 1.94

Call cpu_dcp_cacheinfo() only when the cpuid Topology Extension flag is set
on AMD processor.

(martin)

2019-09-26 18:47:14 UTC netbsd-9 commitmail json YAML

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

sys/arch/x86/include/specialreg.h: revision 1.152
sys/arch/x86/include/specialreg.h: revision 1.153
usr.sbin/cpuctl/arch/i386.c: revision 1.105
sys/arch/x86/x86/spectre.c: revision 1.30
sys/arch/x86/include/specialreg.h: revision 1.151

Add definitions of AMD's CPUID Fn8000_0008 %ebx.
Decode AMD's CPUID Fn8000_0008 %ebx.
Use macro.
Add MCOMMIT instruction.
Define CPUID_CAPEX_FLAGS's bit 10 correctly.

(martin)

2019-09-26 18:45:00 UTC MAIN commitmail json YAML

2019-09-26 18:44:45 UTC MAIN commitmail json YAML

Cast m_mbuflen() result to "size_t". It could also be "u_int" since it is
assigned to "u_int", but all the other "standalone" equivalent functions return
"size_t".

(christos)

2019-09-26 18:36:08 UTC MAIN commitmail json YAML

2019-09-26 18:35:48 UTC MAIN commitmail json YAML

cast VNOVAL to the the va_size type which is u_quad_t... I think it is time
to change this to uint64_t...

(christos)

2019-09-26 18:25:17 UTC netbsd-8 commitmail json YAML

2019-09-26 18:23:13 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1390):

sys/dev/ic/nvme.c: revision 1.46

nvme(4): Don't attach the device, if namespace not found.

(martin)

2019-09-26 18:19:27 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_type.h 1.42-1.43
sys/dev/pci/ixgbe/ixgbe.c 1.209-1.213 via patch
sys/dev/pci/ixgbe/ixv.c 1.131-1.138 via patch
sys/dev/pci/ixgbe/ixgbe_vf.c 1.19-1.22
sys/dev/pci/ixgbe/ixgbe_vf.h 1.14
sys/dev/pci/ixgbe/ixgbe.h 1.57-1.58 via patch
share/man/man4/ixv.4 1.5 via patch

- Fix a bug that MBSDC (Bad SFD Count) isn't counted on X550EM_X and
  X550EM_A. The register is for X550 and newer.
- ixv(4): Make SIOCADDMULTI returns ENOSPC and print error message
  when the Ethernet multicast address list exceeds the limit(30) and
  can't be ALLMULTI.
- ixv(4): SIOCZIFDATA clear the event counters as ixgbe.c.
- Reduce ixv(4)'s multicast table array size in ixv_set_multi from
  MAX_NUM_MULTICAST_ADDRESSES(128) to IXGBE_MAX_VF_MC(30).
- ixv(4): Add support ALLMULTI and PROMISC.
- if_flags is neither int nor short. It's unsigned short.
- Fix a bug that the multicast filter isn't correctly initialized when
  the total number of the Ethernet multicast addresses is just 128.
- Make ixv_set_multi() work correctly (especially for PROMISC) when the
  function is called from if_init().
- Remove *_set_promisc() and use *_set_multi(). And then, rename
  *_set_multi() to *_set_rxfilter().
- ixv(4): If a multicast entry has range, use ALLMULTI like others.

(martin)

2019-09-26 18:14:54 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/pcireg.h 1.147 via patch
sys/dev/pci/pci_subr.c 1.212, 1.215-1.217 via patch

- Change fast back-to-back "capable" to "enable" in pci_subr.c.
- Print Primary Discard Timer, Secondary Discard Timer, Discard
  Timer Status and Discard Timer SERR# Enable bit in pci_subr.c.
- Print some DPC register values not with %04x but with %08x because
  those are 32bit.
- Remove whitespace for consistency.
- Use macro.
- Whitespace fixes.

(martin)

2019-09-26 18:11:02 UTC netbsd-8 commitmail json YAML

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

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-26 17:52:51 UTC MAIN commitmail json YAML

Provide a weak alias for vnode_to_path to be used unless librumpvfs is present.

(bad)

2019-09-26 17:34:56 UTC MAIN commitmail json YAML

2019-09-26 17:34:08 UTC MAIN commitmail json YAML

2019-09-26 17:33:18 UTC MAIN commitmail json YAML

Rewrite the procfs_fileno as an inline function to make it more clear what
it does...

(christos)

2019-09-26 17:13:52 UTC MAIN commitmail json YAML

document errors returned by F_GETPATH

(christos)

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

Do a full reset of the console at startup

(jmcneill)

2019-09-26 12:21:03 UTC MAIN commitmail json YAML

2019-09-26 11:50:32 UTC MAIN commitmail json YAML

nvme(4): Don't attach the device, if namespace not found.

(nonaka)

2019-09-26 11:47:38 UTC MAIN commitmail json YAML

cgd_crypto.c: fix minor typo in comment

(gutteridge)

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

Fix FALLTHROUGH comments.

(mlelstv)

2019-09-26 10:47:30 UTC MAIN commitmail json YAML

Need MIN in userland. Also some more signed/unsigned clashes.

(mlelstv)

2019-09-26 10:33:30 UTC MAIN commitmail json YAML

nspares is now unsigned. Validate and use as positive integer.

(mlelstv)

2019-09-26 09:21:34 UTC MAIN commitmail json YAML

Exclude more subdirs if TOOLS_BUILDRUMP=yes.

Exclude subdirs added in the last 3 years but not need for rumpkernel builds.

(bad)

2019-09-26 08:16:26 UTC MAIN commitmail json YAML

Abort attach if acpi_intr_establish() fails. From K. Schreiner on
current-users@.

(bouyer)

2019-09-26 08:04:17 UTC MAIN commitmail json YAML

src/external/gpl3/gcc.old/Makefile@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/Makefile.gcc_path@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/Makefile.hooks@1.8 / diff / nxr@1.8
src/external/gpl3/gcc.old/dist/INSTALL/README@1.7 / diff / nxr@1.7
src/external/gpl3/gcc.old/dist/INSTALL/binaries.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/build.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/configure.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/download.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/finalinstall.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/gfdl.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/index.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/old.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/prerequisites.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/specific.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/INSTALL/test.html@1.10 / diff / nxr@1.10
src/external/gpl3/gcc.old/dist/contrib/header-tools/README@1.3 / diff / nxr@1.3
src/external/gpl3/gcc.old/dist/contrib/header-tools/count-headers@1.3 / diff / nxr@1.3
src/external/gpl3/gcc.old/dist/contrib/header-tools/gcc-order-headers@1.3 / diff / nxr@1.3
src/external/gpl3/gcc.old/dist/contrib/header-tools/graph-header-logs@1.3 / diff / nxr@1.3
src/external/gpl3/gcc.old/dist/contrib/header-tools/graph-include-web@1.3 / diff / nxr@1.3
      :
(more 4930 files)
merge gcc 7.4 into gcc.old part 3 (last?)

(mrg)

2019-09-26 06:42:53 UTC MAIN commitmail json YAML

Define CPUID_CAPEX_FLAGS's bit 10 correctly.

(msaitoh)

2019-09-26 05:55:57 UTC MAIN commitmail json YAML

2019-09-26 05:51:13 UTC MAIN commitmail json YAML

2019-09-26 04:16:03 UTC MAIN commitmail json YAML

Fix typo in comment.

(msaitoh)

2019-09-26 02:01:05 UTC MAIN commitmail json YAML

2019-09-26 02:00:27 UTC MAIN commitmail json YAML

Limit -Wno-sign-compare to only rtsock_50.c which by virtue of including
rtsock_shared.c and using m_len is a mess to fix.

(christos)

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

- promote regs from int to u_int in comparisons with unsigned constants
- cast -1 to __greg32_t which is unsigned and the LHS.

(christos)

2019-09-26 01:37:53 UTC MAIN commitmail json YAML

- "source" is u_long in the kernel (and int in userland). Cast -1 to u_long.
- make "s" unsigned since blocksize is too.

(christos)

2019-09-26 01:36:11 UTC MAIN commitmail json YAML

make nspares unsigned; it is assigned from numSpares which is unsigned.

(christos)

2019-09-26 01:35:08 UTC MAIN commitmail json YAML

subdevlen is an array length, make it unsigned

(christos)

2019-09-26 01:34:16 UTC MAIN commitmail json YAML

make nmountcompatnames unsigned (assigned from __arraycount, compared with
unsigned in compat code)

(christos)

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

2019-09-26 01:30:46 UTC MAIN commitmail json YAML

accrightslen should be u_int for compat too

(christos)

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

make the ?: expression types match

(christos)

2019-09-26 01:29:00 UTC MAIN commitmail json YAML

accrightslen is always used in an unsigned context so make it.

(christos)

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

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

Switch default console tty from /dev/console to /dev/constty

With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users

(abs)

2019-09-25 21:40:43 UTC MAIN commitmail json YAML

avoid signed-compare warning; use uintmax_t to print.

(christos)

2019-09-25 20:19:59 UTC MAIN commitmail json YAML

teach hijack about the new vfs syscalls

(christos)

2019-09-25 20:17:59 UTC MAIN commitmail json YAML

2019-09-25 19:06:30 UTC MAIN commitmail json YAML

PR/54572 - Edgar Fu� -- error in comment

(jnemeth)

2019-09-25 18:05:39 UTC MAIN commitmail json YAML

Add BCM2838_{PERIPHERALS,ARM_LOCAL}_BASE and support macros

(skrll)

2019-09-25 18:01:03 UTC MAIN commitmail json YAML

s/2835/283X/ in BCM2835_PERIPHERALS_BASE_BUS and BCM2835_PERIPHERALS_SIZE
to show they cover all of 283[5678]

NFCI

(skrll)

2019-09-25 16:57:11 UTC MAIN commitmail json YAML

2019-09-25 16:50:28 UTC MAIN commitmail json YAML

2019-09-25 16:49:37 UTC MAIN commitmail json YAML

2019-09-25 16:48:06 UTC MAIN commitmail json YAML

2019-09-25 16:44:42 UTC MAIN commitmail json YAML

2019-09-25 16:37:54 UTC MAIN commitmail json YAML

Convert a __CTASSERT into a KASSERT as L1_S_CACHE_MASK may not be a
compile time constant if ARM_NMMUS > 1

(skrll)

2019-09-25 16:21:14 UTC MAIN commitmail json YAML

Use correct function to verify if a task has been queued. Avoids race
that can corrupt the task queue.

(mlelstv)

2019-09-25 15:51:37 UTC MAIN commitmail json YAML

Make clang -Wformat-security happier by not passing a (constant) variable
as the format string,
    const string msg; printf(msg)
      -> printf("%s", msg);

the strings are all known and don't currently contain format variables.

(maya)

2019-09-25 15:49:45 UTC netbsd-8 commitmail json YAML

2019-09-25 15:49:17 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1386):

sys/dev/ic/nvme.c: revision 1.45

Don't set Phase Tag bit of Completion Queue entry at nvme_poll_done().

A new completion queue entry check incorrectly determined that there was
a Completion Queue entry for a command that was not submitted.

Fix PR kern/54275, PR kern/54503, PR kern/54532.

(martin)

2019-09-25 15:47:36 UTC netbsd-9 commitmail json YAML

2019-09-25 15:46:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nakayama in ticket #240):

usr.sbin/postinstall/postinstall.in: revision 1.6
usr.sbin/postinstall/postinstall.in: revision 1.7

exclude_libs - redirect ls 2> /dev/null so that the user is not
spammed with errors for directories without any libraries; the most
common case in the wild would be empty /usr/libdata/debug.  Add -d to
ls for good measure while here.

-

Add ${DEST_DIR} prefix to check target directory not host directory.

(martin)

2019-09-25 14:53:20 UTC MAIN commitmail json YAML

2019-09-25 09:53:38 UTC MAIN commitmail json YAML

2019-09-25 09:52:32 UTC MAIN commitmail json YAML

Initialize DAD components properly

The original code initialized each component in non-init functions such as
arp_dad_start and nd6_dad_find, conditionally based on a global flag for each.
However, it was racy because the flag and the code around it were not
protected by a lock and could cause a kernel panic at worst.

Fix the issue by initializing the components in bootup as usual.

(ozaki-r)

2019-09-24 21:40:37 UTC MAIN commitmail json YAML

xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_format_table.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_indices_gen.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/gallium/auxiliary/u_unfilled_gen.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/gallium/drivers/radeonsi/si_driinfo.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mapi/glapi/api_exec.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mapi/glapi/enums.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mapi/glapi/glapi_mapi_tmp.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect.h@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_init.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.c@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mapi/glapi/indirect_size.h@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mapi/glapi/marshal_generated.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mesa/format_info.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mesa/get_hash.h@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mesa/main/dispatch.h@1.3 / diff / nxr@1.3
xsrc/external/mit/MesaLib/src/mesa/main/format_fallback.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mesa/main/format_pack.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mesa/main/format_unpack.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/mesa/main/marshal_generated.h@1.1 / diff / nxr@1.1
      :
(more 6 files)
Add more generated files from mesa 19.1.7.

Generated by doing a regular build using pkgsrc.

(maya)

2019-09-24 21:33:48 UTC MAIN commitmail json YAML

2019-09-24 21:03:29 UTC MAIN commitmail json YAML

2019-09-24 21:01:50 UTC MAIN commitmail json YAML

Add a bunch of meta files from git and hg to ignore from CVS imports

This will allow interop of src/ with git and hg without malforming repos.

(kamil)

2019-09-24 20:07:16 UTC MAIN commitmail json YAML

Avoid conflict with netbsd's highly visible bswap32 definition.

Re-patching, patch was lost in a rename.

(maya)

2019-09-24 19:50:49 UTC MAIN commitmail json YAML

Updated mesa.

(maya)

2019-09-24 19:49:00 UTC MAIN commitmail json YAML

2019-09-24 19:47:33 UTC MAIN commitmail json YAML

Apply u_queue.c patch from pkgsrc:

atexit is not a good idea in shared libraries.
attempt to port cpuset logic to netbsd

(maya)

2019-09-24 19:45:13 UTC MAIN commitmail json YAML

Provide a bogus definition of NAN for vax.

ifdef __vax__ rather than ifndef NAN to ensure it is never accidentally
picked up for non-VAX.

(maya)

2019-09-24 19:29:42 UTC MAIN commitmail json YAML

2019-09-24 19:26:53 UTC MAIN commitmail json YAML

2019-09-24 19:21:45 UTC MAIN commitmail json YAML

Add a temporary ctassert checking whether void* and intptr_t are compatible

(kamil)

2019-09-24 19:21:13 UTC MAIN commitmail json YAML

xsrc/external/mit/MesaLib/src/amd/common/sid_tables.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/float64_glsl.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-lex.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glcpp/glcpp-parse.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_lexer.cpp@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.cpp@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/glsl_parser.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_constant.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/glsl/ir_expression_operation_strings.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/ir_expression_operation.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_builder_opcodes.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_constant_expressions.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_intrinsics.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opcodes.h@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/nir/nir_opt_algebraic.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/spirv/spirv_info.c@1.1 / diff / nxr@1.1
xsrc/external/mit/MesaLib/src/compiler/spirv/vtn_gather_types.c@1.1 / diff / nxr@1.1
      :
(more 21 files)
Update generated files from a regular build of mesa 19.1.7.

The pkgconfig files are now generated using meson, no more .pc.in files,
so I made my own using the result of the pkgsrc build.

(maya)

2019-09-24 19:19:49 UTC MAIN commitmail json YAML

Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.

(maya)

2019-09-24 18:28:19 UTC netbsd-8 commitmail json YAML

2019-09-24 18:27:10 UTC netbsd-8 commitmail json YAML

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

sys/net/if.c 1.461
sys/net/if.h 1.277
sys/net/if_gif.c 1.149
sys/net/if_gif.h 1.33
sys/net/if_ipsec.c 1.19,1.20,1.24
sys/net/if_ipsec.h 1.5
sys/net/if_l2tp.c 1.33,1.36-1.39
sys/net/if_l2tp.h 1.7,1.8
sys/net/route.c 1.220,1.221
sys/net/route.h 1.125
sys/netinet/in_gif.c 1.95
sys/netinet/in_l2tp.c 1.17
sys/netinet/ip_input.c 1.391,1.392
sys/netinet/wqinput.c 1.6
sys/netinet6/in6_gif.c 1.94
sys/netinet6/in6_l2tp.c 1.18
sys/netinet6/ip6_forward.c 1.97
sys/netinet6/ip6_input.c 1.210,1.211
sys/netipsec/ipsec_output.c 1.82,1.83 (patched)
sys/netipsec/ipsecif.c 1.12,1.13,1.15,1.17 (patched)
sys/netipsec/key.c 1.259,1.260

ipsecif(4) support input drop packet counter.

ipsecif(4) should not increment drop counter by errors not related to if_snd. Pointed out by ozaki-r@n.o, thanks.
Remove unnecessary addresses in PF_KEY message.

MOBIKE Extensions for PF_KEY draft-schilcher-mobike-pfkey-extension-01.txt says
====================
5.  SPD Update
// snip
  SADB_X_SPDADD:
// snip
      sadb_x_ipsecrequest_reqid:
        An ID for that SA can be passed to the kernel in the
        sadb_x_ipsecrequest_reqid field.
      If tunnel mode is specified, the sadb_x_ipsecrequest structure is
      followed by two sockaddr structures that define the tunnel
      endpoint addresses.  In the case that transport mode is used, no
      additional addresses are specified.
====================
see: <a  rel="nofollow" href="https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01">https://tools.ietf.org/html/draft-schilcher-mobike-pfkey-extension-01</a>

ipsecif(4) uses transport mode, so it should not add addresses.

ipsecif(4) supports multiple peers in the same NAPT.

E.g. ipsec0 connects between NetBSD_A and NetBSD_B, ipsec1 connects
NetBSD_A and NetBSD_C at the following figure.
                                        +----------+
                                  +----| NetBSD_B |
+----------+          +------+  |    +----------+
| NetBSD_A |--- ... ---| NAPT |---+
+----------+          +------+  |    +----------+
                                  +----| NetBSD_C |
                                        +----------+

Add ATF later.

l2tp(4): fix output bytes counter. Pointed by k-goda@IIJ, thanks.
remove a variable which is no longer used.

l2tp: initialize mowner variables for MBUFTRACE

Avoid having a rtcache directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.

Reviewed by knakahara@ and yamaguchi@

wqinput: avoid having struct wqinput_worklist directly in a percpu storage
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Input handlers of wqinput normally involves sleepable operations so we must
avoid dereferencing a percpu data (struct wqinput_worklist) after executing
an input handler.  Address this situation by having just a pointer to the data
in a percpu storage instead.

Reviewed by knakahara@ and yamaguchi@

Add missing #include <sys/kmem.h>

Divide Tx context of l2tp(4) to improve performance.
It seems l2tp(4) call path is too long for instruction cache. So, dividing
l2tp(4) Tx context improves CPU use efficiency.

After this commit, l2tp(4) throughput gains 10% on my machine(Atom C3000).

Apply some missing changes lost on the previous commit

Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.
A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

l2tp(4): avoid having struct ifqueue directly in a percpu storage.

percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Tx processing of l2tp(4) uses normally involves sleepable operations so we
must avoid dereferencing a percpu data (struct ifqueue) after executing Tx
processing.  Address this situation by having just a pointer to the data in
a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

(martin)

2019-09-24 18:15:50 UTC netbsd-9 commitmail json YAML

2019-09-24 18:14:59 UTC netbsd-9 commitmail json YAML

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

sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.37

Always set hwcode on error. Useful for debugging.

(martin)

2019-09-24 17:23:06 UTC MAIN commitmail json YAML

Ignore our default core file pattern rather than one of another system.
"core" shows up as a path sometimes.

(maya)

2019-09-24 15:23:34 UTC MAIN commitmail json YAML

Use correct #cells for parent address when decoding ranges

(jmcneill)

2019-09-24 14:39:38 UTC MAIN commitmail json YAML

Use IFM_50G_SR2.

(msaitoh)

2019-09-24 14:26:33 UTC MAIN commitmail json YAML

Avoid duplicate PRIxBUSADDR and follow the likely intention, providing PRIxBSH.

(maya)

2019-09-24 13:27:39 UTC MAIN commitmail json YAML

Add ${DEST_DIR} prefix to check target directory not host directory.

(nakayama)

2019-09-24 11:31:06 UTC MAIN commitmail json YAML

2019-09-24 04:56:54 UTC MAIN commitmail json YAML

Remove debug printf.

(mlelstv)

2019-09-24 03:11:58 UTC netbsd-9 commitmail json YAML

2019-09-24 03:10:36 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by ozaki-r in ticket #238):

sys/netipsec/ipsec_output.c: revision 1.83
sys/net/route.h: revision 1.125
sys/netinet6/ip6_input.c: revision 1.210
sys/netinet6/ip6_input.c: revision 1.211
sys/net/if.c: revision 1.461
sys/net/if_gif.h: revision 1.33
sys/net/route.c: revision 1.220
sys/net/route.c: revision 1.221
sys/net/if.h: revision 1.277
sys/netinet6/ip6_forward.c: revision 1.97
sys/netinet/wqinput.c: revision 1.6
sys/net/if_ipsec.h: revision 1.5
sys/netinet6/in6_l2tp.c: revision 1.18
sys/netinet6/in6_gif.c: revision 1.94
sys/net/if_l2tp.h: revision 1.7
sys/net/if_gif.c: revision 1.149
sys/net/if_l2tp.h: revision 1.8
sys/netinet/in_gif.c: revision 1.95
sys/netinet/in_l2tp.c: revision 1.17
sys/netipsec/ipsecif.c: revision 1.17
sys/net/if_ipsec.c: revision 1.24
sys/net/if_l2tp.c: revision 1.37
sys/netinet/ip_input.c: revision 1.391
sys/net/if_l2tp.c: revision 1.38
sys/netinet/ip_input.c: revision 1.392
sys/net/if_l2tp.c: revision 1.39

Avoid having a rtcache directly in a percpu storage

percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@

-

wqinput: avoid having struct wqinput_worklist directly in a percpu storage

percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Input handlers of wqinput normally involves sleepable operations so we must
avoid dereferencing a percpu data (struct wqinput_worklist) after executing
an input handler.  Address this situation by having just a pointer to the data
in a percpu storage instead.
Reviewed by knakahara@ and yamaguchi@

-

Add missing #include <sys/kmem.h>

-

Divide Tx context of l2tp(4) to improve performance.

It seems l2tp(4) call path is too long for instruction cache. So, dividing
l2tp(4) Tx context improves CPU use efficiency.

After this commit, l2tp(4) throughput gains 10% on my machine(Atom C3000).

-

Apply some missing changes lost on the previous commit

-

Avoid having a rtcache directly in a percpu storage for tunnel protocols.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Using rtcache, i.e., packet processing, typically involves sleepable operations
such as rwlock so we must avoid dereferencing a rtcache that is directly stored
in a percpu storage during packet processing.  Address this situation by having
just a pointer to a rtcache in a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

-

l2tp(4): avoid having struct ifqueue directly in a percpu storage.
percpu(9) has a certain memory storage for each CPU and provides it by the piece
to users.  If the storages went short, percpu(9) enlarges them by allocating new
larger memory areas, replacing old ones with them and destroying the old ones.

A percpu storage referenced by a pointer gotten via percpu_getref can be
destroyed by the mechanism after a running thread sleeps even if percpu_putref
has not been called.

Tx processing of l2tp(4) uses normally involves sleepable operations so we
must avoid dereferencing a percpu data (struct ifqueue) after executing Tx
processing.  Address this situation by having just a pointer to the data in
a percpu storage instead.

Reviewed by ozaki-r@ and yamaguchi@

(martin)

2019-09-24 03:02:05 UTC netbsd-9 commitmail json YAML

2019-09-24 02:59:35 UTC netbsd-9 commitmail json YAML

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

sys/dev/pci/pcidevs: revision 1.1385

Add Mellanox ConnectX-4, ConnectX-4 Lx, ConnectX-5, and ConnectX-5 Ex

(martin)

2019-09-24 02:52:09 UTC netbsd-9 commitmail json YAML

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

sys/arch/arm/arm32/bus_dma.c: revision 1.116

bus_dmamap_load_raw: support coherent mappings
bus_dmamap_sync: support syncing "raw" buffer types

(martin)

2019-09-24 02:50:36 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tnn in ticket #235):

sys/arch/arm/rockchip/rk_i2c.c: revision 1.5

rkiic: coalesce smbus-style writes into a single transaction

There seems to be a hw controller bug. Split cmd/data writes caused corrupt
transfers, with junk bytes witten into the rk808 pmic registers.

This may have caused us to operate with out-of-spec core voltage.

(martin)

2019-09-24 02:48:51 UTC netbsd-9 commitmail json YAML

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

share/man/man4/mcx.4: revision 1.2

mcx(4) will appear in 9.0

(martin)

2019-09-24 00:47:46 UTC MAIN commitmail json YAML

2019-09-23 23:12:47 UTC MAIN commitmail json YAML

Remove __noubsan from in6_clearscope()

The alignment issues for x86 should be handled by
- src/sys/arch/amd64/include/types.h r. 1.62 and
- src/sys/arch/i386/include/types.h r. 1.90

(kamil)

2019-09-23 23:06:26 UTC MAIN commitmail json YAML

Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds

This change allows to pick code paths in the kernel that are tuned for
alignment sensitive (and stricted in C meaning) code paths. In particular
the IPv6 code uses this heavily and skips whenever possible the process
of aligning of networking data.

With this modification all ATF tests are executed on amd64 without
triggering any UBSan reports in dmesg.

In theory __NO_STRICT_ALIGNMENT could be tuned for vax and m68k, however
these machines are still unsupported in LLVM sanitizers and syzkaller.

sys/netinet6/scope6.c:404:6, member access within misaligned address 0xfffffaea81276086 for type 'struct in6_addr' which requires 4 byte alignment
Reported-by: syzbot+a86f58d17685317b3df9@syzkaller.appspotmail.com

sys/net/rtsock_shared.c:629:41, member access within misaligned address 0xffffddb5db3ff04c for type 'struct rt_msghdr50' which requires 8 byte alignment
Reported-by: syzbot+0a3a022bc9d2b8880c16@syzkaller.appspotmail.com

(kamil)

2019-09-23 21:07:50 UTC MAIN commitmail json YAML

2019-09-23 21:07:39 UTC MAIN commitmail json YAML

2019-09-23 20:42:29 UTC MAIN commitmail json YAML

2019-09-23 20:38:27 UTC MAIN commitmail json YAML

2019-09-23 20:15:31 UTC MAIN commitmail json YAML

add -z flag to intrctl list, which elides all-zero rows.

(mrg)

2019-09-23 18:43:59 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2019-09-23 18:26:52 UTC MAIN commitmail json YAML

mcx(4) will appear in 9.0

(jmcneill)

2019-09-23 18:20:08 UTC MAIN commitmail json YAML

Use "segmap" for uvm_wait message in pmap_segtab_alloc

(skrll)

2019-09-23 18:17:03 UTC MAIN commitmail json YAML

lint is not smart enough to figure out that ilog2() is constant.

(christos)

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

PR/54564: Jan Schaumann: cp of a fifo yields an empty file
Don't short-circuit 0 sized stat entries if they don't belong to regular files.
Also don't try to mmap non-regular files.

(christos)

2019-09-23 17:37:04 UTC MAIN commitmail json YAML

Move the timeout check out of the loop, otherwise it is never reached.
Found by the lgtm bot.

(maxv)

2019-09-23 17:20:41 UTC MAIN commitmail json YAML

Now that expat_config.h uses a header that is OS-specific, using the HOST_CC
breaks for some setups which lack it (netbsd<8, possibly other things).

Use the compiler targetting netbsd that uses netbsd headers to figure out
PACKAGE_VERSION to avoid this problem.

(maya)

2019-09-23 16:19:33 UTC MAIN commitmail json YAML

Use PRIxBUSADDR

(skrll)

2019-09-23 16:17:58 UTC MAIN commitmail json YAML

2019-09-23 16:07:07 UTC MAIN commitmail json YAML

Fix MKDEBUG distrib sets

Add libpthread, libnvpair and ZFS libs to dynamicroot.

(kamil)

2019-09-23 15:27:52 UTC netbsd-9 commitmail json YAML

2019-09-23 15:27:04 UTC netbsd-9 commitmail json YAML

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

sys/dev/acpi/dwiic_acpi.c: revision 1.3

Match APMC0D0F compatible string.

(martin)

2019-09-23 15:24:44 UTC MAIN commitmail json YAML

we don't need root anymore.

(christos)

2019-09-23 14:37:34 UTC netbsd-8 commitmail json YAML

2019-09-23 14:36:17 UTC netbsd-8 commitmail json YAML

Apply patch, requested by manu in ticket #1380: add EFI specific guids
here locally for XEN (solved differently in HEAD by including more efi
support code in XEN kernels for PVHVM).

(martin)

2019-09-23 13:51:12 UTC netbsd-8 commitmail json YAML

Backout previous try to fix ticket #1380, this causes more build fallout,
will be fixed differently.

(martin)

2019-09-23 13:49:40 UTC MAIN commitmail json YAML

Postfix 3.1.14/3.2.11/3.3.6/3.4.7 released.

(taca)

2019-09-23 13:42:37 UTC MAIN commitmail json YAML