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

2020-06-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  1 08:32:39 UTC 2020

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
Add some definitions from the latest Intel SDM plus small fix:

 - Add CPUID leaf 6 %eax bit 19 for HW_FEEDBACK* and IA32_PACKAGE_TERM* MSRs.
 - Add CPUID leaf 7 %ecx bit 31 for Protection Keys.
 - Add definition of Load only TLB and Store only TLB.
 - Add IF_PSCHANGE_MC_NO bit of IA32_ARCH_CAPABILITIES
 - Fix HWP_IGNIDL.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/arch/x86/include/specialreg.h

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



CVS commit: src/usr.sbin/cpuctl/arch

2020-06-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun  1 08:33:40 UTC 2020

Modified Files:
src/usr.sbin/cpuctl/arch: i386.c

Log Message:
 Add 0xa5 and 0xa6 for Comet Lake.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/usr.sbin/cpuctl/arch/i386.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/aarch64

2020-06-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Mon Jun  1 08:59:00 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpufunc_asm_armv8.S

Log Message:
even if the line size of Icache and Dcache is different, it was fixed to work 
correctly.

- MAX(IcacheShift,DcacheShift) is wrong and should be 
MIN(IcacheShift,DcacheShift).
  Dcache and Icache are now done in independent loops instead of in the same 
loop.
- simplify the handling of cache_handle_range() macro arguments.
- cache_handle_range macro doesn't include "ret" anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/aarch64/aarch64/cpufunc_asm_armv8.S

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

2020-06-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jun  1 10:25:01 UTC 2020

Modified Files:
src/sys/dev/usb: xhci.c xhcireg.h

Log Message:
Remove some unnecessary bit shifts by using appropriate read size


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/dev/usb/xhci.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/usb/xhcireg.h

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



CVS commit: src/tests/net/npf

2020-06-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jun  1 11:08:57 UTC 2020

Modified Files:
src/tests/net/npf: t_npf.sh

Log Message:
Adjust to "npfctl debug" command line changes, from rmind@.


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

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



CVS commit: src/lib/libpthread

2020-06-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Mon Jun  1 11:44:59 UTC 2020

Modified Files:
src/lib/libpthread: pthread.c pthread_cond.c pthread_int.h
pthread_mutex.c pthread_rwlock.c pthread_types.h

Log Message:
In the interests of reliability simplify waiter handling more and redo
condvars to manage the list of waiters with atomic ops.


To generate a diff of this commit:
cvs rdiff -u -r1.170 -r1.171 src/lib/libpthread/pthread.c
cvs rdiff -u -r1.69 -r1.70 src/lib/libpthread/pthread_cond.c
cvs rdiff -u -r1.104 -r1.105 src/lib/libpthread/pthread_int.h
cvs rdiff -u -r1.77 -r1.78 src/lib/libpthread/pthread_mutex.c
cvs rdiff -u -r1.40 -r1.41 src/lib/libpthread/pthread_rwlock.c
cvs rdiff -u -r1.23 -r1.24 src/lib/libpthread/pthread_types.h

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



CVS commit: src/usr.sbin/puffs/mount_9p

2020-06-01 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jun  1 13:30:52 UTC 2020

Modified Files:
src/usr.sbin/puffs/mount_9p: node.c

Log Message:
Fix extra whitespace added by accident.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/puffs/mount_9p/node.c

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



CVS commit: src/sys/kern

2020-06-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jun  1 13:58:14 UTC 2020

Modified Files:
src/sys/kern: kern_lwp.c

Log Message:
lwp_thread_cleanup(): Remove overly-aggressive assertion.


To generate a diff of this commit:
cvs rdiff -u -r1.239 -r1.240 src/sys/kern/kern_lwp.c

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



CVS commit: src/share/mk

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:39:14 UTC 2020

Modified Files:
src/share/mk: bsd.README bsd.lib.mk

Log Message:
1. if ${LIBISPRIVATE} == "pic", create _pic.a so that we can embed the library
   to another shared object
2. Don't compare ${LIBISPRIVATE} to "yes", because there are 3 places in
   Makefiles which set it to empty (this was a bug)
3. For private libraries, don't create .so* files


To generate a diff of this commit:
cvs rdiff -u -r1.405 -r1.406 src/share/mk/bsd.README
cvs rdiff -u -r1.382 -r1.383 src/share/mk/bsd.lib.mk

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



CVS commit: src/external/mit/libuv/lib

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:39:42 UTC 2020

