CVS commit: src/sys

2020-02-21 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Feb 21 12:41:29 UTC 2020 Modified Files: src/sys/arch/mips/adm5120/dev: ahci.c src/sys/dev/usb: ehci.c ohci.c uhci.c src/sys/external/bsd/dwc2: dwc2.c Log Message: Fix a memory leak. Spotted by nat@ To genera

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

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 12:56:37 UTC 2020 Modified Files: src/sys/arch/powerpc/include: param.h Log Message: Reduce UPAGES from 2 to 1 for ibm4xx, which was originally 1 and bumped to 2 in rev 1.29: http://cvsweb.netbsd.org/bsdweb.cgi/src/s

CVS commit: src/sys/arch/powerpc/ibm4xx

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 13:16:16 UTC 2020 Modified Files: src/sys/arch/powerpc/ibm4xx: pmap.c Log Message: In ppc4xx_tlb_find_victim(), mark kernel stack page TLBF_REF instead of TLBF_USED. This should be originally intended behavior of this code

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

2020-02-21 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Feb 21 13:15:54 UTC 2020 Modified Files: src/sys/arch/arm/fdt: cpu_fdt.c Log Message: Improve a comment To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/arch/arm/fdt/cpu_fdt.c Please note that diffs are

CVS commit: src/sys/arch/alpha/alpha

2020-02-21 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Feb 21 13:33:07 UTC 2020 Modified Files: src/sys/arch/alpha/alpha: prom.c Log Message: Use designated initialisers To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/arch/alpha/alpha/prom.c Please note tha

CVS commit: src/sys/arch/powerpc/ibm4xx

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 13:32:31 UTC 2020 Modified Files: src/sys/arch/powerpc/ibm4xx: trap.c Log Message: Comment out badaddr() and badaddr_read() on ibm4xx for now. They are not used nor exposed externally in any header file; these functions m

CVS commit: src/sys/arch/powerpc/powerpc

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 13:38:05 UTC 2020 Modified Files: src/sys/arch/powerpc/powerpc: vm_machdep.c Log Message: When UPAGES > 1, both __HAVE_CPU_UAREA_ROUTINES and PMAP_MAP_POOLPAGE must be defined in order to allocate physically contiguous mem

CVS commit: src/sys/arch/powerpc/ibm4xx

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 14:27:20 UTC 2020 Modified Files: src/sys/arch/powerpc/ibm4xx: trap.c Log Message: Cosmetic changes for assembler codes. No binary changes. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sys/arch/power

CVS commit: src/sys/arch/powerpc/ibm4xx

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 14:49:58 UTC 2020 Modified Files: src/sys/arch/powerpc/ibm4xx: trap.c Log Message: Tiny improvements to copyin() and copyout(): - Use lwz/stw instead of 4-byte lswi/stswi for 405 and later, which support unaligned word

CVS commit: src/tools/llvm

2020-02-21 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Fri Feb 21 15:00:44 UTC 2020 Modified Files: src/tools/llvm: Makefile Log Message: LLVM doesn't use term.h, so don't check for it when probing here either. Increase robustness of checks for incremental builds by forcing a dependenc

CVS commit: src/sys/arch/powerpc/ibm4xx

2020-02-21 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Feb 21 15:15:48 UTC 2020 Modified Files: src/sys/arch/powerpc/ibm4xx: trap.c Log Message: Do not try to recovery from data page fault in interrupt context; catch up belatedly with powerpc/trap.c rev 1.49 and etc.: http://cv

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

2020-02-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 21 18:31:56 UTC 2020 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Add comments. To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356 src/sys/arch/x86/x86/pmap.c Please note that diffs are not publi

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

2020-02-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 21 18:34:37 UTC 2020 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: In pmap_changeprot_local(), drop the dirty bit along with the write bit. To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357 src/sy

CVS commit: src/lib/libc/db/hash

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 21 22:04:06 UTC 2020 Modified Files: src/lib/libc/db/hash: hash.h Log Message: Avoid undefined behavior in *BIT macros hash_page.c:792:2, left shift of 1 by 31 places cannot be represented in type 'int' hash_page.c:855:2,

CVS commit: src/tests/lib/libc/stdio

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 21 22:15:00 UTC 2020 Modified Files: src/tests/lib/libc/stdio: t_fopen.c Log Message: Avoid undefined behavior in is_module_present() t_fopen.c:339:18, member access within misaligned address 0x7f7ff7ebd004 for type 'modst

