258877 Commits

Author SHA1 Message Date
maxv
236f8e6360 Rename the entry points of the prekern, rename the array and move it into
.rodata.
2018-05-25 15:52:11 +00:00
ryoon
fb3dc77909 If fixed feature buttons exist, print detection messages. 2018-05-25 15:48:00 +00:00
martin
878ebc8c91 Add new test program 2018-05-25 15:42:48 +00:00
martin
b11873986d Add a test to verify syscall() and/or __syscall() are working.
This used to trigger a panic (see PR kern/53261) on arm.
2018-05-25 15:42:30 +00:00
martin
cb95e17bac PR kern/53261: handle SYS_syscall indirection in MD code - the generic
version would misalign the argument array.
2018-05-25 15:37:57 +00:00
maxv
aaf238e228 When the previous contrext is in kernel mode we are not guaranteed to have
a 16-byte-aligned stack pointer, so align it. That's what the CPU would do
on exception entry.
2018-05-25 15:33:56 +00:00
jdolecek
3e6fdee79b Don't use uvm_emap_size, emap was removed 2018-05-25 06:34:02 +00:00
ozaki-r
74ffb1c2c6 Ensure to call if_register after interface initializations finish 2018-05-25 04:40:26 +00:00
riastradh
0840e69c34 Add a topical acronym for this week: GDPR. 2018-05-25 00:31:07 +00:00
christos
5afe69313b obsolete DES_random_key 2018-05-24 22:37:58 +00:00
sevan
3c5b0d3e82 Note libbozohttpd(3) & bozohttpd(3lua) from earlier in the month. 2018-05-24 20:04:46 +00:00
reinoud
b19ccb8124 First try at TLS support and getcontext/setcontext/swapcontext support. 2018-05-24 19:39:04 +00:00
christos
268058c040 One more possible star. 2018-05-24 19:21:01 +00:00
christos
cf5e80d451 handle '*' entries in rules. 2018-05-24 19:19:37 +00:00
christos
e1b6c9c92d remove DES_random_key.3 since it is in libdes. 2018-05-24 19:03:47 +00:00
christos
ae5741be58 sync with HEAD. 2018-05-24 17:07:51 +00:00
christos
b5fd6cb2a8 rename flag to the official name. 2018-05-24 17:05:54 +00:00
christos
7857eebced Complete the list of DF_1 flags. 2018-05-24 17:05:18 +00:00
christos
89d57d182b add new tests 2018-05-24 14:54:36 +00:00
kamil
5b4f05b5be Try to fix 32-bit build
Cast pointer to uintptr_t rather than uintmax_t.
2018-05-24 08:28:40 +00:00
knakahara
c6109391ad ipsecif(4) must not set port number to spidx even if NAT-T. Pointed out by ohishi@IIJ, thanks. 2018-05-24 07:00:28 +00:00
msaitoh
38c7fb59b5 Print "NET_MPSAFE enabled" if it's enabled. 2018-05-24 05:27:29 +00:00
msaitoh
e66675a38d Regen. 2018-05-24 04:29:55 +00:00
msaitoh
9e1f468bef Add some Marvell Yukon devices. 2018-05-24 04:29:25 +00:00
christos
5729151aad Be more selective about remapping object directories otherwise we pick
objdump and objcopy with the regex.

XXX: pullup-8
2018-05-24 02:06:31 +00:00
christos
fe59327913 Since ${MAKE} converts $$ -> $ during parsing we need to put it back to
preserve the original variable value with :Q.
XXX: pullup-8
2018-05-24 00:27:24 +00:00
christos
45d3ba4e45 unit test for $ underquoting in :Q modifier 2018-05-24 00:25:44 +00:00
kamil
e73d44d16d Merge the eventmask[1-6] ATF ptrace(2) tests into a shared function body
While there, rename the tests to:
 - eventmask_preserved_empty
 - eventmask_preserved_fork
 - eventmask_preserved_lwp_create
 - eventmask_preserved_lwp_exit
 - eventmask_preserved_vfork
 - eventmask_preserved_vfork_done

