OpenBSD cvs log

created 2021-05-23T13:31:01Z
begin 2021-05-18T00:00:00Z
end 2021-05-19T00:00:00Z
path src/sys
commits 13

date 2021-05-18T00:05:20Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm(4): add more specific error messages for vm-entry failures

To aid vmx debugging, specify if the error was related to vmresume
or vmlaunch. For vm-entry failures due to failed checks, decode the
errors per the SDM Vol. 3C 26.8.

date 2021-05-18T08:10:45Z
author stsp
files src/sys/net80211/ieee80211_input.c log diff annotate
message Drop fragmented 802.11 frames.

Fragmented frames were never of any practical use to us anyway, given that
our net80211 stack does not (yet?) re-assemble them.

Counter-measure against attacks where an arbitrary packet is injected in a
fragment with attacker-controlled content (via an AP which supports fragments).
See https://papers.mathyvanhoef.com/usenix2021.pdf
Section 6.8 "Treating fragments as full frames"

ok mpi@

date 2021-05-18T08:16:11Z
author kettenis
files src/sys/dev/pci/pcidevs log diff annotate
message Add Quectel EM120R-GL and Samsung PM9A1.

ok deraadt@, jsg@

date 2021-05-18T08:16:50Z
author kettenis
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2021-05-18T09:14:49Z
author kettenis
files src/sys/arch/riscv64/include/cpufunc.h log diff annotate
src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message Remove the no-op instruction cache flush/wb/inv operations and replace them
with a FENCE.I instruction which does exactly what we need to synchronize
the I-Cache with the D-Cache.

ok mlarkin@, jsg@

date 2021-05-18T10:02:00Z
author ratchov
files src/sys/dev/usb/uaudio.c log diff annotate
message Add pre-DMA-write barrier after data is stored to memory

There's already such a barrier in usbd_transfer() code-path, but this
one is called when the frames are queued to the HC ring. The audio
samples are stored in memory by userland later, *after* the frames are
scheduled (but before they are sent on the wire) so a barrier is
needed there. Without this change, the data produced by userland may
stay in the CPU caches and is not "seen" by the HC's DMA engine, in
turn the device plays noise on certain arm64 machines (RPI4, for
instance).

Fix mostly from Luca Castagnini with few tweaks from me. OK patrick@

date 2021-05-18T11:15:14Z
author mvs
files src/sys/kern/uipc_usrreq.c log diff annotate
message Move potential sleeping m_getclr(9) out of `unp_lock' within unp_bind().

ok mpi@

date 2021-05-18T11:39:37Z
author kettenis
files src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
message Move the pciecam stanza back into files.arm64 since armv7 has its own
pciecam(4) implementation hidden away in arch/armv7/vexpress.

Unbreaks armv7 kernel builds.

date 2021-05-18T12:24:12Z
author jsg
files src/sys/arch/riscv64/conf/Makefile.riscv64 log diff annotate
message use ctfstrip instead of strip to add .SUNW_ctf

ok deraadt@ mpi@

date 2021-05-18T12:26:31Z
author deraadt
files src/sys/arch/riscv64/riscv64/pmap.c log diff annotate
message panic does not require a \n at the end. When one is provided, it looks wrong.

date 2021-05-18T14:23:03Z
author kevlo
files src/sys/dev/usb/if_umb.c log diff annotate
src/sys/dev/usb/umsm.c log diff annotate
src/sys/dev/usb/usbdevs log diff annotate
message Add support for Quectel EC25.
To issue an AT command (AT+QCFG="usbnet",2) to change to MBIM mode.

Tested by Shawn Chiou on rpi4; "of course" deraadt@

date 2021-05-18T14:23:53Z
author kevlo
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2021-05-18T14:25:59Z
author kevlo
files src/sys/arch/arm64/conf/GENERIC log diff annotate
message Enable umb(4).