CVS commit: src/tests/kernel/arch/amd64

2017-02-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Tue Feb 21 08:40:16 UTC 2017

Modified Files:
src/tests/kernel/arch/amd64: t_ptrace_wait.c

Log Message:
Add new tests dbregs_dr*_dont_inherit_execve in arch/amd64

Added tests:
 - dbregs_dr0_dont_inherit_execve
 - dbregs_dr1_dont_inherit_execve
 - dbregs_dr2_dont_inherit_execve
 - dbregs_dr3_dont_inherit_execve
 - dbregs_dr6_dont_inherit_execve
 - dbregs_dr7_dont_inherit_execve

Debug Registers must no be inherited after exec() call.

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/tests/kernel/arch/amd64/t_ptrace_wait.c

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



CVS commit: src/usr.bin/look

2017-02-21 Thread Leonardo Taccari
Module Name:src
Committed By:   leot
Date:   Tue Feb 21 09:23:31 UTC 2017

Modified Files:
src/usr.bin/look: look.c

Log Message:
Properly check mmap(2) return value. We can end up with a segmentation
fault if the user does not provide a regular file as look(1) file
argument.

Kindly reviewed by 


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/look/look.c

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



CVS commit: src

2017-02-21 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Feb 21 10:40:30 UTC 2017

Modified Files:
src/distrib/sets/lists/tests: mi
src/etc/mtree: NetBSD.dist.tests
src/tests/usr.bin: Makefile
Added Files:
src/tests/usr.bin/pkill: Makefile t_pgrep.sh

Log Message:
PR bin/50934

Add a test program for the bug described in this PR.
This is the first pkill/pgrep/prenice test (more would be good!)

This test has been confirmed to work once the bug described in the PR
has been fixed, so the test is not marked "expected to fail" even
though initially that is what should happen.

Note: the test cana also fail if the system running the tests happens
to be running processes with names that match the patterns searched for
by the test, other than the test program itself.  This is expected to be
unlikely.


To generate a diff of this commit:
cvs rdiff -u -r1.722 -r1.723 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.141 -r1.142 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.23 -r1.24 src/tests/usr.bin/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/pkill/Makefile \
src/tests/usr.bin/pkill/t_pgrep.sh

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

2017-02-21 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Tue Feb 21 10:53:37 UTC 2017

Modified Files:
src/sys/arch/i386/stand/efiboot: TODO.efiboot
src/sys/arch/i386/stand/efiboot/bootia32: Makefile efibootia32.c
Added Files:
src/sys/arch/i386/stand/efiboot/bootia32: startprog32.S

Log Message:
fix to be able to boot amd64 kernel from 32bit efiboot (booia32.efi).


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/stand/efiboot/TODO.efiboot
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/i386/stand/efiboot/bootia32/Makefile \
src/sys/arch/i386/stand/efiboot/bootia32/efibootia32.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/i386/stand/efiboot/bootia32/startprog32.S

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



CVS commit: src/usr.bin/pkill

2017-02-21 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Feb 21 13:09:56 UTC 2017

Modified Files:
src/usr.bin/pkill: pkill.c

Log Message:
PR bin/50934 -- avoid core dump if a process being examined has set
its argv[0] to NULL.

XXX Needs pullups netbsd-7-0 and netbsd-7 (bug was introduced after
netbsd-6 and never pulled up, so no netbsd-6 pullups required.)


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/pkill/pkill.c

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



CVS commit: src/sys/external/bsd/drm2

2017-02-21 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Tue Feb 21 14:19:40 UTC 2017

Modified Files:
src/sys/external/bsd/drm2/dist/include/drm: drmP.h
src/sys/external/bsd/drm2/pci: drm_pci.c

Log Message:
drmkms_pci: use MSI if available.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/external/bsd/drm2/dist/include/drm/drmP.h
cvs rdiff -u -r1.13 -r1.14 src/sys/external/bsd/drm2/pci/drm_pci.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/powerd

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 15:15:20 UTC 2017

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Fix spelling of "occurs".


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/powerd/powerd.8

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



CVS commit: src/crypto/external/bsd/heimdal/lib/libasn1

2017-02-21 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Feb 21 16:07:17 UTC 2017

