CVS commit: src/sys/kern

2019-12-13 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Dec 13 08:01:26 UTC 2019

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

Log Message:
KNF


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

2019-12-13 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Dec 13 08:02:53 UTC 2019

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

Log Message:
Trailing whitespace


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

2019-12-13 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Dec 13 08:11:12 UTC 2019

Modified Files:
src/sys/arch/aarch64/aarch64: pmap.c

Log Message:
Fix KASAN support by calling kasan_shadow_map in pmap_growkernel


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/aarch64/aarch64/pmap.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/mii

2019-12-13 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri Dec 13 08:30:26 UTC 2019

Modified Files:
src/sys/dev/mii: atphy.c micphy.c

Log Message:
 KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/mii/atphy.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/mii/micphy.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

2019-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Dec 13 12:05:11 UTC 2019

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

Log Message:
Do not try to change the keyboard layout if we are not running on the
console.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/wskbd.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/usb

2019-12-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Dec 13 14:10:32 UTC 2019

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

Log Message:
Fix gross use-after-free. Found by a custom query on LGTM.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/usb/if_urtwn.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

2019-12-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Dec 13 14:13:55 UTC 2019

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

Log Message:
Read the len before pushing the packet, otherwise possible use-after-free.
Found by a custom query on LGTM.


To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/net/if_tun.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/dm

2019-12-13 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec 13 15:49:22 UTC 2019

Modified Files:
src/sys/dev/dm: dm_pdev.c

Log Message:
dm: Fix memory leak in dm_pdev_rem()

Need to free dmp regardless of dm_pdev_rem() return value.
taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/dm/dm_pdev.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/dm

2019-12-13 Thread Tomohiro Kusumi
Module Name:src
Committed By:   tkusumi
Date:   Fri Dec 13 16:15:54 UTC 2019

Modified Files:
src/sys/dev/dm: dm_target.c

Log Message:
dm: Don't KASSERT() target handlers

Having assertions here causes panic if target is missing anything
as shown in "dm: Add dummy target ->sync()/->secsize() to prevent panic on 
modload(8)".
Instead just return EINVAL if a handler(s) isn't implemented.

taken-from: DragonFlyBSD


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/dm/dm_target.c

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



CVS commit: src

2019-12-13 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec 13 20:10:22 UTC 2019

Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c
src/sys/miscfs/genfs: genfs_io.c
src/sys/nfs: nfs_bio.c
src/sys/rump/librump/rumpkern: vm.c
src/sys/rump/librump/rumpvfs: vm_vfs.c
src/sys/ufs/lfs: lfs_pages.c lfs_vfsops.c ulfs_inode.c
src/sys/ufs/ufs: ufs_inode.c
src/sys/uvm: uvm.h uvm_amap.c uvm_anon.c uvm_aobj.c uvm_bio.c
uvm_fault.c uvm_init.c uvm_km.c uvm_loan.c uvm_map.c uvm_object.c
uvm_page.c uvm_page.h uvm_pager.c uvm_pdaemon.c uvm_pdpolicy.h
uvm_pdpolicy_clock.c uvm_pdpolicy_clockpro.c uvm_pglist.c
uvm_physseg.c

Log Message:
Break the global uvm_pageqlock into a per-page identity lock and a private
lock for use of the pagedaemon policy code.  Discussed on tech-kern.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
cvs rdiff -u -r1.76 -r1.77 src/sys/miscfs/genfs/genfs_io.c
cvs rdiff -u -r1.191 -r1.192 src/sys/nfs/nfs_bio.c
cvs rdiff -u -r1.173 -r1.174 src/sys/rump/librump/rumpkern/vm.c
cvs rdiff -u -r1.34 -r1.35 src/sys/rump/librump/rumpvfs/vm_vfs.c
cvs rdiff -u -r1.15 -r1.16 src/sys/ufs/lfs/lfs_pages.c
cvs rdiff -u -r1.365 -r1.366 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -u -r1.21 -r1.22 src/sys/ufs/lfs/ulfs_inode.c
cvs rdiff -u -r1.105 -r1.106 src/sys/ufs/ufs/ufs_inode.c
cvs rdiff -u -r1.69 -r1.70 src/sys/uvm/uvm.h
cvs rdiff -u -r1.110 -r1.111 src/sys/uvm/uvm_amap.c
cvs rdiff -u -r1.68 -r1.69 src/sys/uvm/uvm_anon.c
cvs rdiff -u -r1.130 -r1.131 src/sys/uvm/uvm_aobj.c
cvs rdiff -u -r1.100 -r1.101 src/sys/uvm/uvm_bio.c
cvs rdiff -u -r1.211 -r1.212 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.50 -r1.51 src/sys/uvm/uvm_init.c
cvs rdiff -u -r1.150 -r1.151 src/sys/uvm/uvm_km.c
cvs rdiff -u -r1.88 -r1.89 src/sys/uvm/uvm_loan.c
cvs rdiff -u -r1.366 -r1.367 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.15 -r1.16 src/sys/uvm/uvm_object.c
cvs rdiff -u -r1.200 -r1.201 src/sys/uvm/uvm_page.c
cvs rdiff -u -r1.84 -r1.85 src/sys/uvm/uvm_page.h
cvs rdiff -u -r1.113 -r1.114 src/sys/uvm/uvm_pager.c
cvs rdiff -u -r1.112 -r1.113 src/sys/uvm/uvm_pdaemon.c
cvs rdiff -u -r1.3 -r1.4 src/sys/uvm/uvm_pdpolicy.h
cvs rdiff -u -r1.17 -r1.18 src/sys/uvm/uvm_pdpolicy_clock.c \
src/sys/uvm/uvm_pdpolicy_clockpro.c
cvs rdiff -u -r1.72 -r1.73 src/sys/uvm/uvm_pglist.c
cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/uvm_physseg.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/amd64

