summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-16Last changes before running IPsec w/o KERNEL_LOCK().Martin Pieuchot
Put more NET_ASSERT_LOCK() and document which globals it protects. Add a mutex for pfkeyv2 globals. Convert ipsp_delete_acquire() to timeout_set_proc(). Tested by Hrvoje Popovski, ok bluhm@ visa@
2017-10-16Change most of the returns into breaks. This will let us release a lock.Martin Pieuchot
While here add error checks for SIOC{A,D}IFGROUP. ok sashan@, bluhm@, visa@
2017-10-16drm/i915/bios: ignore HDMI on port AJonathan Gray
From Jani Nikula 33d1fa43aad4ca11f5d01ede363c1dbdd2010540 in linux 4.4.y/4.4.92 2ba7d7e0437127314864238f8bfcb8369d81075c in mainline linux ok kettenis@
2017-10-16Add regress test for cancellation of pthread_once()'s init_routinePhilip Guenther
From Scott Cheloha (scottcheloha (at) gmail.com)
2017-10-15Move the thread-related .h files to /usr/src/include/, since thePhilip Guenther
implementation is now spread between libc and librthread. No changes to the content ok mpi@
2017-10-15Add "ssv" variant which turns a rib route output into a singleTheo de Raadt
semicolon-seperated line, so that grep and such can operate easier; then use tr ';' '\n' to convert it to normal form later. This helps with scanning vast swathes of routes.. ok benno claudio job
2017-10-15Set default join preferences to prefer APs based on the RSSI, withPatrick Wildt
a boost set to prefer 5GHz APs.
2017-10-15Kill unused definesJeremie Courreges-Anglas
2017-10-15Similar to other USB based backend drivers, have a list of TX/RXPatrick Wildt
buffers. By storing the pointer of the TX mbuf in the TX buffer, we can make sure to free the mbuf properly after TX completed. This also seems to speed up the WiFi scan. previous version ok stsp@
2017-10-15Initialize status return code in ar5k_ar5211_reset() and ar5k_ar5212_reset(),Stefan Sperling
in the same way as ar5k_ar5210_reset() does it. Error messages were displaying uninitialized values: "ath_reset: unable to reset hardware; hal status 3497439432" ok mpi@
2017-10-15Add a regression test for ldexp(3).Visa Hankala
2017-10-15Do not use an uninitialized value when determining the signVisa Hankala
of a denormal result of ldexp(3). The bug was found when investigating why denormal results of pow(3) can have an incorrect sign on loongson. pow(3) misbehaviour reported and fix tested by juanfra@ No objection from deraadt@
2017-10-14locore0: remove an unused variableMike Larkin
ok deraadt
2017-10-14Whitespace fix.Kenneth R Westerback
2017-10-14Refactor parsing of hex sequences. Rename parse_X()Kenneth R Westerback
to parse_hex_octets() and have it return 0/1 to indicate success, to not touch existing data on error paths, to handle ';' better, emit single error message ("expecting colon delimited list of hex octets."). Fold parse_hex() into parse_hex_octets(). Simplify logic in parse_option_decl() to eliminate duplicate overflow error checking and error messages as a result.
2017-10-14Split sys_ptrace() by request type:Philip Guenther
- control operations: trace_me, attach, detach, step, kill, continue. Manipulate process relation/state or send a signal - kernel-state get/set: thread list, event mask, trace state. About the process and don't require target to be stopped, need copyin/out - user-state get/set: memory, register, window cookie. Often thread-specific, require target to be stopped, need copyin/out sys_ptrace() changes to handle request checking, copyin/out to kernel buffers with size check and zeroing, and dispatching to the routines above for the real work. This simplfies the permission checks and copyin/out handling and will simplify lock handling in the future. Inspired in part by FreeBSD. ok mpi@ visa@
2017-10-14Add bwfm(4) to fw_update(1).Patrick Wildt
ok espie@ sthen@
2017-10-14tweak previous;Jason McIntyre
2017-10-14reduce the amount of includes in arch/amd64Jonathan Gray
ok mpi@ deraadt@
2017-10-14Tweak parse_option_list() to return 0/1 to indicate success,Kenneth R Westerback
to not touch existing data on error paths, to handle ';' better, emit single error message ("expecting comma delimited list of option names.").
2017-10-13Integrate the description of flow queues into the main body of textMike Belopuhov
2017-10-13log debug messages sent to peer; ok deraadt markusDamien Miller
2017-10-13ansify function prototypes (to match db_stack_trace_print() in the same file)Jasper Lievisse Adriaanse
2017-10-13return a missing return (was left out of previous)Jasper Lievisse Adriaanse
2017-10-13Move extraction of rootdisk information into the DONEPROFILE if-block.Robert Peichaer
OK tb@
2017-10-13- use db_printf()Jasper Lievisse Adriaanse
- refuse to pretty-print if there's no CTF ok mpi@
2017-10-13Comment trap handlersRobert Peichaer
2017-10-13Tweak commentsRobert Peichaer
2017-10-13Add a comment for slaacd(8) start and replace the if-then-fi blockRobert Peichaer
with a [[ test ]] && command construct.
2017-10-13trim permitrootlogin description somewhat, to avoid ambiguity;Jason McIntyre
original diff from walter alejandro iglesias, tweaked by sthen and myself ok sthen schwarze deraadt
2017-10-13Tweak parse_option_decl() to return 0/1 to indicate success,Kenneth R Westerback
to not touch existing data on error paths, to handle ';' better.
2017-10-13Implement media auto selection for DEC 3000.Martin Pieuchot
diff from miod@
2017-10-13mention SSH_USER_AUTH in the list of environment variablesDamien Miller
2017-10-13BIO_get_mem_data() is supposed to take a char* as pointer argument,Damien Miller
so don't pass it a const char*
2017-10-13Don't check for mirror availability but directly try to fetch SHA256.sig. ThatAntoine Jacoutot
check was not safe (index needed to be enabled, top URL may not be available etc.). based on a comment from tj@
2017-10-13Use gap.o on arm64. After the recent llvm/lld 5.0.0 update the linkerJonathan Gray
script can be used. ok kettenis@
2017-10-13I was one bit off in the "is canonical" test for FS.base (TCB pointer) values,Philip Guenther
so it was still possible to fault the kernel. Problem observed by Maxime Villard ok deraadt@ bluhm@
2017-10-12The testprogram for ld.so reordering is executed in tmpdir.Robert Peichaer
Move tmpdir for reordering library from /tmp to /usr/lib. This allows to have /tmp mounted noexec. prompted by reports on misc@ OK deraadt@ tj@ tb@
2017-10-12Check for asprintf() returning -1 instead of assuming that theTodd C. Miller
pointer will remain unchanged when fails. OK deraadt@
2017-10-12Rename ssl3_client_hello() to ssl3_send_client_hello() for consistency.Joel Sing
2017-10-12Fold dtls1_accept() into ssl_accept(), removing a lot of duplicated code.Joel Sing
With review/feedback from inoguchi@
2017-10-12Simplify and explicitely state when we cannot access our mirror.Antoine Jacoutot
2017-10-12Drop prototypes for ssl23_*() functions, which no longer exist.Joel Sing
2017-10-12Copy comment for M_LOOP from header file to mbuf(9).Alexander Bluhm
2017-10-12Loosen up installurl(5) check: it's OK to have a trailing slash.Antoine Jacoutot
2017-10-12Better error if installurl points to a local directory.Antoine Jacoutot
2017-10-12Add STANDARDS: denis@ spotted that it was missing.Ingo Schwarze
OK deraadt@ jca@ jmc@
2017-10-12Use a regex(3) to find the new pledge violation string in the dmesg.Alexander Bluhm
2017-10-12Print the word pledge in the kernel log when there is a violation.Alexander Bluhm
This should make it easier to figure out what is going on. Note that the pledgecode it shows is only a guess which pledge(2) might help. OK deraadt@ semarie@
2017-10-12Don't leak string that overflows the option data buffer.Kenneth R Westerback