CVS commit: src/sys/arch/aarch64

2018-11-08 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Nov  8 08:28:08 UTC 2018

Modified Files:
src/sys/arch/aarch64/aarch64: cpuswitch.S locore.S
src/sys/arch/aarch64/conf: Makefile.aarch64
src/sys/arch/aarch64/include: asan.h

Log Message:
Track the stack with kASan on aarch64. Same principle as on amd64. Illegal
accesses occurring there are now detected.

Originally written by me, but reworked by ryo@, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/aarch64/aarch64/cpuswitch.S
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/aarch64/aarch64/locore.S
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/aarch64/conf/Makefile.aarch64
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/include/asan.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2018-11-08 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Thu Nov  8 08:28:25 UTC 2018

Modified Files:
src/sys/dev/usb: usbdevs.h usbdevs_data.h

Log Message:
Regen


To generate a diff of this commit:
cvs rdiff -u -r1.753 -r1.754 src/sys/dev/usb/usbdevs.h \
src/sys/dev/usb/usbdevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2018-11-08 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Thu Nov  8 08:27:54 UTC 2018

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
Fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.760 -r1.761 src/sys/dev/usb/usbdevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2018-11-08 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Nov  8 08:32:58 UTC 2018

Modified Files:
src/doc: CHANGES

Log Message:
Note NVMM and aarch64+kasan.


To generate a diff of this commit:
cvs rdiff -u -r1.2456 -r1.2457 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 09:00:24 UTC 2018

Modified Files:
src/sys/dev/usb: usb_quirks.c

Log Message:
Fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/dev/usb/usb_quirks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2018-11-08 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Nov  8 10:55:41 UTC 2018

Modified Files:
src/sys/arch/x86/x86: sys_machdep.c

Log Message:
Simplify the ifdefs, and error out if XEN and USER_LDT are both defined.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/x86/x86/sys_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 11:15:58 UTC 2018

Modified Files:
src/usr.sbin/sysinst: disks.c

Log Message:
Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/sysinst/disks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 11:56:56 UTC 2018

Modified Files:
src/usr.sbin/sysinst: disks.c

Log Message:
Untangle disk enumeration a bit more.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/sysinst/disks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-8] src/sys/dev/pci/ixgbe

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 12:04:49 UTC 2018

Modified Files:
src/sys/dev/pci/ixgbe [netbsd-8]: ixgbe.c ixv.c

Log Message:
Pull up following revision(s) (requested by msaitoh in ticket #1084):

sys/dev/pci/ixgbe/ixv.c: revision 1.107
sys/dev/pci/ixgbe/ixgbe.c: revision 1.167

  Don't set LRO capability flag because we don't support it yet.

This doesn't change any behavior other than if_capabilities' visibility
(e.g. ifconfig).


To generate a diff of this commit:
cvs rdiff -u -r1.88.2.24 -r1.88.2.25 src/sys/dev/pci/ixgbe/ixgbe.c
cvs rdiff -u -r1.56.2.17 -r1.56.2.18 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-8] src/sys/dev

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 12:09:18 UTC 2018

Modified Files:
src/sys/dev/mii [netbsd-8]: inbmphyreg.h
src/sys/dev/pci [netbsd-8]: if_wm.c if_wmreg.h

Log Message:
Pull up the following, requested by msaitoh in tickt #1085:

sys/dev/mii/inbmphyreg.h1.11
sys/dev/pci/if_wmreg.h  1.108
sys/dev/pci/if_wm.c 1.590-1.596 via patch

- 82574 and newer document says the status field has neither EC
  (Excessive Collision) bit nor LC (Late Collision) bit (reserved), so
  don't check the bit.
- Add workaround for DMA hang problem which result in TX device timeout
  on PCH_LPT with I218. Same as FreeBSD and Linux. This workaround is
  only for device ID 0x155a, 0x15a2, 0x1559 and 0x15a3.
- Fix a PCH2 specific bug that wrong PHY register value can be read
  when boot. Same as FreeBSD and Linux.
- After writing MDIC register, don't read quickly the same register but
  do delay(50). Same as other OSes.
- Add missing wm_gate_hw_phy_config_ich8lan(false) in
  wm_phy_post_reset() on PCH2. wm_gate_hw_phy_config_ich8lan(true) is
  called in wm_reset(), so wm_gate_hw_phy_config_ich8lan(false) should
  be called after reset in wm_phy_post_reset().
- On PCH2, set the phy config counter to 50msec after (PHY) reset.
- KNF & Use macro.


To generate a diff of this commit:
cvs rdiff -u -r1.9.8.1 -r1.9.8.2 src/sys/dev/mii/inbmphyreg.h
cvs rdiff -u -r1.508.4.24 -r1.508.4.25 src/sys/dev/pci/if_wm.c
cvs rdiff -u -r1.98.6.4 -r1.98.6.5 src/sys/dev/pci/if_wmreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-8] src/doc

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 12:11:28 UTC 2018

Modified Files:
src/doc [netbsd-8]: CHANGES-8.1

Log Message:
Ticket #1084 and #1085


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.50 -r1.1.2.51 src/doc/CHANGES-8.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/hppa/gen

2018-11-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov  8 16:29:50 UTC 2018

Modified Files:
src/lib/libc/arch/hppa/gen: fabs.c