CVS commit: src/tests/lib/libc/gen

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Feb 21 22:25:50 UTC 2020 Modified Files: src/tests/lib/libc/gen: t_siginfo.c Log Message: Mark division by 0 as expected in sigfpe_int Disable ubsan instrumentation on the operation. To generate a diff of this commit: cvs rd

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

2020-02-21 Thread Maya Rashish
Module Name:src Committed By: maya Date: Fri Feb 21 23:27:06 UTC 2020 Modified Files: src/sys/arch/arm/arm32: bus_dma.c Log Message: Make sure to convey a failure to the calling function Likely fix for PR kern/54999, but that was a one-off panic. To generate a diff of t

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

2020-02-21 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Feb 22 00:17:54 UTC 2020 Modified Files: src/sys/arch/arm/broadcom: bcm2835reg.h bcm283x_platform.c Log Message: Translate bus addresses for SCB on BCM2711 To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/

CVS commit: src/tests/modules

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 22 00:18:55 UTC 2020 Modified Files: src/tests/modules: t_builtin.c Log Message: Avoid undefined behavior in disabledstat t_builtin.c:174:16, member access within misaligned address 0x741271c25004 for type 'struct modstat_

CVS commit: src/tests/modules

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 22 00:24:15 UTC 2020 Modified Files: src/tests/modules: t_modctl.c Log Message: Avoid undefined behavior in get_modstat_info t_modctl.c:114:16, member access within misaligned address 0x71bf5bcede84 for type 'struct modsta

CVS commit: src/sys

2020-02-21 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Feb 22 00:28:36 UTC 2020 Modified Files: src/sys/arch/arm/broadcom: bcm283x_platform.c src/sys/arch/evbarm/conf: GENERIC64 src/sys/conf: files src/sys/dev/fdt: files.fdt Added Files: src/sys/de

CVS commit: src/sys/ufs/lfs

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 22 00:32:09 UTC 2020 Modified Files: src/sys/ufs/lfs: lfs_alloc.c Log Message: Avoid undefined behavior in *_BITMAP_FREE() macros left shift of 1 by 31 places cannot be represented in type 'int' To generate a diff of thi

CVS commit: src/lib/libc/gdtoa

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 22 00:38:15 UTC 2020 Modified Files: src/lib/libc/gdtoa: gethex.c Log Message: Avoid unportable left shift construct left shift of 9 by 28 places cannot be represented in type 'int' To generate a diff of this commit: cvs

CVS commit: src/sbin/route

2020-02-21 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Feb 22 00:42:15 UTC 2020 Modified Files: src/sbin/route: route.c Log Message: Avoid undefined behavior route.c:1523:20, left shift of 1073741824 by 1 places cannot be represented in type 'int' To generate a diff of this comm

CVS commit: src/sys

2020-02-21 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Sat Feb 22 02:28:06 UTC 2020 Modified Files: src/sys/arch/evbarm/conf: GENERIC64 src/sys/dev/acpi: files.acpi Added Files: src/sys/dev/acpi: genet_acpi.c Log Message: Add ACPI glue for Broadcom GENETv5 To gener

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 05:51:39 UTC 2020 Modified Files: src/sys/dev/audio: audio.c Log Message: Limit the number of channels that userland apps can set (by AUDIO_SETINFO) to the number of channels supported by the hardware or less, if the har

CVS commit: src/tests/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 05:53:19 UTC 2020 Modified Files: src/tests/dev/audio: audiotest.c Log Message: Update AUDIO_SETINFO_channels test. The kernel limits the number of channels that userland apps can set to the number of channels supported

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 06:22:46 UTC 2020 Modified Files: src/sys/dev/audio: audio.c Log Message: Fix/Update comments. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/dev/audio/audio.c Please note that diffs are not pub

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 06:28:10 UTC 2020 Modified Files: src/sys/dev/audio: audio.c Log Message: const-ify. These arguments are no longer written back. To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/dev/audio/audio.c

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 06:36:07 UTC 2020 Modified Files: src/sys/dev/audio: audio.c Log Message: Change two aprint_error_dev() to device_printf() (and improve messages). This is also called from other than boot. To generate a diff of this co

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 06:58:40 UTC 2020 Modified Files: src/sys/dev/audio: audio.c audiodef.h Log Message: Improve KASSERT messages. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/sys/dev/audio/audio.c cvs rdiff -u -r1.8

CVS commit: src/sys/dev/audio

2020-02-21 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Feb 22 07:09:18 UTC 2020 Modified Files: src/sys/dev/audio: audio.c Log Message: hw_if->query_format is already mandatory method. Drop null checks. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/dev/au