CVS commit: [netbsd-8] src/distrib/notes

2018-07-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jul  3 07:11:48 UTC 2018

Modified Files:
src/distrib/notes/amd64 [netbsd-8]: prep
src/distrib/notes/evbarm [netbsd-8]: install
src/distrib/notes/i386 [netbsd-8]: prep

Log Message:
NetBSD.org capitalization police


To generate a diff of this commit:
cvs rdiff -u -r1.2.40.1 -r1.2.40.2 src/distrib/notes/amd64/prep
cvs rdiff -u -r1.9 -r1.9.54.1 src/distrib/notes/evbarm/install
cvs rdiff -u -r1.14.40.1 -r1.14.40.2 src/distrib/notes/i386/prep

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-07-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Jul  3 07:13:41 UTC 2018

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

Log Message:
Note NetBSD.org fixes in release docs


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.219 -r1.1.2.220 src/doc/CHANGES-8.0

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



CVS commit: src/sys/dev/fdt

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 08:52:36 UTC 2018

Modified Files:
src/sys/dev/fdt: dwc3_fdt.c

Log Message:
Fix name of snps,dis_u2_susphy_quirk property


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/fdt/dwc3_fdt.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/arm/samsung

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 09:39:32 UTC 2018

Modified Files:
src/sys/arch/arm/samsung: exynos5422_clock.c

Log Message:
Add USB clocks and missing MMC biu clocks


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/samsung/exynos5422_clock.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-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 11:45:54 UTC 2018

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

Log Message:
Avoid unportable signed integer left shift in intr_calculatemasks()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least two places reported, for consistency fix all the
left shift bit shift.

src/sys/arch/x86/x86/intr.c:339:22, left shift of 1 by 31 places cannot be 
represented in type 'int'
src/sys/arch/x86/x86/intr.c:347:15, left shift of 1 by 31 places cannot be 
represented in type 'int'

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/arch/x86/x86/intr.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/arm/fdt

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 12:12:03 UTC 2018

Modified Files:
src/sys/arch/arm/fdt: gic_fdt.c

Log Message:
Make IRQ sharing work again


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/fdt/gic_fdt.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

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 12:17:54 UTC 2018

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

Log Message:
Avoid unportable signed integer left shift in fd_used()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:302:26, left shift of 1 by 31 places cannot be 
represented in type 'int'

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/sys/kern/kern_descrip.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/fdt

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:05:31 UTC 2018

Modified Files:
src/sys/dev/fdt: dwc3_fdt.c

Log Message:
Add support for Samsung Exynos USB3 DRD.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/dwc3_fdt.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/arm/samsung

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:06:41 UTC 2018

Modified Files:
src/sys/arch/arm/samsung: exynos5422_clock.c

Log Message:
Add more USB3 clocks


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/samsung/exynos5422_clock.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/arm/samsung

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:09:04 UTC 2018

Modified Files:
src/sys/arch/arm/samsung: exynos_ehci.c exynos_ohci.c exynos_usbphy.c
files.exynos
Added Files:
src/sys/arch/arm/samsung: exynos_usbdrdphy.c
Removed Files:
src/sys/arch/arm/samsung: exynos_usb3.c

Log Message:
Add support for Samsung Exynos USB.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/exynos_ehci.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/samsung/exynos_ohci.c
cvs rdiff -u -r1.1 -r0 src/sys/arch/arm/samsung/exynos_usb3.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/samsung/exynos_usbdrdphy.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/samsung/exynos_usbphy.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/samsung/files.exynos

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



CVS commit: src/sys/arch/evbarm/conf

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:09:40 UTC 2018

Modified Files:
src/sys/arch/evbarm/conf: EXYNOS

Log Message:
Enable Exynos USB support


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/evbarm/conf/EXYNOS

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



CVS commit: src/sys/arch/arm/samsung

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:22:48 UTC 2018

Modified Files:
src/sys/arch/arm/samsung: exynos_usbdrdphy.c

Log Message:
Fix value of PHY_CLK_RST_FSEL_24M, USB2 on XHCI works now.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/samsung/exynos_usbdrdphy.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/arm/samsung

2018-07-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Jul  3 16:30:13 UTC 2018

Modified Files:
src/sys/arch/arm/samsung: exynos5422_clock.c

Log Message:
Dump clock tree with aprint_debug instead of printf


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/samsung/exynos5422_clock.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/pci

2018-07-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul  3 18:07:36 UTC 2018

Modified Files:
src/sys/dev/pci: if_msk.c if_mskvar.h if_sk.c if_skvar.h

Log Message:
attach the rnd source only once even with dual-port adapters


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/pci/if_msk.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/if_mskvar.h
cvs rdiff -u -r1.87 -r1.88 src/sys/dev/pci/if_sk.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/pci/if_skvar.h

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



CVS commit: src/sys/kern

2018-07-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul  3 18:09:28 UTC 2018

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

Log Message:
add DIAGNOSTIC check for rnd_attach_source() being called twice for same
rnd source; it's driver error, and it breaks rnd source list pointers


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/kern/kern_rndq.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/pci

2018-07-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul  3 19:56:02 UTC 2018

Modified Files:
src/sys/dev/pci: if_msk.c if_mskvar.h

Log Message:
fix detach code and do it on shutdown


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/dev/pci/if_msk.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/if_mskvar.h

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