Modified Files:
src/external/mit/libuv/lib: Makefile

Log Message:
Arrange to create an _pic.a library too.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/mit/libuv/lib/Makefile

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



CVS commit: src/tests/dev/usb/libhid

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:41:25 UTC 2020

Modified Files:
src/tests/dev/usb/libhid: Makefile

Log Message:
Set LIBISPRIVATE=yes


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/dev/usb/libhid/Makefile

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



CVS commit: src/tests/fs/common

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:42:03 UTC 2020

Modified Files:
src/tests/fs/common: Makefile

Log Message:
LIBISPRIVATE=yes


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/fs/common/Makefile

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



CVS commit: src/tests/dev/scsipi/libscsitest

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:42:53 UTC 2020

Modified Files:
src/tests/dev/scsipi/libscsitest: Makefile

Log Message:
LIBISPRIVATE=yes


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/dev/scsipi/libscsitest/Makefile

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



CVS commit: src

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 14:46:04 UTC 2020

Modified Files:
src: UPDATING

Log Message:
Mention cleaning needed in LIBISPRIVATE directories


To generate a diff of this commit:
cvs rdiff -u -r1.307 -r1.308 src/UPDATING

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



CVS commit: src/external/mpl/bind/dist/lib/isc/unix

2020-06-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun  1 18:55:37 UTC 2020

Modified Files:
src/external/mpl/bind/dist/lib/isc/unix: socket.c

Log Message:
Locking protocol changed; the internal routines are now called with the
socket locked. Adjust for that.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/mpl/bind/dist/lib/isc/unix/socket.c

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



CVS commit: src/sys/dev/sysmon

2020-06-01 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Jun  1 21:54:47 UTC 2020

Modified Files:
src/sys/dev/sysmon: sysmon_envsys.c

Log Message:
Don't queue sysmon refresh until the rndsource is attached.

Using the rndsource, as refreshing the sensors will do, is not
allowed until _after_ rnd_source_attach.

XXX pullup-7
XXX pullup-8
XXX pullup-9


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/sys/dev/sysmon/sysmon_envsys.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/amd64

2020-06-01 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Mon Jun  1 22:58:06 UTC 2020

Modified Files:
src/sys/arch/amd64/amd64: cpufunc.S
src/sys/arch/amd64/include: frameasm.h

Log Message:
Reported-by: syzbot+6dd5a230d19f0cbc7...@syzkaller.appspotmail.com

Instrument STOS/MOVS for KMSAN to unbreak it.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/amd64/amd64/cpufunc.S
cvs rdiff -u -r1.49 -r1.50 src/sys/arch/amd64/include/frameasm.h

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



CVS commit: src/lib/libpthread

2020-06-01 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Jun  2 00:29:53 UTC 2020

Modified Files:
src/lib/libpthread: pthread.c pthread_int.h pthread_rwlock.c

Log Message:
Pass down errno when calling pthread__errorfunc after a system call.
Allow format arguments for that reason and use (v)snprintf_ss in
pthread_errorfunc to avoid race conditions and the like.


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/lib/libpthread/pthread.c
cvs rdiff -u -r1.105 -r1.106 src/lib/libpthread/pthread_int.h
cvs rdiff -u -r1.41 -r1.42 src/lib/libpthread/pthread_rwlock.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

2020-06-01 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Jun  2 01:30:31 UTC 2020

Modified Files:
src/lib/libc/citrus: citrus_ctype_template.h
src/lib/libc/locale: multibyte.h

Log Message:
Don't overalign _RuneStatePriv, it must share the alignment of mbstate_t
it aliased with. Assert that the alignment actually used reflects the
alignment required by existing implementation and for newly build
modules assert that it is at most the guaranteed alignment.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/citrus/citrus_ctype_template.h
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/locale/multibyte.h

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



CVS commit: src/distrib/evbarm/installimage

2020-06-01 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jun  2 01:34:50 UTC 2020

Modified Files:
src/distrib/evbarm/installimage: Makefile

Log Message:
Exclude ramdisk images and empty instkernel directory


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/distrib/evbarm/installimage/Makefile

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



CVS commit: src/sys/kern

2020-06-01 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Jun  2 02:04:35 UTC 2020

Modified Files:
src/sys/kern: kern_timeout.c

Log Message:
Appease clang -Wtentative-definition-incomplete-type.

Now, both kernel and crash(8) build with clang for amd64
(and certainly other ports also).

Pointed out by joerg.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sys/kern/kern_timeout.c

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