2019-12-13 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec 13 20:14:25 UTC 2019

Modified Files:
src/sys/arch/amd64/amd64: machdep.c

Log Message:
Break the global uvm_pageqlock into a per-page identity lock and a private
lock for use of the pagedaemon policy code.  Discussed on tech-kern.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour


To generate a diff of this commit:
cvs rdiff -u -r1.343 -r1.344 src/sys/arch/amd64/amd64/machdep.c

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



CVS commit: src/include

2019-12-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Dec 13 20:25:16 UTC 2019

Modified Files:
src/include: stdio.h

Log Message:
move P_tmpdir from "/var/tmp/" to "/tmp/".

the main effect of this is to make GCC and other libiberty using
tools use /tmp instead of /var/tmp for compiler temp files,
which can be a bottleneck on larger systems.

a survey of other platforms shows only OSX also uses /var/tmp,
everyone else has switched to /tmp long ago.

cons:  some smaller systems may have a smaller /tmp than /var/tmp,
and this may cause builds to fail with out of space earlier.
point the build to /var/tmp using TMPDIR in this case.

one can argue that setting TMPDIR would work around this, but we
want to have the effect for all users without having special setup.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/include/stdio.h

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



CVS commit: src/sys/sys

2019-12-13 Thread Andrew Doran
Module Name:src
Committed By:   ad
Date:   Fri Dec 13 20:50:08 UTC 2019

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

Log Message:
NetBSD 9.99.24 - UVM changes


To generate a diff of this commit:
cvs rdiff -u -r1.624 -r1.625 src/sys/sys/param.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/sysinst

2019-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Dec 13 21:46:59 UTC 2019

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

Log Message:
When trying to tell a fictious but empty label from a real one, skip
partition a if it has the same start and size as the raw partition.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/sysinst/disklabel.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/arch/i386

2019-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Dec 13 22:10:21 UTC 2019

Modified Files:
src/usr.sbin/sysinst/arch/i386: md.c

Log Message:
Remove bogus assert.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/sysinst/arch/i386/md.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

2019-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Dec 13 22:12:41 UTC 2019

Modified Files:
src/usr.sbin/sysinst: bsddisklabel.c disklabel.c gpt.c label.c mbr.c
partitions.c partitions.h partman.c

Log Message:
When finding (paritioning scheme native) partition types for file systems
from our install description, pass the partition type (not only the file
system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem
type (MSDOS) is not a unique selector.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/sysinst/bsddisklabel.c
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/sysinst/disklabel.c \
src/usr.sbin/sysinst/mbr.c
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/sysinst/gpt.c
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/label.c
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/sysinst/partitions.c
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/sysinst/partitions.h
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/sysinst/partman.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/macppc/macppc

2019-12-13 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Dec 13 23:01:41 UTC 2019

Modified Files:
src/sys/arch/macppc/macppc: cpu.c

Log Message:
call cpu_topology_set() with adjustments for 970MP CPUs


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/arch/macppc/macppc/cpu.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/emips

2019-12-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Dec 14 02:58:20 UTC 2019

Modified Files:
src/sys/arch/emips/ebus: ace_ebus.c flash_ebus.c
src/sys/arch/emips/emips: bus_space.c
src/sys/arch/emips/include: loadfile_machdep.h
src/sys/arch/emips/stand/common: bootinfo.c bootinfo.h bootxx.c
prom_iface.c

Log Message:
Remove clause 3 and 4 from TNF licenses.

Ok'ed by martin@ in PR/54760.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/emips/ebus/ace_ebus.c \
src/sys/arch/emips/ebus/flash_ebus.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/emips/emips/bus_space.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/emips/include/loadfile_machdep.h
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/emips/stand/common/bootinfo.c \
src/sys/arch/emips/stand/common/bootinfo.h \
src/sys/arch/emips/stand/common/bootxx.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/emips/stand/common/prom_iface.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

2019-12-13 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Sat Dec 14 04:12:50 UTC 2019

Modified Files:
src/sys/dev/pci: if_kse.c

Log Message:
use FC enable bit for 8842 host port


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/pci/if_kse.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/conf

2019-12-13 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sat Dec 14 07:45:20 UTC 2019

Modified Files:
src/sys/arch/amd64/conf: GENERIC

Log Message:
Disable multiboot for now, too much breakage.


To generate a diff of this commit:
cvs rdiff -u -r1.550 -r1.551 src/sys/arch/amd64/conf/GENERIC

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