summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-12Don't bother ucode updates in ramdisk. We don't have the files....Theo de Raadt
ok patrick
2018-01-12apostrophe fix;Jason McIntyre
2018-01-12syncTheo de Raadt
2018-01-12Do not collect top-bit-set characters in case they need to be replaced.Nicholas Marriott
2018-01-12Simplify character replacement on non-UTF-8 terminals and make a commonNicholas Marriott
function.
2018-01-12Simplify UTF-8 states down into one state.Nicholas Marriott
2018-01-12Use correct size in allocarray() call.Mark Kettenis
ok patrick@
2018-01-12Runtime services may (and do) use device mappings on some UEFI implementations.Mark Kettenis
Skip these mappings during the remap-pahse as they are likely to be in a different 512G bloch as memory and SetVirtualAddressMap() shouldn't need them. But do assign a new virtual address and let efi(4) create a mapping. Add a PMAP_DEVICE flag such that pmap_enter() can continue to be used to create these mappings. ok patrick@
2018-01-12Some more tweaks to NOTESJeremie Courreges-Anglas
- it's safe to assume that there's no plan to write "an `agent' to execute unreadable/setuid/setgid shell scripts" - the BUG-REPORTS file has been removed - update the entry for FPATH, ksh93 also documents the described behavior - kill entry about octal and hex notation in arithmetic expressions (supported) - typos Feedback from Klemens Nanni
2018-01-12Fix tyopsJeremie Courreges-Anglas
2018-01-12Add tests for [[:foo:]] character classes in globsJeremie Courreges-Anglas
2018-01-12Add basic tests for octal and hex notation in arithmetic expansionsJeremie Courreges-Anglas
POSIX requires only decimal, octal and hex, tests for the $((x#number)) notation could be useful too.
2018-01-12Constrain alloc_pages() to the dma_constraint range. Avoids aJonathan Gray
"Non dma-reachable buffer" panic when trying to use it from ttm code on a machine with 8GB of physmem and a radeon. ok kettenis@ dlg@ visa@ deraadt@
2018-01-12Correctly iterate over all extended signatures.Patrick Wildt
Found by markus@ With sf@
2018-01-12Improve error message if creating socket parent directory fails, fromNicholas Marriott
Thomas Adam for GitHub issue 1215.
2018-01-12Improve logging for layout cells.Nicholas Marriott
2018-01-12Unify <machine/mutex.h> a bit further.Martin Pieuchot
`mtx_owner' becomes the first field of 'struct mutex' on i386/amd64/arm64. ok visa@
2018-01-12IBRS -> IBRS,IBPB in identifycpu linesMike Larkin
2018-01-12revert previous changes to enable dwiic on Dell precision as it seemsMike Larkin
to cause issues on Dell XPS 15 9560. Will investigate and recommit later if a better fix can be found.
2018-01-12Check that mpls has been enabled on the input interface, lost in rev 1.66Jeremie Courreges-Anglas
While here fix under MPLS_DEBUG. ok dlg@
2018-01-12Align cases in conversion switch vertically. Normalize logic inside casesTheo Buehler
and drop an unnecessary test for intdata in '%c'. reads ok to halex, ok millert
2018-01-12Adjust references for sysctl(3) to sysctl(2)Theo de Raadt
2018-01-12sysctl(3) can now be renamed to sysctl(2)Theo de Raadt
2018-01-12move gif_encap from gif_output to gif_start.David Gwynne
the main win is the simplification of bpf in the ouput path. ok visa@
2018-01-12document bpfattach and bpfdetach.David Gwynne
2018-01-12restrict carp to configuring ethernet interfaces as carpdevs.David Gwynne
previously the driver only cared that a carp interface wasnt configured as a carpdev. because the code only really works on ethernet, it makes sense to restrict it. ok visa@ mpi@
2018-01-11Improve the handling of coordinate inputs and filters.Ulf Brosziewski
Single-touch and multi-touch coordinate inputs are treated more uniformly, and the hysteresis filters have a more consistent implementation. If possible, pointer control will be assigned to touches with coordinate updates that pass the default hysteresis filter (the function has been moved to wsmouse.c). The "strong" variant of hysteresis has been improved, the new version won't double the threshold when a movement changes the orientation on an axis. There is an additional change in wstpad_configure, which ensures that a zero size disables an edge area even if the coordinate limits are misconfigured.
2018-01-11cast the result of the ternary operators in __swapXX to the right typeDavid Gwynne
ok kettenis@ let's try it deraadt@
2018-01-11CommentsRobert Peichaer
2018-01-11Update the Intel microcode once the root filesystem has been mounted.Patrick Wildt
This depends on the intel-firmware package that contains newer Intel microcode which will be installed automatically by fw_update(1). The update should happen much earlier since updating the microcode can add or remove not only feature flags but also whole features. For now only update feature flags that are relevant to Spectre. Initial diff from sf@ Tested by bluhm@ ok deraadt@
2018-01-11Install the intel firmware package which contains microcode updatesPatrick Wildt
if we match Intel CPUs in dmesg(8). "do it do it" deraadt@
2018-01-11Create a second hash that maps all possible drivers to a default regexPatrick Wildt
to match in dmesg(8). This is helpful if we want to install firmware depending on dmesg(8) output that does not follow the typical driver scheme. From espie@ "do it do it" deraadt@
2018-01-11- change [] tests to [[]]Robert Peichaer
- change -a, -o to &&, || inside [[]] - remove unecessary quoting inside [[]] - remove X"" constructs inside [[]] - remove \ (line continuation) in case of &&, || and pipes - replace backticks with $() discussed with and OK aja@ OK tb
2018-01-11Change the shebang line from /bin/sh to /bin/ksh in all base rc.dRobert Peichaer
daemon scripts. discussed with and OK aja@ OK tb
2018-01-11Extract the control channel number from the chanspec information andPatrick Wildt
apply the channel to the node, like iwm(4) does, when supplying the scan response to the net80211 stack. Our stack uses this information for node selection so it's elementary for it to be correct. Tested by jcs@
2018-01-11fix parsing of long TXT records, this prevents 'smtpctl spf walk' fromGilles Chehade
producing bogus entries with some SPF records. ok ajacoutot@
2018-01-11Postpone secondary CPUs until after mounthook activities. This isPatrick Wildt
useful for loading CPU microcode from the disk before the CPUs are let go. Tested by visa@ on sgi, loongson and octeon "don't see immediate issues" kettenis@ ok deraadt@
2018-01-11The PCI bwfm(4) chips have no TX rings in the traditional sense, as onPatrick Wildt
the actual rings we only share messages. Sending a TX packet means putting a message on the ring which contains a pktid (which for us maps to an mbuf) and the physical address of the mbuf. On jcs@'s macbook he seems to run out of TX pktids pretty quickly during a speedtest. This would mean that there are 2048 TX packets in flight that we either want to send out or that have not been "acked" by the firmware yet. Either way, recover from that situation when we hit that arbitrary limit by restarting the queue after we free'd a packet from the TX pktid list. Tested by jcs@
2018-01-11Advance data pointer after exporting SA type to userland. OtherwiseAlexander Bluhm
ipsecctl(8) may display bundled SA incorrectly. from markus@
2018-01-11Add size for free.Visa Hankala
OK mpi@
2018-01-11Remove arbitary length limits for -s, -b and -w. Based on a diff from kshe.Theo Buehler
schwarze suggested using asprintf, which led to a substantial cleanup. ok schwarze, help & ok millert
2018-01-11syncKevin Lo
2018-01-11Add support for Huawei E3372.Kevin Lo
ok phessler@
2018-01-11Add tests for incoming route-to and outgoing reply-to rules. DisableAlexander Bluhm
the cases that currently fail.
2018-01-11carp_ourether gets passed the parent interface, not the carp interface.David Gwynne
2018-01-10get rid of struct carp_if by moving the srpl into struct ifnet if_carp.David Gwynne
currently carp uses a struct carp_if to hold an srp list head, which is accessed by both if_carp in struct ifnet, and via the if input handlers list. this gets rid of some indirection by making if_carp itself the list head, rather than a pointer to the list head via a struct carp_if. it also makes accessing the list consistent by only using if_carp to get to it. ok mpi@
2018-01-10Implement FUCKWIT for arm64; unmap the kernel almost entirely while userlandMark Kettenis
is running. This provides protection against meltown on cores that are vilnerable (just Cortex-A75 so far) but also seems to be an essential to protect against spectre-like attacks against the kernel. This implementation only exposes a single treampoline page that does not contain any kernel virtual addresses and also hides the real virtual address of the exception vectors, which helps on cores vulnerable to "variant 3a" (Cortex-A57, Cortex-A72). The implementation is inspired by the work done by Will Deacon for Linux, but there are no knobs to turn it off. The overhead is fairly limited: around 3-4% slowdown on Cortex-A57. ok patrick@, deraadt@
2018-01-10Mark sosplice task mp safe, do not grab kernel lock for tcp output.Alexander Bluhm
OK mpi@
2018-01-10Attach bwfm to the Broadcom 4350 found in the 2017 MacBook.Joshua Stein
Easily handles >150Mbps transfers through a 5Ghz AP. ok patrick (Committed via bwfm0, of course)
2018-01-10regenJoshua Stein