Modified Files:
src/crypto/external/bsd/heimdal/lib/libasn1: Makefile

Log Message:
reproduced also on the regular (not -m32) build.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/crypto/external/bsd/heimdal/lib/libasn1/Makefile

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



CVS commit: src/lib/libc/sys

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 17:56:21 UTC 2017

Modified Files:
src/lib/libc/sys: dup.2

Log Message:
Fix spelling of "includes".


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/sys/dup.2

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



CVS commit: src/lib/libc/sys

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 18:01:38 UTC 2017

Modified Files:
src/lib/libc/sys: dup.2

Log Message:
Use .Fn to refer functions instead of .Nm.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libc/sys/dup.2

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



CVS commit: src/lib/libc/gen

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 18:22:15 UTC 2017

Modified Files:
src/lib/libc/gen: syslog.3

Log Message:
Fix spelling of "parenthesis".


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/gen/syslog.3

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



CVS commit: src/usr.sbin/syslogd

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 18:28:28 UTC 2017

Modified Files:
src/usr.sbin/syslogd: syslog.conf.5

Log Message:
Fix typos.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/syslogd/syslog.conf.5

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



CVS commit: src/usr.sbin/syslogd

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 18:36:39 UTC 2017

Modified Files:
src/usr.sbin/syslogd: syslog.conf.5

Log Message:
Remove duplicate word from the sentence.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/syslogd/syslog.conf.5

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



CVS commit: src/lib/libc/stdio

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 18:47:40 UTC 2017

Modified Files:
src/lib/libc/stdio: printf.3

Log Message:
Insert comma between two Nm entries.
Replace Nm with Fn to refer a function.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/lib/libc/stdio/printf.3

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



CVS commit: src/lib/libc/gen

2017-02-21 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Tue Feb 21 19:53:20 UTC 2017

Modified Files:
src/lib/libc/gen: popen.3

Log Message:
Use Fn for function name.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/gen/popen.3

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



CVS commit: src/share/man/man9

2017-02-21 Thread David Young
Module Name:src
Committed By:   dyoung
Date:   Tue Feb 21 19:53:49 UTC 2017

Modified Files:
src/share/man/man9: ieee80211_radiotap.9

Log Message:
Fix PR standards/51989: the extension bit extends the presence bitmap
by 32 bits, not 64.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man9/ieee80211_radiotap.9

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



CVS commit: src/sys/dev

2017-02-21 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Tue Feb 21 20:23:37 UTC 2017

Modified Files:
src/sys/dev: audio.c

Log Message:
Ensure we still have a virtual channel after sleeping on sc_lock.

Addresses PR kern/51746: Panics from audio.


To generate a diff of this commit:
cvs rdiff -u -r1.306 -r1.307 src/sys/dev/audio.c

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



CVS commit: src/tests/usr.bin/pkill

2017-02-21 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Tue Feb 21 21:22:46 UTC 2017

Modified Files:
src/tests/usr.bin/pkill: t_pgrep.sh

Log Message:
Ugh... fix a last minute fix that went horribly wrong!


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/pkill/t_pgrep.sh

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



CVS commit: src

2017-02-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Feb 22 01:07:14 UTC 2017

Modified Files:
src/distrib/sets/lists/debug: md.amd64 md.i386
src/tests/kernel/arch: Makefile
src/tests/kernel/arch/amd64: t_ptrace_wait.c
Added Files:
src/distrib/sets/lists/tests: md.amd64 md.i386
src/tests/kernel/arch/x86: Makefile Makefile.inc t_ptrace_wait.c
t_ptrace_wait3.c t_ptrace_wait4.c t_ptrace_wait6.c
t_ptrace_waitid.c t_ptrace_waitpid.c

Log Message:
Add kernel/arch/x86 ATF tests for CPU Debug Registers for amd64 and i386

This moves kernel/arch/amd64 tests, the ones to be shared between amd64 and
i386, into kernel/arch/x86. This covers all Debug Register tests.

kernel/arch/amd64 is reduced to regs1
kernel/arch/i386 is reduced to regs1

