summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-01Older AMD CPUs that do not support IBRS need an lfence after retAlexander Bluhm
to stop speculation. This seems to be necessary when the branch predictor hits the ret for the first time. In their white paper to mitigate speculation attacks, AMD's retpoline example has an explicit lfence. Adjust our retpoline assembly macro in the kernel. OK guenther@ mortimer@ deraadt@
2021-09-01Remove from0 support. openrsync will not implement all bad ideas thatClaudio Jeker
were added to rsync. from0 is one of those and really not needed. OK job@
2021-09-01Remove assignment of value that is never read.Bob Beck
ok tb@
2021-09-01Fix bad logic I introduced before commit.Claudio Jeker
Found by job@
2021-09-01llvm: Use Component in OpenBSD::getCompilerRT to find librariesGreg Steuck
Clang uses runtime libraries for some advanced features like sanitizers. Different systems have different preferences about file placement. OpenBSD with this change would use this name for ASan: /usr/lib/clang/11.1.0/lib/libclang_rt.asan.a So far, no libraries are shipped, only their eventual location is chosen. Discussed with deraadt@ and kettenis@, OK mortimer@
2021-09-01Remove dead poweroff functions, as they not appear in otherJan Klemkow
serial drivers. ok patrick@
2021-09-01remove manual fiddling with MALLOC_OPTIONS from libc regress testsJasper Lievisse Adriaanse
these options should be set globally (sysctl) when running regress as opposed to having individual tests set it, barring a few specific exceptions. ok bluhm@
2021-09-01Document the http_proxy environment variableClaudio Jeker
2021-09-01quietly attempt mounting of /var/log early, in case someone creates suchTheo de Raadt
a partition to avoid /var overflow issues ok benno beck
2021-09-01Add a regression test to verify that we call the callback in the sameBob Beck
order on success for both the legacy and the new verifier, This avoids problems as seen in perl's regression tests for some of the crazy things net:ssleay does. This is currently marked as expected to fail, it will be expected to succeed after a forthcoming commit from me.
2021-09-01Add http_proxy support to rpki-client's http handler.Claudio Jeker
OK tb@
2021-09-01Imitate how free(3) behaves and make map_clear() works on NULL map.Martin Pieuchot
2021-09-01Always print non-empty map & hist on exit even if there's an END rule.Martin Pieuchot
Match bpftrace behavior.
2021-09-01Support for insert pid/tid/cpu builtins in map/hist.Martin Pieuchot
2021-09-01Fix ssh-rsa fallback for old PuTTY interop tests.Darren Tucker
2021-09-01Add a function to skip remaining tests. Many tests skip tests forDarren Tucker
various reasons but not in a consistent way and don't always clean up, so add that and switch the tests that do that over.
2021-08-31Honour netinet6 when generating symlinks to tags filesKlemens Nanni
"make tags" needs "make links" to have tags available in subdirectories and netinet6 has been missing all the time. OK tb
2021-08-31Make include bsd.prog.mk is supporting PROGS for a while. AllowAlexander Bluhm
multiple programs also in bsd.regress.mk for consistency. OK anton@
2021-08-31Implement suspend/resume for bwfm(4) with PCIe backend. We try to send thePatrick Wildt
device into D3 and do a hot-resume if possible. Otherwise we need to clean up the resources to allow complete HW re-initialization to take place.
2021-08-31regenJonathan Matthew
2021-08-31Add Aquantia USB ethernet devicesJonathan Matthew
from Brad originally
2021-08-31Clean up the list of chips upon detach and mark us uninitialized.Patrick Wildt
2021-08-31Properly deallocate some more structures upon detach, and make sure we'rePatrick Wildt
not considered initialized anymore.
2021-08-31Initialize some struct variables to make sure that upon reinit, caused byPatrick Wildt
a suspend/resume cycle, the values are set to a sane default.
2021-08-31Initialize ring read/write pointers to make sure that upon reinit, causedPatrick Wildt
by a suspend/resume cycle, the pointers are set to a sane default.
2021-08-31Adjust .Bl widthKlemens Nanni
2021-08-31Say autoconf not dhcpKlemens Nanni
Do not abuse "dhcp" to say "DHCP and SLAAC". unwind.conf(5) does so but unwindctl(8) does not; in fact, the latter already has `status autoconf' to Show nameservers learned from dhclient(8), dhcpleased(8) or slaacd(8). Adjust unwind's config manual and internal code accordingly; still accept the old keyword but do not document it. hostname.if(5) already advises for `inet[6] autoconf' instead of `dhcp' and other related daemons don't abuse the word "dhcp" like unwind does. Feedback sthen OK florian
2021-08-31Remove some dead code that was missed in an earlier cleanup andTheo Buehler
fix a stale comment. Found by mortimer with clang 13's -Wunused-but-set-variable. ok beck
2021-08-31Make includes follow style(9).Florian Obser
2021-08-31vmm(4): add ipi for vmclear, unlock kernelDave Voutila
On Intel VMX hosts, when a guest migrates cpus, VMCS state needs to be flushed to physical memory before being reloaded on the new cpu. This diff adds a new ipi to allow a guest resuming on a new cpu to signal to the old that it needs to vmclear. To better surface the potential race conditions, unlock the kernel after handling the ioctl to vmm and simplify the run loops for both vmx and svm. This requires a new vcpu lock. Tested by some on tech@. "go for it" @mlarkin
2021-08-31Only use the i8254 delay code if we are specifically using the i8254 asPatrick Wildt
delay func. Otherwise simply delay for a second to calibrate the LAPIC. Install the lapic delay func only if we were using the i8254 before as delay func. Discussed with the hackroom ok kettenis@
2021-08-31Identify the paravirtual bus earlier, as we need to make sure that we havePatrick Wildt
a working delay func ready before the first occurence of delay(). This is necessary on Hyper-V Gen 2 VMs where we don't use the TSC. Discussed with the hackroom ok kettenis@
2021-08-31When running on Hyper-V, make use of its timecounter as delay func in casePatrick Wildt
we're still using the i8254 for that. On Hyper-V Gen 2 VMs there is no i8254 we can trust, so we need some kind of fallback, especially if there is no TSC either. Discussed with the hackroom ok kettenis@
2021-08-31aplpinctrl(4)Mark Kettenis
2021-08-31Swap lock flags so that LK_EXCLUSIVE is first like in all other places.Claudio Jeker
2021-08-31Do pinctrl stuff.Mark Kettenis
ok patrick@
2021-08-31Add aplpinctrl(4), a driver for the Apple GPIO controller found on M1 SoCs.Mark Kettenis
ok patrick@
2021-08-31memset the pfds array in the poll loop and not only at the start.Claudio Jeker
2021-08-31Use the TSC delay(9) backend earlier on machines where we can. Also useMark Kettenis
the TSC for delays even if there is a skew between the TSCs of the cores as this doesn't matter for delay(9). Gets rid of te unreasonable clock speed reports on Intel Tiget Lake CPUs where the i8254 behaves in weird ways. ok patrick@, deraadt@, mlarkin@
2021-08-31printing the hibernate image size in MB is easier on the eyesTheo de Raadt
ok mlarkin
2021-08-31Add "machine sysregs" command to DDBMike Larkin
From Alex Wilson, Thanks!
2021-08-31Defragment DTLS.Joel Sing
In normal TLS, it is possible for record fragments to be sent that contain one byte of alert or handshake message payload. In this case we have to read and collate multiple message fragments before we can decide what to do with the record. However, in the case of DTLS, one record is effectively one packet and while it is possible to send handshake messages across multiple records/packets, the minimum payload is the DTLS handshake message header (plus one byte of data if the handshake message has a payload) - without this, there is insufficient information available to be able to reassemble the handshake message. Likewise, splitting an alert across multiple DTLS records simply does not work, as we have no way of knowing if we're collating the same alert or two different alerts that we lost half of each from (unfortunately, these details are not really specified in the DTLS RFC). This means that for DTLS we can expect to receive a full alert message (a whole two bytes) or a handshake record with at least the handshake message header (12 bytes). If we receive messages with less than these lengths we discard them and carry on (which is what the DTLS code already does). Remove all of the pointless fragment handling code from DTLS, while also fixing an issue where one case used rr->data instead of the handshake fragment. ok inoguchi@ tb@
2021-08-31Fix use of wrong pointer argument when freeing firmware paging info in iwx(4).Stefan Sperling
Found by mpi@ and gnezdo@ ok gnezdo@
2021-08-31Make "relayctl reload" when agentx enabling is toggled in relayd.conf workMartijn van Duren
consistently. OK benno@
2021-08-31Remove a nonsensical s->version == TLS1_VERSION from DTLS code.Joel Sing
ok inoguchi@ tb@ (as part of a larger diff)
2021-08-31'if' tests.Martin Pieuchot
2021-08-31Basic test, if (no else atm), support with a single statement.Martin Pieuchot
2021-08-31Using suser() instead of doing it manually.Jan Klemkow
ok patrick@
2021-08-31Support storing syscall arguments in a map/hist.Martin Pieuchot
2021-08-31whitespaceTheo Buehler