summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-12-23Add missing Sunrise Point-H I2C controller PCI IDsmlarkin1-1/+3
2017-12-23Make it clear that MFS can be used for the noperm permission holding DESTDIR.sthen1-2/+5
(If anyone needs a bit more handholding than is in release(8), the faq page https://www.openbsd.org/faq/faq5.html#Release has more information about setting this up). Much simplified from, but inspired by, various diffs from ians@. ok tb@ jmc@
2017-12-23Remove stray space.kettenis1-2/+2
2017-12-23Sync Allwinner H3/H5 pin definitions with Linux.kettenis1-3/+2
2017-12-23the trick to get signal names requires skipping over POSIX stuff we don'tespie1-2/+5
have now. as seen by landry@
2017-12-23Avoid null-pointer dereference wen a device tree refers to a pin-functionkettenis1-1/+3
that doesn't exist.
2017-12-23scrolling: take care of noise.bru1-3/+5
2017-12-23Since ikev2_init_recv() is supposed to only handle responses to anpatrick1-16/+2
exchange that we initiatiated, we are not allowed to respond to such a msg. Also we don't need the DH check in ikev2_sa_initiator_dh() as it's only called when we initiate, so the check would not run, or when we get a Create Child SA response, where an error should only lead to us having another attempt at an exchange. Found by and ok markus@
2017-12-23Remove dead assignment.fcambus1-4/+1
Now that we call rasops_putchar_rotated(), we don't need ri anymore. OK kettenis@
2017-12-23Use regmap interface to tweak "SYSREG" PHY configuration registers andkettenis6-138/+18
remove exsysreg(4). The exsysreg(4) driver would no longer attach as syscon(4) would match its node in the device tree. As a result the driver corss-call would panic. Makes te Odroid-XU4 work again.
2017-12-23enable snooping on Intel 200 Series HDAjsg1-1/+2
2017-12-23match on intel 200 seriesjsg1-2/+3
2017-12-23regenjsg2-2/+247
2017-12-23add ids for intel coffee lake-s and series 200/300 pchjsg1-1/+50
2017-12-23clarify that -i only affects the comparison of ASCII characters;schwarze1-3/+7
OK jmc@ tb@
2017-12-22Fix memory leak in screen_redraw_make_pane_status.nicm1-1/+3
2017-12-22Since export accepts several variables, put them on a single line; ok tb@anton1-6/+5
2017-12-22Cope with the fact, that the DHCLIENT route label is gone whichrpe1-7/+7
helped to find out if the default route was configured by dhclient. Check if the interface connected to the default route is in the dhcp interface group which accomplishes the same functionality. With feedback from and OK krw@
2017-12-22If we use the cookie-based interrupt API on sun4v, whe shouldn't put thekettenis3-22/+22
interrupts in the lookup table. On machines like the Oracle T7-2 this would make the code believe that there is interrupt sharing, but since we bypass intr_list_handler() when using the cookie-based interrupt API, we wouldn't properly acknowledge the interrupt. This fixes the last remaining problem with interrupts on the Oracle T7-2.
2017-12-221. Use unfiltered deltas for scrolling. 2. (Re-)Simplify the edge areabru1-74/+63
setup.
2017-12-22Do not try to set default value on user options (they don't have one),nicm1-2/+4
from Charles Howard in GitHub issue 1161.
2017-12-22Remove duplicate WheelUp/WheelDown entries in list, GitHub issue 1184.nicm1-4/+4
2017-12-21Add some comments what the tests are doing.bluhm13-16/+50
2017-12-21Expand u_short and u_int to unsigned short and unsigned intmillert1-4/+4
respectively to avoid compilation errors when one of the POSIX or X/OPEN version macros is defined. Also sync the field descriptions with kqueue.2. OK deraadt@
2017-12-21typo;jmc1-3/+3
2017-12-21Adopt comments to previous changerpe1-5/+3
2017-12-21Stop creating a dhclient.conf in the install script, nowkrw1-12/+4
that 'send host-name' is the default behaviour for dhclient. ok rpe@
2017-12-21Call if_start() directly to send the EAPOL key.mpi1-3/+8
Using if_enqueue() here, from interrupt context, might result in the packet beeing enqueued, incorrectly encrypted, on the TX ring. This race has been recently exposed by the re-introduction of the TX mitigation. It exists because the net80211 stack sets IEEE80211_NODE_TXPROT on the node while processing the 3rd message, assuming the answer has already been transmitted. However a CPU returns from if_enqueue() it cannot assume that the send queue is empty. So call if_start() to flush this queue. Encrypting the 4th message of the 4way handshake with the new key breaks WPA handshake as found the hardway by anton@. Race analysed by dlg@, a lot of net80211 inputs and suggetions from stsp@. ok stsp@, dlg@
2017-12-21Add an -i option for case insensitive comparison of lines.tb2-10/+17
From Claus Assmann with minor tweaks by me. ok millert
2017-12-21Two width specifiers changed from %02 to %0 in previous. Change them back.tb1-2/+2
ok deraadt
2017-12-21Do not use %hx for chars, ok kettenisderaadt1-3/+3
2017-12-21another libssh casualtydjm1-11/+21
2017-12-21Close the right file descriptor and clean up the tls context in aldap_close().jmatthew1-7/+7
ok zhuk@ deraadt@
2017-12-21drivers might want to call ifiq_barrier.dlg1-1/+2
2017-12-21add some ifq and ifiq barriers in ixl_down.dlg1-4/+5
move rxfill in ixl_up so the qtail is only written once.
2017-12-21missed one (unbreak after ssh/lib removal)djm1-1/+7
2017-12-21now that we have multiple input queues in ifnet structs, use them.dlg1-26/+24
for now we still only have one set of tx and rx rings, but sets us up to bump that number.
2017-12-21prototype if_attach_iqueues so drivers can configure multiple iqs.dlg1-1/+2
2017-12-21unbreak unit tests after removal of src/usr.bin/ssh/libdjm10-27/+77
2017-12-21Implement missing bits to support lazy binding. Note that the codekettenis2-46/+38
deliberately does not save the floating-point argument registers before calling _dl_bind(). Doing so would force an FPU context switch upon every function call through the PLT. But since we compile ld.so with -march=armv8-a+nofp+nosimd this is safe since nothing in the _dl_bind() codepath uses he FPU registers. ok guenther@, drahn@
2017-12-21revert stricter key type / signature type checking in userauth path;djm3-5/+12
too much software generates inconsistent messages, so we need a better plan.
2017-12-20Skip this regress test if no remote test machine is specified asbluhm1-2/+3
environment variable.
2017-12-20Fix adding and removing files with git-style a/ b/ diffs: only skiptb1-3/+5
six letters if they actually match "--- a/" and "+++ b/" instead of laxer checks. ok tom, tedu, millert
2017-12-20Always 'send' host-name, rather than relying on dhclient.conf to askkrw1-1/+38
for it. Removes the need to install a dhclient.conf for a default configuration. Install script simplification to follow. General enthusiasm. ok millert@ benno@ tom@ ian@
2017-12-20Two background scan fixes for iwn(4) (4965 devices only):stsp1-6/+19
1) Use only one antenna while scanning on 5GHz. Fixes very low RSSI values. 2) During a background scan while associated to a 5GHz AP, send probe requests on 2GHz channels with an OFDM rate (6Mbps) because the buggy firmware does not like sending with a CCK rate (1Mbps) in this state. CCK rates are not valid for 5GHz, which could explain this firmware bug. Taken from FreeBSD r222679. jca@ tested and confirmed the first problem but lacks a 5GHz access point to associate to and test the second one with. I am going to *blindly trust* FreeBSD on the second one! It is not a big deal if it doesn't actually apply to our firmware version as the change itself is rather inconsequential in practice. And 4965 hardware is quite rare nowadays. ok jca@
2017-12-20Sync C mutex implementations.mpi4-32/+62
ok kettenis@
2017-12-20Switch x86 architectures to the common C mutex implementation.mpi5-6/+307
This is a step towards MI mutexes. ok kettenis@
2017-12-20Add a sanity check on the number of chunks beingkrw1-1/+8
assembled into a volume, to enure the on-disk metadata and the in-memory metadata agree.
2017-12-19More NUL (not NULL) checks.zhuk2-5/+5
With support from guenther@ and millert@; final okay espie@
2017-12-19Pass calibrated TSC frequency to vmm(4) guests. On machines where TSCpatrick1-3/+21
cannot be calculated from the CPUID register, because the CPU does not support it, but can be calibrated from another timer, the vmm(4) guest doesn't have a chance to read or calibrate its own TSC frequency since it has no access to a precise enough time counter. In that case, fake the existence of the register and supply our calibrated TSC frequency. mlarkin@ tells me this also greatly helps Linux guests. ok mlarkin@