kernel/arch/x86 tests:
 - dbregs_print
 - dbregs_preserve_dr0
 - dbregs_preserve_dr1
 - dbregs_preserve_dr2
 - dbregs_preserve_dr3
 - dbregs_preserve_dr0_yield
 - dbregs_preserve_dr1_yield
 - dbregs_preserve_dr2_yield
 - dbregs_preserve_dr3_yield
 - dbregs_preserve_dr0_continued
 - dbregs_preserve_dr1_continued
 - dbregs_preserve_dr2_continued
 - dbregs_preserve_dr3_continued
 - dbregs_dr0_trap_variable_writeonly_byte
 - dbregs_dr1_trap_variable_writeonly_byte
 - dbregs_dr2_trap_variable_writeonly_byte
 - dbregs_dr3_trap_variable_writeonly_byte
 - dbregs_dr0_trap_variable_writeonly_2bytes
 - dbregs_dr1_trap_variable_writeonly_2bytes
 - dbregs_dr2_trap_variable_writeonly_2bytes
 - dbregs_dr3_trap_variable_writeonly_2bytes
 - dbregs_dr0_trap_variable_writeonly_4bytes
 - dbregs_dr1_trap_variable_writeonly_4bytes
 - dbregs_dr2_trap_variable_writeonly_4bytes
 - dbregs_dr3_trap_variable_writeonly_4bytes
 - dbregs_dr0_trap_variable_readwrite_write_byte
 - dbregs_dr1_trap_variable_readwrite_write_byte
 - dbregs_dr2_trap_variable_readwrite_write_byte
 - dbregs_dr3_trap_variable_readwrite_write_byte
 - dbregs_dr0_trap_variable_readwrite_write_2bytes
 - dbregs_dr1_trap_variable_readwrite_write_2bytes
 - dbregs_dr2_trap_variable_readwrite_write_2bytes
 - dbregs_dr3_trap_variable_readwrite_write_2bytes
 - dbregs_dr0_trap_variable_readwrite_write_4bytes
 - dbregs_dr1_trap_variable_readwrite_write_4bytes
 - dbregs_dr2_trap_variable_readwrite_write_4bytes
 - dbregs_dr3_trap_variable_readwrite_write_4bytes
 - dbregs_dr0_trap_variable_readwrite_read_byte
 - dbregs_dr1_trap_variable_readwrite_read_byte
 - dbregs_dr2_trap_variable_readwrite_read_byte
 - dbregs_dr3_trap_variable_readwrite_read_byte
 - dbregs_dr0_trap_variable_readwrite_read_2bytes
 - dbregs_dr1_trap_variable_readwrite_read_2bytes
 - dbregs_dr2_trap_variable_readwrite_read_2bytes
 - dbregs_dr3_trap_variable_readwrite_read_2bytes
 - dbregs_dr0_trap_variable_readwrite_read_4bytes
 - dbregs_dr1_trap_variable_readwrite_read_4bytes
 - dbregs_dr2_trap_variable_readwrite_read_4bytes
 - dbregs_dr3_trap_variable_readwrite_read_4bytes
 - dbregs_dr0_trap_code
 - dbregs_dr1_trap_code
 - dbregs_dr2_trap_code
 - dbregs_dr3_trap_code
 - dbregs_dr0_dont_inherit_lwp
 - dbregs_dr1_dont_inherit_lwp
 - dbregs_dr2_dont_inherit_lwp
 - dbregs_dr3_dont_inherit_lwp
 - dbregs_dr6_dont_inherit_lwp
 - dbregs_dr7_dont_inherit_lwp
 - dbregs_dr0_dont_inherit_execve
 - dbregs_dr1_dont_inherit_execve
 - dbregs_dr2_dont_inherit_execve
 - dbregs_dr3_dont_inherit_execve
 - dbregs_dr6_dont_inherit_execve
 - dbregs_dr7_dont_inherit_execve

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/distrib/sets/lists/debug/md.amd64
cvs rdiff -u -r1.9 -r1.10 src/distrib/sets/lists/debug/md.i386
cvs rdiff -u -r0 -r1.1 src/distrib/sets/lists/tests/md.amd64
cvs rdiff -u -r0 -r1.3 src/distrib/sets/lists/tests/md.i386
cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/arch/Makefile
cvs rdiff -u -r1.24 -r1.25 src/tests/kernel/arch/amd64/t_ptrace_wait.c
cvs rdiff -u -r0 -r1.1 src/tests/kernel/arch/x86/Makefile \
src/tests/kernel/arch/x86/Makefile.inc \
src/tests/kernel/arch/x86/t_ptrace_wait.c \
src/tests/kernel/arch/x86/t_ptrace_wait3.c \
src/tests/kernel/arch/x86/t_ptrace_wait4.c \
src/tests/kernel/arch/x86/t_ptrace_wait6.c \
src/tests/kernel/arch/x86/t_ptrace_waitid.c \
src/tests/kernel/arch/x86/t_ptrace_waitpid.c

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



