summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/src/algorithm.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-02-03Revert r1.38 as it introduces use of a stack value post function return.jsing1-50/+86
The deduplication is also not quite right - this will be revisited in due course.
2019-02-03Use malloc() and memcpy() the test X25519 x25519_peer_public value.jsing1-3/+6
Otherwise, if tlsext_keyshare_server_build() fails we call free with a pointer to static memory and bad things happen. Reported by bcook@
2019-02-03Add mvgicp(4), a driver for the Marvell extension to the GIC thatpatrick5-69/+333
allows triggering SPI interrupts by doing memory transactions. This was already partially implemented in mvicu(4) and is now outsourced into its own driver since we need better initialization when booting using u-boot. Also implement new and legacy bindings in mvicu(4), relying on the new mvgicp(4) driver. ok kettenis@
2019-02-03give the fake latin proverb "per aspera ad astra" in the moreschwarze1-1/+1
commonly used and metrically and logically more pleasant word order, and fix the wrong translation; translation error reported by Alessandro de Laurenzis on tech@; OK pascal@ jmc@
2019-02-03Add some fixes from upstream to the code that parses .eh_frame sectionskettenis2-190/+344
in order the generate .eh_frame_hdr. In particular, don't rely on FDEs pointing to the last CIE that was seen. Fixes exception handling issues with clang++ on platforms that don't use ld.lld as the default linker. ok deraadt@
2019-02-03On SPARC, the return address is %o7 + 8.kettenis2-5/+5
ok guenther@, deraadt@, patrick@, dlg@, visa@
2019-02-03Captive portal detection for unwind(8).florian17-70/+1631
2019-02-03enable -msave-args when building with clang.dlg1-2/+2
this allows us to provide actual arguments in functions in ddb traces. deraadt@ helped me figure out that a new clang has been in snaps for days now, so it's easy for people to get a new compiler if they're building current.
2019-02-03Always refault if relocking maps fails after IO. This fixes a regressionvisa1-1/+3
introduced with __MAP_NOFAULT. The regression let uvm_fault() run without proper locking and rechecking of state after map version change if page zero-fill was chosen. OK kettenis@ deraadt@ Reported-by: syzbot+9972088c1026668c6c5c@syzkaller.appspotmail.com
2019-02-03_dl_cerror is trivial on powerpc; just inline the handling into the stubsguenther1-4/+2
based on a diff from miod@
2019-02-03_dl_cerror is trivial on alpha and m88k; just inline the hanlding intoguenther3-14/+6
the stubs noted by miod@
2019-02-03Delete cases in kerntrap() that just jump to the default caseguenther1-10/+1
ok mlarkin@
2019-02-03crank datasize, because mesa is a pigderaadt1-3/+3
2019-02-02Show the routing address selected by "route-to" in "pfctl -s states".yasuoka1-1/+11
ok sthen
2019-02-02Improve stack trace saving on i386:visa1-9/+5
* Replace unnecessary use of db_get_value() with direct access of f_retaddr. The trace function assumes that the chain of frames is good in terms of alignment and content. * Replace the for loop with a while loop and drop the check "frame != NULL" from the loop condition. The check is redundant with the "!INKERNEL(frame)" condition. The code already assumes that the initial frame is valid. * Stop iteration if f_retaddr is a non-kernel address in order to not save a user address at the end of the trace. This additionally fixes a kernel crash that would happen if the user thread had a broken frame pointer. OK mpi@
2019-02-02Improve stack trace saving on amd64:visa1-11/+5
* Replace unnecessary use of db_get_value() with direct access of f_retaddr. The trace function assumes that the chain of frames is good in terms of alignment and content. * Replace the for loop with a while loop and drop the check "frame != NULL" from the loop condition. The check is redundant with the "!INKERNEL(frame)" condition. The code already assumes that the initial frame is valid. * Stop iteration if f_retaddr is a non-kernel address in order to not save a user address at the end of the trace. This additionally fixes a kernel crash that would happen if the user thread had a broken frame pointer. * Fix erroneous skipping of the second stack frame. OK mpi@
2019-02-02An extra test that is known to trigger problems with some versions ofotto3-1/+29
clang using -O0
2019-02-01Properly account wired pages in pmap_randomize_levelmlarkin1-3/+7
This change fixes a regress test failure noticed by bluhm@. ok deraadt
2019-02-01free size for wscons_event; ok deraadt@ visa@anton1-2/+2
2019-02-01Fix regresion that prevented -A0 from working as before.millert3-6/+11
This can be used to disable the default behavior of reporting events for the weekend on a Friday.
2019-02-01Complete athn(4) noisefloor calibration code and enable it.stsp13-58/+241
Update default/min/max noisefloor values to those used by Linux ath9k. Tested by jmc, juanfra, kn, and myself, on 9280 and 9271 devices.
2019-02-01Don't send udp sockets that we failed to open to the frontend,florian1-3/+5
it will crash when it sees a -1 FD. Found the hard way by solene on a box without ::1
2019-02-01syncderaadt1-1/+0
2019-02-01Export per-TDB counters to userland.mpi2-4/+9
This time add the counter extention to SADB_GET's whitelist. ok bluhm@, visa@
2019-02-01Do not silently return if extensions do not match the filters.mpi1-3/+7
ok bluhm@, visa@
2019-02-01Print xhci version in hex, from sc.dying at gmail.mpi1-2/+2
2019-02-01port is in network byte orderflorian1-5/+5
2019-02-01make m_pullup use the first mbuf with data to measure alignment.dlg1-44/+65
this fixes an issue found by a regress test on sparc64 by claudio, and between us took about half a day of work to understand and fix at a2k19. ok claudio@
2019-02-01fix comments and clean up whitespacebenno1-38/+12
ok florian@
2019-02-01if not all challenges were validated, retry again.benno1-14/+25
Found and fix suggested by "Thomas L.", tom AT longshine AT web DOT de, Thanks! ok florian@
2019-02-01make it easier to ignore incompatible device and test case combinationsanton1-4/+6
2019-02-01In wskbdclose(), use the same logic as in wskbdopen() to determine ifanton1-2/+3
the device was opened in write-only mode. Relying on me_evar being NULL does not work if the wskbd device was opened first followed by opening a wsmux device. Closing the wskbd device first at this stage would cause the wscons_event queue inherited from the wsmux device to be freed. This in turn could cause a panic if an ioctl(WSMUXIO_INJECTEVENT) command is issued to the wsmux device. ok deraadt@ visa@ Reported-by: syzbot+ed88256423ae8d882b8b@syzkaller.appspotmail.com
2019-02-01update currency exchange rates;jmc1-38/+38
2019-02-01fix up calculation of our physical function id, making the second portjmatthew1-4/+1
on dual port cards work much better. ok dlg@
2019-02-01add libelf from elftoolchain r3669jsg118-0/+17766
A 2 clause BSD licensed implementation of the SVR4 ELF API also implemented by mr511.de libelf (devel/libelf in ports) and elfutils. It is being added to base to allow Mesa to use it in future. shlib major is higher than devel/libelf and pkg-config version is 0.8.2 to pass a glib2 configure test so this can replace the use of devel/libelf in ports.
2019-02-01Save connection timeout and restore for 2nd and subsequent attempts,dtucker1-2/+3
preventing them from having no timeout. bz#2918, ok djm@
2019-02-01Fix gdb can handle prologues which has the retguard and teach gdb thatyasuoka2-9/+40
alltraps_kern() is a trap function. Also initialize the struct amd64_frame_cache in amd64_skip_prologue() which was missing. Original diff from IIJ. ok mpi mortimer kettenis deraadt
2019-02-01the sunxi platform abstraction was removed in 2016jsg3-56/+5
2019-02-01correct Cd for fdtjsg1-3/+3
2019-02-01correct Cd for fdtjsg1-3/+3
2019-02-01Fix lost interrupts in fec(4). Apparently the tick that talks to thepatrick1-3/+4
phy to check the media status did not only ack the MII interrupt, but also all the others. Thus it could happen that the TX completion was not seen by the interrupt handler, leading to full TX queues. Also, the fec(4) interrupt handler acked more than it handles, thus possibly also acking the MII interrupt. Found with bluhm@ on his new arm64 regression setup. ok bluhm@
2019-01-31Bump version number to be able to distinguish bootloaders with softraidkettenis1-2/+2
support.
2019-01-31Relax overzealous PATH_INFO validation.schwarze1-2/+2
URIs like https://man.openbsd.org/OpenBSD-2.2/cat1/cat.0 are still required to work because they result from apropos searches for old releases (up to 5.0) which used to install preformatted manual pages. Regression reported by jj@.
2019-01-31Map SHT_LLVM_LINKER_OPTIONS to stringkettenis1-0/+1
ok patrick@, naddy@
2019-01-31Ignore LLVM 7's LINKER_OPTIONS section.kettenis2-0/+2
ok patrick@, naddy@
2019-01-31Instead of skipping the text mmap test, do a non fixed mmap in thisbluhm3-14/+31
case. This gives us another test case. Make error messages more verbose. Fix white spaces.
2019-01-31matthew noticed that some clocks use tfind() which is not mpsafe.tedu1-10/+20
add locking in clock_gettime where needed. ok cheloha matthew
2019-01-31Make divert-packet port accept any port specificationkn1-5/+6
Contrary to other rules accepting a single port, this one only works with numerical values. Fix it by simply using the proper grammar. Port ranges are not accepted, but an error message on a range without start was missing in general, so add it while here. OK bluhm
2019-01-31Remove a log statement used for debugsolene1-2/+1
ok florian@
2019-01-31Fix compilation of amd64 kernel when optimization is disabled.millert7-45/+49
C99 inline semantics resulted in undefined symbols. OK deraadt@ mpi@ dlg@