Commit Graph

248902 Commits

Author SHA1 Message Date
ozaki-r
66d96cc093 Use kmem istead of malloc 2017-02-22 03:41:54 +00:00
ozaki-r
9e6e8d7cf9 Add tests for expiration of default router and prefix entries 2017-02-22 03:03:37 +00:00
ozaki-r
93f6b1d8be 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.
2017-02-22 03:02:55 +00:00
maya
bee20f7c3c GC deprecated logic. GCC 4.8 is not in tree any more. 2017-02-22 02:58:31 +00:00
kamil
d8c68e22d2 Add new directory usr/tests/kernel/arch/x86 in mtree
Sponsored by <The NetBSD Foundation>
2017-02-22 02:42:53 +00:00
kamil
b4bf2c1aa5 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 <The NetBSD Foundation>
2017-02-22 01:07:13 +00:00
kre
697c0e2acf Ugh... fix a last minute fix that went horribly wrong! 2017-02-21 21:22:45 +00:00
nat
18a38c9ab1 Ensure we still have a virtual channel after sleeping on sc_lock.
Addresses PR kern/51746: Panics from audio.
2017-02-21 20:23:37 +00:00
dyoung
e20e65a8eb Fix PR standards/51989: the extension bit extends the presence bitmap
by 32 bits, not 64.
2017-02-21 19:53:49 +00:00
abhinav
44c9d98bb0 Use Fn for function name. 2017-02-21 19:53:20 +00:00
abhinav
74752680de Insert comma between two Nm entries.
Replace Nm with Fn to refer a function.
2017-02-21 18:47:40 +00:00
abhinav
11852aa12f Remove duplicate word from the sentence. 2017-02-21 18:36:39 +00:00
abhinav
901279cdf1 Fix typos. 2017-02-21 18:28:28 +00:00
abhinav
68d0ebc2d9 Fix spelling of "parenthesis". 2017-02-21 18:22:15 +00:00
abhinav
52cc192a32 Use .Fn to refer functions instead of .Nm. 2017-02-21 18:01:38 +00:00
abhinav
9c8d63417a Fix spelling of "includes". 2017-02-21 17:56:21 +00:00
christos
6f030214f7 reproduced also on the regular (not -m32) build. 2017-02-21 16:07:17 +00:00
abhinav
7197d240e2 Fix spelling of "occurs". 2017-02-21 15:15:19 +00:00
nonaka
4b79c039d8 drmkms_pci: use MSI if available. 2017-02-21 14:19:39 +00:00
kre
d7b1a047f9 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.)
2017-02-21 13:09:56 +00:00
nonaka
0d311d094e fix to be able to boot amd64 kernel from 32bit efiboot (booia32.efi). 2017-02-21 10:53:37 +00:00
kre
67cef682dd 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.
2017-02-21 10:40:30 +00:00
leot
535ea0f76d 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 <Riastradh>
2017-02-21 09:23:31 +00:00
kamil
10e522e132 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 <The NetBSD Foundation>
2017-02-21 08:40:16 +00:00
skrll
439b8760a1 KNF 2017-02-21 07:40:28 +00:00
abhinav
3e1c6cfae4 mdocml-1.14.1 released. 2017-02-21 04:58:44 +00:00
ozaki-r
9bd7113070 Use kmem instead of malloc 2017-02-21 04:00:01 +00:00
ozaki-r
1f29833ec6 Sweep unnecessary malloc.h inclusions 2017-02-21 03:59:31 +00:00
ozaki-r
67412bb47f Replace malloc for DAD with kmem and move them out of the lock for DAD 2017-02-21 03:58:23 +00:00
pgoyette
15472e955c Set the smtputf8_enable switch to "no" for now, since we are build without
EAI support.
2017-02-21 01:13:21 +00:00
christos
15df1d3d0e regen 2017-02-20 21:28:48 +00:00
christos
958d1f77d5 document -P 2017-02-20 20:56:30 +00:00
skrll
76cf3479b0 Trailing whitespace. 2017-02-20 17:27:32 +00:00
skrll
c0a47f5ca0 Trailing whitespace 2017-02-20 17:25:41 +00:00
skrll
dc8b7bb51c Whitespace in comment 2017-02-20 17:23:54 +00:00
skrll
1f09dc2a97 Trailing whitespace 2017-02-20 17:22:26 +00:00
rin
6c2008f9e1 KNF; no binary changes 2017-02-20 16:30:41 +00:00
rin
b1daa99657 CID 980928: fix NULL pointer dereferece 2017-02-20 16:26:30 +00:00
rin
0b097c4bf6 add missing LIBCXX 2017-02-20 16:05:34 +00:00
rin
36be1ec540 Fix -O0 build; <machine/bwx.h> should be included after ".arch ev56" pseudo-op. 2017-02-20 15:23:43 +00:00
christos
efebee5612 sort completely 2017-02-20 13:45:43 +00:00
skrll
e4fbe3f2fb Whitespace 2017-02-20 10:34:55 +00:00
ozaki-r
c1421f792c Add basic tests for forwarding fragmented packets 2017-02-20 09:58:58 +00:00
knakahara
587ff66fda Apply deferred if_start to vmx(4). 2017-02-20 09:02:01 +00:00
ozaki-r
bed60eb03f Add simple tests of behaviors of alias addresses 2017-02-20 09:00:08 +00:00
ozaki-r
fa599b2eb8 Apply deferred if_start to more drivers... 2017-02-20 08:25:57 +00:00
ozaki-r
1c82c572b4 Apply deferred if_start to more drivers 2017-02-20 07:43:29 +00:00
kamil
2473483dae Protect dbregs_dr*_dont_inherit_lwp in arch/amd64 with HAVE_DBREGS
The code for debug registers isn't in HEAD and it might break the build.

Sponsored by <The NetBSD Foundation>
2017-02-20 06:48:49 +00:00
ozaki-r
078f8f327c Fix assertion failure in bpf_mtap by applying deferred if_start to re(4)
Reported by maya@
2017-02-20 06:46:41 +00:00
kamil
69781b08f0 Add new tests dbregs_dr[67]_dont_inherit_lwp in arch/amd64
New tests:
 - dbregs_dr6_dont_inherit_lwp
 - dbregs_dr7_dont_inherit_lwp

Debug Registers are set always per-LWP and they are never inherited.
If a user wants to reuse them, there is need to set trap on thread creation
(PTRACE_LWP_CREATE) and set them from a debugger on newly created LWP.

Sponsored by <The NetBSD Foundation>
2017-02-20 06:18:48 +00:00