Log Message:
Try speling it rite, riasthradhdadhaa or whatever your name is.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/arch/hppa/gen/fabs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/powerpc64/gen

2018-11-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov  8 16:31:46 UTC 2018

Modified Files:
src/lib/libc/arch/powerpc64/gen: fabs.c

Log Message:
powerpc64 needs fabsl too.  (Apparently no __HAVE_LONG_DOUBLE?)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/powerpc64/gen/fabs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/ia64/gen

2018-11-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov  8 16:36:16 UTC 2018

Modified Files:
src/lib/libc/arch/ia64/gen: Makefile.inc

Log Message:
Use the generic C fabs/fabsl on ia64 for now to unbreak the build.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/arch/ia64/gen/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/vax/gen

2018-11-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov  8 18:19:37 UTC 2018

Modified Files:
src/lib/libc/arch/vax/gen: Makefile.inc
Added Files:
src/lib/libc/arch/vax/gen: fabsf.S

Log Message:
Attempt to implement fabsf by copying fabs and s/d/f/g.

Vax wizards, please vaxinate if I flubbed this!


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/arch/vax/gen/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/arch/vax/gen/fabsf.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/bin/sh

2018-11-08 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Thu Nov  8 18:37:43 UTC 2018

Modified Files:
src/bin/sh: parser.c

Log Message:
Allow shells forked to run command substitutions while expanding
prompts to exit when they're done, rather than forcing them to
turn into interactive shells and start reading input ...

Completes a part of the previous changes (just 10+ weeks late...)

Should fix the prompt expansion issue reported by Ca�c on
current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/bin/sh/parser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sysinst

2018-11-08 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov  8 20:29:38 UTC 2018

Modified Files:
src/usr.sbin/sysinst: defs.h disks.c util.c

Log Message:
Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/defs.h \
src/usr.sbin/sysinst/disks.c
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/sysinst/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/stand/efiboot

2018-11-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Nov  8 21:47:04 UTC 2018

Modified Files:
src/sys/arch/i386/stand/efiboot: Makefile

Log Message:
Don't build this as a PIE binary, PIE binaries need PHDR and this barfs
under the new binutils: error: PHDR segment not covered by LOAD segment
[including bsd.init.mk includes ../Makefile.inc which disables PIE like
 all the other bootloaders do]


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/i386/stand/efiboot/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/stand/efiboot

2018-11-08 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Nov  8 23:20:52 UTC 2018

Modified Files:
src/sys/arch/i386/stand/efiboot: Makefile

Log Message:
revert previous; does not fix the issue


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/i386/stand/efiboot/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/bin/sh

2018-11-08 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Fri Nov  9 02:11:05 UTC 2018

Modified Files:
src/bin/sh: parser.c

Log Message:
PR bin/53712

Avoid crash from redirect on null compound command.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/bin/sh/parser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64

2018-11-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov  9 04:05:27 UTC 2018

Modified Files:
src/sys/arch/aarch64/aarch64: aarch64_machdep.c aarch64_reboot.c
src/sys/arch/aarch64/include: kcore.h

Log Message:
implement dumpsys() and friends for arm64.

this is almost a direct copy of the arm code, which is simply
as the basic structures about physical memory are the same
between arm and arm64.  the main change i made was to use
the direct map instead of a virtual dump page that is remapped
to whatever physical page is being dumped.

i also changed the existing cpu_kcore_hdr_t to include the
missing number of ram segments.

note that this is not a complete solution for crash dumps yet,
as the libkvm code needs some work.  i'm fairly positive that
this side is correct, as i can see the data i expect to see,
but libkvm's _kvm_kvtop() function returns garbage so far.

there is no "minidump" support here yet, ala amd64, but we
probably want it eventually.

ok skrll@.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/aarch64/aarch64/aarch64_machdep.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/aarch64/aarch64/aarch64_reboot.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/aarch64/include/kcore.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libkvm

2018-11-08 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Nov  9 04:06:40 UTC 2018

Modified Files:
src/lib/libkvm: kvm_aarch64.c

Log Message:
tg1 is a 64 bit value, store it in a 64 bit variable.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libkvm/kvm_aarch64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2018-11-08 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Nov  9 06:44:31 UTC 2018

Modified Files:
src/sys/net: if_bridge.c

Log Message:
Fix that brconfig  (addr) can't show a large number of MAC addresses

The command shows only 256 addresses at maximum even if a bridge caches more
addresses.  It occurs because the kernel doesn't return an error if the command
passes a short buffer that can't store all cached addresses; the kernel fills
cached addresses as much as possible and returns it without telling that the
result is truncated.

Fix the issue by telling a required size of a buffer if a buffer passed from the
command is not enough, which lets the command retry with an enough buffer.

Reported by k-goda@IIJ


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/net/if_bridge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/net/if_bridge

2018-11-08 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Nov  9 06:45:03 UTC 2018

Modified Files:
src/tests/net/if_bridge: t_rtable.sh

Log Message:
Add a test to show a large number of MAC addresses cached in a bridge


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/net/if_bridge/t_rtable.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2018-11-08 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Nov  9 07:54:25 UTC 2018

Modified Files:
src/doc: RESPONSIBLE

Log Message:
I am responsible for luactl.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/doc/RESPONSIBLE

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.