summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-04Cleanup the code further. Get rid of the remaining C++-style comments,Mark Kettenis
remove some debug printfs, get rid of STATIC and __inline defines and remove a bit more unused code. ok drahn@, visa@
2017-04-04Issue memory barrier before lock release, not after. This ensuresVisa Hankala
the release write becomes globally visible only after any writes of the critical section are globally visible. In practice, the reordering has not happened because the kernel runs in the total store order mode. Tested by and OK kettenis@
2017-04-04add a free() size near microcode loadingTheo de Raadt
2017-04-04Rewrite tohexstr() to use the common idiom of converting a byteTodd C. Miller
string to hex nybble by nybble. This avoids using the return value of snprintf() unchecked. OK deraadt@
2017-04-04Add 8265 and 3168 support. Both cards need new firmware files which currentlyClaudio Jeker
need to be installed by hand until the iwm-firmware package has been updated. This includes handling (by ignoring) of IWM_UCODE_TLV_FW_MEM_SEG and IWM_DEBUG_LOG_MSG firmware commands. Mostly stolen from dragonflybsd. With this in the X270 has working ethernet and wifi. Commit! deraadt@
2017-04-04disallow creation (of empty files) in read-only mode; reported byDamien Miller
Michal Zalewski, feedback & ok deraadt@
2017-04-04cp -p the bootblocks to RELEASEDIR; ok tbTheo de Raadt
2017-04-03warn format string should be literal.Frederic Cambus
OK deraadt@, millert@
2017-04-03Change parse_string() to take an optional integer pointer that canKenneth R Westerback
be used to return the final size of the parsed (i.e. un-vis'ed) string. Use same, plus memcpy() to ensure entire final string is copied to intended destination even if there are embedded NULs.
2017-04-03Add caveat telling it's better to always read a data byte when passingOtto Moerbeek
control messages. Problem noted by Luke Small; ok deraadt@
2017-04-03Send and receive 1 byte of data in addition to the control message. This isOtto Moerbeek
needed to make the code work in more cases. Sending actually is not really needed, but do it anyway, to avoid confusing mismatch between producer and consumer. Problem noted by Luke Small; ok deraadt@
2017-04-03WSDISPLAY_MAXFONTCOUNT macro was introduced in sys/dev/wscons/wsconsio.hFrederic Cambus
(revision 1.75) to limit the number of fonts that can be loaded. Reflect that in the man page as well. OK jcs@
2017-04-03Simplify read_string() to just read the characters between the '"'s.Kenneth R Westerback
Push the un-vising up to parse_string(). This allows both the actual string and the un-vised version to be available as desired. Use memcpy() instead of strdup() to copy un-vised string since it may legitimately contain NUL.
2017-04-03check return from pread, don't divide -1 for countTed Unangst
2017-04-03use recallocarray() because the array contains data that can be observedTheo de Raadt
2017-04-03initialize regmatch_t always, fixes grep -o ""Ted Unangst
from Michael Santos
2017-04-03provide size to free(9)Theo de Raadt
2017-04-03Fix silly code that printfs NULL when there are no fractional secondsBob Beck
on a GENREALIZEDTIME (which there should really never be for anything remotely standards compliant) ok jsing@
2017-04-03Tweak parse_string() to not consume the ';'. Simplifies/shortensKenneth R Westerback
some logic.
2017-04-03Tweak 'expecting' parse_warn() messages to be more consistent.Kenneth R Westerback
2017-04-03Compute address for ll/sc only once.Visa Hankala
2017-04-02Less convoluted code in soshutdown()Theo de Raadt
ok guenther
2017-04-02The character buffer should be resized using recallocarray()Theo de Raadt
ok millert and nicm a while ago
2017-04-02Always use return value of asprintf to determine success/failure,Theo de Raadt
don't rely upon *ret becoming NULL ok millert, tom
2017-04-02Check return value of asprintf(), and don't use 0 as a char *Tom Cosgrove
Started by, and ok, deraadt@
2017-04-02Change parse_string() warning from "filename must be a string" toKenneth R Westerback
"expecting a string". Things other than filenames are parsed here.
2017-04-02Filter out RDTSCP, needed to handle solaris guests. We set the VMX controlMike Larkin
to enable RDTSCP to 0, so when solaris attempted to use the instruction (since it wasn't filtered out of CPUID information), the CPU issued an #UD exception.
2017-04-02note that some hosts never generate tuples and are ignored;Jason McIntyre
ok beck
2017-04-02update currency exchange rates;Jason McIntyre
2017-04-02On ARMv8, the translation table walk is fully coherent so there is noMark Kettenis
reason to explicitly flush the cache before invalidating the TLB. The barrier that is included in out TLB flushing code should be enough to guarantee that the TLB walking hardware sees the updated page table contents, so the explicit barriers can go as well. Sanitize the code immediately surrounding the removed bits while I'm there. Tested by jsg@, ok drahn@, visa@
2017-04-02printf format strings should be literals. Reminded by clang.Visa Hankala
2017-04-02Drop address conversion cruft.Visa Hankala
2017-04-02Fix tcp stats reportingJeremie Courreges-Anglas
Return the sum of per-cpu counters instead of the current cpu's counters. Brainfart on my side. Analysis and fix by Andrei-Marius Radu.
2017-04-02add overdrive 1000Jonathan Gray
2017-04-02Fix an out-of-bounds memory access with 64-bit armaps.Visa Hankala
OK kettenis@
2017-04-02Bring back the wait instruction into the idle loop, but only on octeon.Visa Hankala
This lets an idle SoC run a bit cooler. Tested on CN5020, CN6120 and CN7130.
2017-04-02Replace snprintf(NULL, malloc, snprintf.... with the much better asprintf.Theo de Raadt
ok millert
2017-04-02Prefer pread() over lseek()+read()Philip Guenther
open() only needs the mode argument if O_CREAT is present ok beck@ deraadt@
2017-04-02normalize order of arguments to if ()Theo de Raadt
2017-04-02Make dma range buffer cache pages visible in systat ioBob Beck
ok deraadt@
2017-04-02unlock tree, we are now hacking on 6.1-currentTheo de Raadt
2017-04-01MDT...Theo de Raadt
2017-03-31The default for the "Server directory?" question can possibly comeRobert Peichaer
from either what information is extracted from the cgi server or from installurl(5). Otherwise a sane default is used. Based on what server (HTTP_SERVER) is provided by the user decide on what source to choose from for the default. At the end of install_http() use the url from the cgi server as the base for what's written to /etc/installurl if an official mirror was used. Otherwise trim _url_base and remove the architecture and snapshots or version part. This fixes the problem reported by phessler@ which exposed how fragile the current logic for this was after recent changes. At this time of the release cycle the kernel presents itself as release kernel, but we're still pre-release and the sets are still in the snapshots directory on the mirrors. This was confusing the installer script. Thanks to phessler@ for finding this and testing. Special thanks to tb@ who imposed on himself to try to understand and review the diffs. OK tb@, phessler@ (on a similar diff) 'commit when your are happy' deraadt@
2017-03-31Be quiet in case /var/syspatch/ is empty and that there's no remote sigAntoine Jacoutot
file yet (i.e. when we are in release mode but not released yet). ok deraadt@
2017-03-30skip floppyB until more space is foundTheo de Raadt
2017-03-30Xr acpisbsJoshua Stein
2017-03-30syncTheo de Raadt
2017-03-30add a manpage for acpisbs, remove caveat from acpibatJoshua Stein
2017-03-30Only close the SA if an error happens before ikev2_msg_init() was calledPatrick Wildt
to make sure we do not run ikev2_msg_cleanup() on an unitialized stack variable. ok deraadt@ reyk@
2017-03-30Disable client-initiated renegotiation.Joel Sing
ok gilles@ eric@ deraadt@