CVS commit: src/etc/mtree

2017-02-21 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Feb 22 02:42:53 UTC 2017

Modified Files:
src/etc/mtree: NetBSD.dist.tests

Log Message:
Add new directory usr/tests/kernel/arch/x86 in mtree

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/etc/mtree/NetBSD.dist.tests

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



CVS commit: src/lib

2017-02-21 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Feb 22 02:58:31 UTC 2017

Modified Files:
src/lib: Makefile

Log Message:
GC deprecated logic. GCC 4.8 is not in tree any more.


To generate a diff of this commit:
cvs rdiff -u -r1.249 -r1.250 src/lib/Makefile

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



CVS commit: src/sys/netinet6

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 03:02:55 UTC 2017

Modified Files:
src/sys/netinet6: nd6.c nd6.h nd6_rtr.c

Log Message:
Fix prefix invalidation via nd6_timer

We cannot remove a prefix there. Instead just invalidate it; the prefix
will be removed when purging an associated address. This is the same as
the original behavior.


To generate a diff of this commit:
cvs rdiff -u -r1.227 -r1.228 src/sys/netinet6/nd6.c
cvs rdiff -u -r1.82 -r1.83 src/sys/netinet6/nd6.h
cvs rdiff -u -r1.131 -r1.132 src/sys/netinet6/nd6_rtr.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/ndp

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 03:03:37 UTC 2017

Modified Files:
src/tests/net/ndp: t_ra.sh

Log Message:
Add tests for expiration of default router and prefix entries


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/tests/net/ndp/t_ra.sh

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



CVS commit: src/sys/netinet6

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 03:41:54 UTC 2017

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

Log Message:
Use kmem istead of malloc


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/netinet6/nd6.c

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



CVS commit: src/doc

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 04:44:16 UTC 2017

Modified Files:
src/doc: TODO.smpnet

Log Message:
Add l2tp(4)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/doc/TODO.smpnet

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



CVS commit: src/sys

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 07:05:04 UTC 2017

Modified Files:
src/sys/netinet: in_pcb.h ip_output.c
src/sys/netinet6: in6_pcb.h ip6_output.c

Log Message:
Add assertions and comments for lock states of socket and pcb


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.271 -r1.272 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.47 -r1.48 src/sys/netinet6/in6_pcb.h
cvs rdiff -u -r1.184 -r1.185 src/sys/netinet6/ip6_output.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

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 07:05:47 UTC 2017

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

Log Message:
Get rid of unnecessary splsoftnet


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/sys/netinet6/nd6_rtr.c

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



CVS commit: src/sys

2017-02-21 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Wed Feb 22 07:46:01 UTC 2017

Modified Files:
src/sys/netinet6: in6_var.h ip6_input.c ip6_mroute.c ip6_output.c
mld6.c nd6.c
src/sys/netipsec: key.c

Log Message:
Stop using useless IN6_*_MULTI macros


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/netinet6/in6_var.h
cvs rdiff -u -r1.174 -r1.175 src/sys/netinet6/ip6_input.c
cvs rdiff -u -r1.117 -r1.118 src/sys/netinet6/ip6_mroute.c
cvs rdiff -u -r1.185 -r1.186 src/sys/netinet6/ip6_output.c
cvs rdiff -u -r1.81 -r1.82 src/sys/netinet6/mld6.c
cvs rdiff -u -r1.229 -r1.230 src/sys/netinet6/nd6.c
cvs rdiff -u -r1.101 -r1.102 src/sys/netipsec/key.c

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