Sponsored by <The NetBSD Foundation>
2018-05-23 23:56:07 +00:00
joerg
5b49b507f5 Simplify to avoid pointless null pointer arithmetic. 2018-05-23 21:21:27 +00:00
joerg
cebcb94770 deconst -> __UNCONST to avoid null pointer arithmetic 2018-05-23 21:20:20 +00:00
joerg
cdaefd576a Replace null pointer arithmethic with direct cast 2018-05-23 21:16:57 +00:00
maxv
b4370c2b4c Add XXX. 2018-05-23 18:40:29 +00:00
christos
649a6add8b Increase strictness of blacklistd patches to include timeouts, operating
system errors, and pam failures.
2018-05-23 16:04:13 +00:00
christos
9a9aea2376 refresh the diffs to the latest portable 2018-05-23 16:03:07 +00:00
kamil
7060760a3a Extend traceme_vfork_breakpoint in ATF ptrace(2) tests for more scenarios
traceme_vfork_breakpoint used to test SIGTRAP event. Reuse its code for:
SIGSEGV, SIGILL, SIGFPE and SIGBUS.

The SIGILL case is disabled as of now as it required addition of
PTRACE_ILLEGAL_ASM in MD ptrace(2) headers.

Added tests:
 - traceme_vfork_crash_trap
 - traceme_vfork_crash_segv (renamed from traceme_vfork_breakpoint)
 - traceme_vfork_crash_ill (disabled)
 - traceme_vfork_crash_fpe
 - traceme_vfork_crash_bus

All enabled tests pass.

Sponsored by <The NetBSD Foundation>
2018-05-23 13:51:27 +00:00
kamil
20c82f105a Add new auxiliary functions in ATF ptrace(2) tests
Introduce:
 - trigger_trap()
 - trigger_segv()
 - trigger_ill()
 - trigger_fpe()
 - trigger_bus()

These functions generate appropriate signals caused by crashes.

A debugger is required to collect the crashes regardless of signal masking,
catching or ignoring rules.

While there, append __used argument to can_we_set_dbregs().

Sponsored by <The NetBSD Foundation>
2018-05-23 13:18:09 +00:00
kamil
e5038c36e9 Cherry-pick upstream patch for internal_mmap() in GCC(.old) sanitizers
Fix internal_mmap() on 32-bit NetBSD platforms

There is need to use internal_syscall64() instead of internal_syscall_ptr().
The offset argument of type off_t is always 64-bit.

http://llvm.org/viewvc/llvm-project?view=revision&revision=333075

PR kern/53261 by Martin Husemann
2018-05-23 11:16:13 +00:00
kamil
245d8e2368 Cherry-pick upstream patch for internal_mmap() in GCC sanitizers
Fix internal_mmap() on 32-bit NetBSD platforms

There is need to use internal_syscall64() instead of internal_syscall_ptr().
The offset argument of type off_t is always 64-bit.

http://llvm.org/viewvc/llvm-project?view=revision&revision=333075

PR kern/53261 by Martin Husemann
2018-05-23 11:14:49 +00:00
hkenken
69b7af1811 Modified CCM register defines. 2018-05-23 10:42:05 +00:00
maxv
e41cfa0fa5 Add a comment about recent AMD CPUs. 2018-05-23 10:21:43 +00:00
msaitoh
0eb334e05a Add "bool txr_no_space" for TX descriptor shortage. Use it like IFF_OACTIVE. 2018-05-23 10:11:07 +00:00
maxv
81afe21fce Clarify and extend the fix for the AMD FPU leaks. We were clearing the x87
state only on FXRSTOR, but the same problem exists on XRSTOR, so clear the
state there too.
2018-05-23 10:00:27 +00:00
nonaka
327f8a3690 gmake: __alloca and __stat are provided only when building with GLIBC.
Fix a build failure on Ubuntu 18.04.
2018-05-23 09:52:27 +00:00
ryo
677168d711 style 2018-05-23 08:20:12 +00:00
maxv
488673a3ac Merge convert_xmm_s87.c into fpu.c. It contains only two functions, that
are used only in fpu.c.
2018-05-23 07:45:35 +00:00
maxv
2684bf2f4d style 2018-05-23 07:34:40 +00:00
para
cc7824fd34 fix build
obsolete HMAC from cat3 as it was renamed to openssl_HMAC
2018-05-23 07:33:55 +00:00
maxv
7d80450676 Clean up the FPU headers. 2018-05-23 07:24:37 +00:00
wiz
e8075710dc Mark up argument. Fix typo. 2018-05-23 07:08:13 +00:00
wiz
e46faeed68 Add missing .El. Replace Ta outside its defined usage with No (no change
to text output).
2018-05-23 07:06:45 +00:00