CVS commit: src/external/mit/xorg/tools/mkfontscale

2018-07-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jul  3 21:12:10 UTC 2018

Modified Files:
src/external/mit/xorg/tools/mkfontscale: Makefile

Log Message:
Use the fonts from our installed directory not the system when we are a tool!
Martin found it.
XXX pullup-8


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/mit/xorg/tools/mkfontscale/Makefile

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



CVS commit: src/sys/sys

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 22:38:34 UTC 2018

Modified Files:
src/sys/sys: wait.h

Log Message:
Try to appease KUBSan in sys/sys/wait.h in W_EXITCODE()

Cast return value that is stored as int to unsigned int in order to
appease the << 8 operation. In case of a ret=-1, this cast is papering
things over or replacing UB with an implementation specific behavior.

There is a reverse operation with the same papering things over:
WEXITSTATUS(x)  ((int)(((unsigned int)_W_INT(x)) >> 8) & 0xff)

No functional change intended.

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/sys/wait.h

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



CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 22:49:51 UTC 2018

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

Log Message:
Avoid unportable signed integer left shift in fd_isused()

Detected with Kernel Undefined Behavior Sanitizer.

sys/kern/kern_descrip.c:188:34, left shift of 1 by 31 places cannot be 
represented in type 'int'

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/kern/kern_descrip.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

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 23:11:06 UTC 2018

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

Log Message:
Avoid unportable signed integer left shift in fd_copy()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:1492:3, left shift of 1 by 31 places cannot be 
represented in type 'int'
sys/kern/kern_descrip.c:1493:28, left shift of 1 by 31 places cannot be 
represented in type 'int'

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/sys/kern/kern_descrip.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

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Jul  3 23:14:57 UTC 2018

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

Log Message:
Avoid unportable signed integer left shift in fd_unused()

Detected with Kernel Undefined Behavior Sanitizer.

There were at least a single place reported, for consistency fix all the
left bit shift operations.
sys/kern/kern_descrip.c:345:2, left shift of 1 by 31 places cannot be 
represented in type 'int'
sys/kern/kern_descrip.c:346:28, left shift of 1 by 31 places cannot be 
represented in type 'int'

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/sys/kern/kern_descrip.c

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



CVS commit: src/sys/netinet6

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 00:35:34 UTC 2018

Modified Files:
src/sys/netinet6: in6.c

Log Message:
Paper over Undefined Behavior in in6_control1()

Replace calculation of maxexpire (TIME_MAX) with a construct that triggers
UB with a one that uses implementation defined semantics.

No functional change intended.

An attempt to appease KUBSAn.

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.268 -r1.269 src/sys/netinet6/in6.c

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



CVS commit: src/sys/sys

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 01:17:32 UTC 2018

Modified Files:
src/sys/sys: mman.h

Log Message:
Avoid undefined operation in signed integer shift in MAP_ALIGNED()

Cast the shifted byte to unsigned int.

sys/uvm/uvm_mmap.c:914:19, left shift of 255 by 24 places cannot be represented 
in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/sys/mman.h

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



CVS commit: src/sys/kern

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 01:42:37 UTC 2018

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

Log Message:
Avoid Undefined Behavior in pr_item_notouch_get()

Change the type of left shifted integer from signed to unsigned.

sys/kern/subr_pool.c:274:13, left shift of 1 by 31 places cannot be represented 
in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/sys/kern/subr_pool.c

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



CVS commit: src/sys/ufs/ffs

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 02:02:15 UTC 2018

Modified Files:
src/sys/ufs/ffs: ffs_subr.c

Log Message:
Avoid Undefined Behavior in ffs_clusteracct()

Change the type of 'bit' variable from int to unsigned int and use unsigned
values consistently.

sys/ufs/ffs/ffs_subr.c:336:10, shift exponent -1 is negative

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/ufs/ffs/ffs_subr.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

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 02:19:02 UTC 2018

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

Log Message:
Avoid undefined behavior in pr_item_notouch_put()

Do not left shift a signed integer changing its signedness bit.

sys/kern/subr_pool.c:251:30, left shift of 1 by 31 places cannot be represented 
in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.222 -r1.223 src/sys/kern/subr_pool.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/pci

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 03:00:46 UTC 2018

Modified Files:
src/sys/dev/pci: pciide_piix_reg.h

Log Message:
Avoid undefined behavior in pciiide macros

Cast the 'bytes' argument in PIIX_IDETIM_SET() and PIIX_IDETIM_CLEAR()
to unsigned int. This prevents UB because of shifting the bits and changing
the bit of signedness.

sys/dev/pci/piixide.c:714:11, left shift of 65535 by 16 places cannot be 
represented in type 'int'
sys/dev/pci/piixide.c:720:11, left shift of 32768 by 16 places cannot be 
represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/pciide_piix_reg.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/scsipi

2018-07-03 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jul  4 03:17:01 UTC 2018

Modified Files:
src/sys/dev/scsipi: scsipiconf.h

Log Message:
Avoid undefined behavior in scsipiconf.h in _4ltol() and _4btol()

Do not shift (through integer promotion) a signed value in an operation
than can change the bit of signedness.

sys/dev/scsipi/scsipiconf.h:808:17, left shift of 255 by 24 places cannot be 
represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by 


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/dev/scsipi/scsipiconf.h

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