OpenBSD cvs log

created 2019-05-14T11:04:59Z
begin 2019-05-10T00:00:00Z
end 2019-05-11T00:00:00Z
path src/sys
commits 17

date 2019-05-10T02:05:35Z
author guenther
files src/sys/dev/usb/xhcireg.h log diff annotate
message Add more flags to the debug bitmask

ok mpi@

date 2019-05-10T02:16:50Z
author beck
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Check for nowait failed *after* the wakeup point, not before.
ok guenther@

date 2019-05-10T02:33:57Z
author beck
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message simplify logic after wakeup since this variable is only manipulated
under lock
ok guenther@

date 2019-05-10T12:41:30Z
author claudio
files src/sys/net/if_bridge.c log diff annotate
message Move bridge_filterrule() before doing the mbuf copy. Fixes a memory leak
when multiple interfaces do MAC filtering.
Memory leak reported by Daniel Levai
With and OK mpi@

date 2019-05-10T12:49:58Z
author claudio
files src/sys/stand/boot/cmd.h log diff annotate
message Fix prototype of upgrade(). OK benno@

date 2019-05-10T15:13:38Z
author akoshibe
files src/sys/net/if_switch.c log diff annotate
src/sys/net/if_switch.h log diff annotate
src/sys/net/switchofp.c log diff annotate
message Add port protection support to switch(4). The behavior copies that of
bridge(4), where the SIOCBRDGSIFPROT ioctl can be used to add a port to up
to 31 protected domains. This allows configuration by specifying a list of
IDs to the 'protected' option in ifconfig(8):

# ifconfig switch0 protected pair1 1,2,..

Domain membership is checked for unicast, flooded (broadcast), and
local (host-network-bound, e.g. trunk) traffic.

OK benno@

date 2019-05-10T15:28:45Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message add Intel Atom C3000 ids

date 2019-05-10T15:29:17Z
author jsg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2019-05-10T16:44:36Z
author bcook
files src/sys/dev/ic/bwireg.h log diff annotate
src/sys/dev/pci/if_bwi_pci.c log diff annotate
message Explicitly disable BCM4331 chips present in 2011-2012 Apple Mac systems.

The Mac EFI firmware enables the wireless controller, but does not disable it,
so it continues to receive packets and signal interrupts. This
was originally seen as an interrupt storm that consumes about 50% of
CPU0 on affected machines. The issue was originally discovered in 2012 by
Matthew Garret with a partial fix in Grub, then Lukas Wunner added a fix for
the Linux kernel in 2016.

This piggy-backs on the most-related driver (bwi) for the purpose of detection
and mapping the control registers, but does not actually register the driver if
the affected chip is detected.

See this archived discussion for further analysis of the bug:

ok kettenis stsp

date 2019-05-10T18:20:41Z
author patrick
files src/sys/dev/fdt/ehci_fdt.c log diff annotate
message Add a fallback to ehci(4)'s phy init code so that when there
is no compatible phy it tries to enable the VBus using the
phy-supply property. Makes the USB ports on the RockPro64

ok kettenis@

date 2019-05-10T18:30:15Z
author patrick
files src/sys/net80211/ieee80211_output.c log diff annotate
message On the transmit path the ethernet and ip headers might not be
in contiguous memory. Taking the pointer to the data and simply
looking at the IP header by adding an offset can lead to an out-
of-bounds access. Make the ieee80211 classify function copy the
ethernet and ip header into stack variables to fix it.

Fixes a panic for florian@
Discussed with claudio@
ok stsp@

date 2019-05-10T18:35:00Z
author kettenis
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message Fix idr_get_next() such that idr_for_each_entry() actually works.

ok jsg@

date 2019-05-10T18:53:13Z
author cheloha
files src/sys/kern/kern_tc.c log diff annotate
message Reduce number of timehands from to just two.

Reduces the worst-case error for for time values retrieved via the
microtime(9) functions from 10 ticks to 2 ticks. Being interrupted
for over a tick is unlikely but possible.

While here use C99 initializers.

From FreeBSD r303383.

ok mpi@

date 2019-05-10T19:38:52Z
author claudio
files src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/vers.c log diff annotate
message Add bsd.upgrade support to sparc64 bootloader.
OK kettenis@ deraadt@

date 2019-05-10T20:17:41Z
author pd
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm: handle some unhandled exits for SVM

There were some exits for instructions that were unhandled and caused the guest
to terminate if it tried to execute them. We now inject a #ud for those. Also
intercept and #ud RDTSCP and INVLPGA instructions.

ok mlarkin@

date 2019-05-10T21:20:42Z
author mlarkin
files src/sys/arch/amd64/stand/efiboot/Makefile.common log diff annotate
src/sys/arch/amd64/stand/efiboot/cmd_i386.c log diff annotate
src/sys/arch/amd64/stand/efiboot/dev_i386.c log diff annotate
src/sys/arch/amd64/stand/efiboot/diskprobe.c log diff annotate
src/sys/arch/amd64/stand/efiboot/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/efiboot/machdep.c log diff annotate
src/sys/arch/amd64/stand/efiboot/memprobe.c log diff annotate
message Disentangle #ifdef EFIBOOT.

Separate out files used by both BIOS and EFI boot modes. These files
had many #ifdef EFIBOOT code paths that make it difficult to move forward
with changes needed to support random base VA linked kernels.

ok deraadt@

date 2019-05-10T21:20:43Z
author mlarkin
files src/sys/arch/amd64/stand/libsa/cmd_i386.c log diff annotate
src/sys/arch/amd64/stand/libsa/dev_i386.c log diff annotate
src/sys/arch/amd64/stand/libsa/diskprobe.c log diff annotate
src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/libsa/machdep.c log diff annotate
src/sys/arch/amd64/stand/libsa/memprobe.c log diff annotate
message Disentangle #ifdef EFIBOOT.

Separate out files used by both BIOS and EFI boot modes. These files
had many #ifdef EFIBOOT code paths that make it difficult to move forward
with changes needed to support random base VA linked kernels.

ok deraadt@