summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-02-01add libelf from elftoolchain r3669Jonathan Gray
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,Darren Tucker
preventing them from having no timeout. bz#2918, ok djm@
2019-02-01Fix gdb can handle prologues which has the retguard and teach gdb thatYASUOKA Masahiko
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 2016Jonathan Gray
2019-02-01correct Cd for fdtJonathan Gray
2019-02-01correct Cd for fdtJonathan Gray
2019-02-01Fix lost interrupts in fec(4). Apparently the tick that talks to thePatrick Wildt
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 softraidMark Kettenis
support.
2004-05-21GDB 6.1 (excluding .info files)Mark Kettenis
2019-01-31Relax overzealous PATH_INFO validation.Ingo Schwarze
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 stringMark Kettenis
ok patrick@, naddy@
2019-01-31Ignore LLVM 7's LINKER_OPTIONS section.Mark Kettenis
ok patrick@, naddy@
2019-01-31Instead of skipping the text mmap test, do a non fixed mmap in thisAlexander Bluhm
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.Ted Unangst
add locking in clock_gettime where needed. ok cheloha matthew
2019-01-31Make divert-packet port accept any port specificationkn
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 debugsolene
ok florian@
2019-01-31Fix compilation of amd64 kernel when optimization is disabled.Todd C. Miller
C99 inline semantics resulted in undefined symbols. OK deraadt@ mpi@ dlg@
2019-01-31Since resetting of offsets works quite differently in man(7) and mdoc(7),Ingo Schwarze
test table centering in an mdoc(7) document as well. Related to tbl_term.c rev. 1.55.
2019-01-31Fix tbl(7) centering in mdoc(7) documents.Ingo Schwarze
Since resetting of offsets works quite differently in the mdoc(7) and man(7) formatters, the tbl(7) formatter needs to save the global offset on entry and restore it on exit. The additional indentation needed for table centering has to be added to its own offset variable and applied to each line of the table, rather than only to the first. Bug found by bentley@ in emulators/fceux(6).
2019-01-31make struct chng.status a enum for readability.Sebastian Benoit
ok florian@
2019-01-31Implement booting from softraid on arm64. This consists of creating aPatrick Wildt
list of available block devices, so we can also boot from another block device than the one that efiboot was loaded from. Softraid will then create a list of volumes by checking the partition table for RAID and matching softraid metadata. If efiboot was loaded from the same physical drive as a softraid volume, it will use the soft- raid volume as boot device and it will ask you to unlock it. The UUID and key of that boot volume will be passed as FDT properties to the kernel. Those FDT properties will be zeroed explicitly by the kernel after they have been passed to the softraid stack. ok kettenis@
2019-01-31restrict commands reload and log to root onlysolene
tweaks and ok florian@
2019-01-31Enable IQ/ADC calibration in the athn(4) driver.Stefan Sperling
Code for this was already present, it was just not being called yet. Tested on AR9280 and AR9271 by jmc@, kevlo@, jmatthew@, juanfra@, and myself.
2015-01-29reorg tbl(7) test suiteIngo Schwarze
2019-01-31thinko, from Scott ChelohaMarc Espie
2019-01-31unwrap a line introduced in previous.Theo Buehler
2019-01-31remove remnant of jackportTed Unangst
2019-01-31tc_setclock: Don't rewind the system uptime during resume/unhibernate.cheloha
When we come back from suspend/hibernate the BIOS/firmware/whatever can hand us *any* TOD, so we need to check that the given TOD doesn't set our boot offset backwards, breaking the monotonicity of e.g. CLOCK_MONOTONIC. This is trivial to do from the BIOS on most PCs before unhibernating. There might be other ways it can happen, accidentally or otherwise. This is a bit messy but it can be made prettier later with a "bintimecmp" macro or something like that. Problem confirmed by jmatthew@. "you are very likely right" deraadt@
2019-01-31use "sc" as the name of the softc variable in the ioctl code too.David Gwynne
while there, assign int when declaring the sc variable so the ioctl paths do less.
2019-01-31convert fgetln to getline. this improves portability and sets a goodTed Unangst
better example for other code to follow. in the common case, grep uses mmap anyway (so no functional change). despite fgetln doing sneaky things with stdio internals, preliminary analysis by lauri suggests this may actually reduce the number of allocations. from Lauri Tirkkonen.
2019-01-30missed in previous revert, function not called anymoreGilles Chehade
2019-01-30revert previous commit, i wasn't happy with it and it probably came from aGilles Chehade
misunderstanding.
2019-01-30consistently talk about domain key; ok bennoJason McIntyre
2019-01-30Add authors for public domain sntrup4591761 code;Markus Friedl
confirmed by Daniel J. Bernstein
2019-01-30Replace hand rolled linked list with TAILQ. All made possible by the recentanton
introduction of struct lockf_state. ok bluhm@ visa@
2019-01-30Correct handling of TLS sigalgs extension for TLSv1.0/TLSv1.1.Joel Sing
When operating as a TLSv1.0 or TLSv1.1 server, we still have to parse the TLS sigalgs extension if presented by the client (which might be TLSv1.2 capable), rather than treating its presence as an error. While here, remove future version dependence issues by avoiding explicit version equality checks. Issue reported by bluhm@. ok bluhm@ tb@
2019-01-30Directories need to go into the base set.Florian Obser
Problem spotted by nigel OK deraadt
2019-01-30don't be too strict with .forward permissions, it's ok to process it if theGilles Chehade
group has write access, it's not ok if the world has write access. ok eric@
2019-01-30fix parsing of imcomplete dhclient.lease files, initialize epoch to 0.Sebastian Benoit
ok florian@
2019-01-30check that ips in the forwarder {} sections are indeed ips.Sebastian Benoit
ok florian@
2019-01-30remove not needed includes in uw_parse.ySebastian Benoit
add some to unwind.h clean up some whitespace. ok florian@
2019-01-30Make bwfm(4) query firmware for RSSI levels and current transmit rate whenStefan Sperling
ifconfig asks for such information. ok patrick@
2019-01-30Document that we now have support for multiple -p and -u flags.Martijn van Duren
Triggered by Marcus MERIGHI Input and OK jmc@
2019-01-30Use ' and " instead of archaically considering ` a left quote.Anthony J. Bentley
ok deraadt@
2019-01-30Check ferror(3) on the right stream.Sunil Nimmagadda
Ok gilles@
2019-01-30implement -msave-args in clang/llvm, like the sun did for gccDavid Gwynne
this is a bit different to gcc as gcc likes to use movs to move stuff on and off the stack, and directly updates the stack pointers with add and sub instructions. llvm prefers to use push and pop instructions, is a lot more careful about keeping track of how much stuff is currently on the stack, and generally pops the frame pointer rather than do maths on it. -msave-args adds a bunch of pushes as the first thing a function prologue does. to keep the stack aligned, if there's an odd number of arguments to the function it pushes the first one again to put the frame back on a 16 byte boundary. to undo the pushes the frame pointer needs to be updated in function epilogues. clang emits a series of pops to fix up the registers on the way out, but popping saved arguments is a waste of time and harmful to actual data in the function. rather than add an offset to the stack pointer, -msave-args emits a leaveq operation to fix up the frame again. leaveq is effectively mov rbp,rsp; pop rbp, and is a single byte, meaning there's less potential for gadgets compared to a direct add to rsp, or an explicit mov rbp,rsp. the only thing missing compared to the gcc implementation is adding the SUN_amd64_parmdump dwarf flag to affected functions. if someone can tell me how to add that from the frame lowering code, let me know. when enabled in kernel builds again, this will provide useful arguments in ddb stack traces again.
2019-01-30use MPLS_SHIM2LABEL and MPLS_LABEL2SHIMDavid Gwynne
2019-01-30add some macros to help turn labels into shims and back again.David Gwynne
2019-01-30dont store the unit when creating the interface, it's never usedDavid Gwynne
2019-01-29check the result of rtalloc with rtisvalid instead of a compare with NULLDavid Gwynne
based on advice seen from mpi@