OpenBSD cvs log

created 2019-02-07T02:58:35Z
begin 2019-01-10T00:00:00Z
end 2019-01-17T00:00:00Z
path src/sys
commits 47

date 2019-01-10T01:16:29Z
author jsg
files src/sys/arch/amd64/amd64/efifb.c log diff annotate
src/sys/arch/amd64/include/efifbvar.h log diff annotate
message add efifb_stolen() to get the size of the efifb framebuffer
suggested by and ok kettenis@

date 2019-01-10T01:20:02Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_ttm.c log diff annotate
message Use efifb_stolen() to prevent radeondrm from using aperture memory
overlapping the framebuffer. Prompted by ring tests failing.
Diagnosed, fix suggested by and ok kettenis@

date 2019-01-10T17:54:11Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message settime: Don't cancel ongoing adjtime(2) until after full permission checks

ok jca@ visa@ guenther@ deraadt@

date 2019-01-10T18:05:43Z
author sf
files src/sys/dev/fdt/virtio_mmio.c log diff annotate
src/sys/dev/pci/virtio_pci.c log diff annotate
src/sys/dev/pv/virtio.c log diff annotate
src/sys/dev/pv/virtiovar.h log diff annotate
message Move some common defines to virtiovar.h

And fix some comments

date 2019-01-10T18:06:56Z
author sf
files src/sys/dev/pv/virtio.c log diff annotate
src/sys/dev/pv/virtiovar.h log diff annotate
message Remove some more code if VIRTIO_DEBUG is 0

date 2019-01-10T18:11:42Z
author sf
files src/sys/dev/pci/virtio_pci.c log diff annotate
src/sys/dev/pci/virtio_pcireg.h log diff annotate
src/sys/dev/pv/virtioreg.h log diff annotate
message Move some PCI-specific defines to a new virtio_pcireg.h file

Also add some virtio 1.0 status and feature bits

date 2019-01-10T18:22:17Z
author sf
files src/sys/dev/pv/virtioreg.h log diff annotate
message Fix previous

It accidentally contained a part of a different diff.

date 2019-01-10T18:35:56Z
author sf
files src/sys/dev/pci/pcidevs log diff annotate
message Add virtio 1.x PCI IDs

Everything above 0x1040 is 1.x only.

Also tweak descriptoin of memory balloon device. There will be a memory
device, too

ok mlarkin@

date 2019-01-10T18:36:53Z
author sf
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen pcidevs*.h

date 2019-01-10T18:50:32Z
author kettenis
files src/sys/dev/acpi/amltypes.h log diff annotate
src/sys/dev/acpi/dsdt.c log diff annotate
message Properly implement (as far as we can) Event()/Signal()/Wait() AML operations.

ok mpi@, tedu@, deraadt@

date 2019-01-10T20:26:34Z
author kettenis
files src/sys/uvm/uvm_glue.c log diff annotate
message Hold a read lock on the map while doing the actual device I/O during in
physio(9) to prevent another thread from unmapping the memory and triggering
an assertion or even corruption random physical memory pages.

ok deraadt@

Should fix:
Reported-by: syzbot+b8e7faf688f8c9d341b1@syzkaller.appspotmail.com
Reported-by: syzbot+b6a9255faa0605669432@syzkaller.appspotmail.com

date 2019-01-10T21:55:26Z
author tedu
files src/sys/uvm/uvm_mmap.c log diff annotate
message Make mincore lie. The nature of shared memory means it can spy on what
another process is doing. We don't want that, so instead have it
always return that memory is in core.
ok deraadt kettenis

date 2019-01-11T06:25:06Z
author mlarkin
files src/sys/arch/amd64/amd64/autoconf.c log diff annotate
src/sys/arch/amd64/amd64/locore0.S log diff annotate
src/sys/arch/amd64/amd64/machdep.c log diff annotate
src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/arch/amd64/include/pmap.h log diff annotate
message Move the placement of pmap_kernel's toplevel PML4 page

This change moves the PML4 for pmap_kernel elsewhere during early boot.
Lower levels of pmap_kernel will be moved in subsequent changes, but there
are other pmap changes coming that need to be integrated first.

In snaps for 3 days, no fallout seen.

ok deraadt and substantial input and help from guenther@

cvs: ----------------------------------------------------------------------

date 2019-01-11T08:00:34Z
author patrick
files src/sys/dev/fdt/imxccm.c log diff annotate
src/sys/dev/fdt/imxccm_clocks.h log diff annotate
message Add support for changing the parent of the PCIe clocks. We will
use this for setting the PCIe clocks to the correct frequency.

ok kettenis@

date 2019-01-11T08:02:19Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/imxsrc.c log diff annotate
message imxsrc(4), a driver for the i.MX System Reset Controller. We will
use this to assert the reset pins for e.g. the PCIe controller.

ok kettenis@

date 2019-01-11T08:03:24Z
author patrick
files src/sys/dev/fdt/dwpcie.c log diff annotate
message Add i.MX8MQ support to dwpcie(4). Since the i.MX8MQ does seem to
use MSI using dwpcie(4) instead of the GIC, MSIs are disabled for
that platform until implemented.

ok kettenis@

date 2019-01-11T17:12:38Z
author kn
files src/sys/dev/pci/if_iwn.c log diff annotate
message Set RUNNING flag when RF switch is enabled

Toggling the hardware kill switch shuts radio power on/off accordingly.
On UP and RUNNING interfaces disabling removes the RUNNING flag,
but enabling back again would leave the flag unset.

Get the interface running when switching it back on iff it's up
to ensure seemless operation without the need for `ifconfig iwn0 up'.

For this, iwn_init_task() will do the right thing so schedule it when
receiving the appropiate interrupt.

Tested on my X230 with
"Intel Centrino Advanced-N 6205" rev 0x34: msi, MIMO 2T2R, MoW

OK stsp who also tested it with
"Intel Centrino Advanced-N 6200" rev 0x35: msi, MIMO 2T2R, MoW

iwm(4) already behaves this way.

date 2019-01-11T18:46:30Z
author deraadt
files src/sys/kern/syscalls.master log diff annotate
src/sys/sys/mman.h log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
src/sys/uvm/uvm_mmap.c log diff annotate
message mincore() is a relic from the past, exposing physical machine information
about shared resources which no program should see. only a few pieces of
software use it, generally poorly thought out. they are being fixed, so
mincore() can be deleted.
ok guenther tedu jca sthen, others

date 2019-01-11T18:52:41Z
author deraadt
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message sync

date 2019-01-12T13:50:52Z
author visa
files src/sys/arch/octeon/dev/octsctl.c log diff annotate
message Attach the AHCI controller bridge driver even if the AHCI controller
node is not present in fdt.

date 2019-01-12T16:11:22Z
author stsp
files src/sys/dev/usb/if_otus.c log diff annotate
message Make the scan loop in otus(4) terminate properly when the interface
is going down. Problem reported by ian@.
ok mpi@ ian@

date 2019-01-12T16:12:10Z
author stsp
files src/sys/dev/usb/if_otus.c log diff annotate
message Fix potential use-after-free if xfer allocation fails when otus(4) attaches.
ok mpi@ ian@

date 2019-01-12T16:59:38Z
author visa
files src/sys/arch/octeon/conf/GENERIC log diff annotate
src/sys/arch/octeon/conf/RAMDISK log diff annotate
src/sys/arch/octeon/conf/files.octeon log diff annotate
src/sys/arch/octeon/dev/octgpio.c log diff annotate
message Add a driver for OCTEON GPIO controller.

date 2019-01-12T19:08:02Z
author kettenis
files src/sys/dev/fdt/sxiccmu_clocks.h log diff annotate
message Add missing OHCI-related clocks.

date 2019-01-12T19:37:16Z
author kettenis
files src/sys/arch/armv7/conf/GENERIC log diff annotate
src/sys/arch/armv7/conf/RAMDISK log diff annotate
message Enable ohci at fdt.

date 2019-01-13T14:27:15Z
author mpi
files src/sys/dev/usb/if_ral.c log diff annotate
src/sys/dev/usb/if_ralreg.h log diff annotate
message Validate that the interface passed to *match() is the expected one
instead of calling usbd_device2interface_handle() during *attach().

ok stsp@

date 2019-01-13T14:30:16Z
author mpi
files src/sys/dev/usb/ubcmtp.c log diff annotate
message Validate the number of expected interfaces in *match() and claim them
during *attach().

This allows us to get rid of two calls to usbd_device2interface_handle()
that could fail later.

ok ratchov@, jcs@

date 2019-01-13T14:31:55Z
author mpi
files src/sys/net/pfkeyv2.c log diff annotate
src/sys/net/pfkeyv2_convert.c log diff annotate
message Fix an off-by-one in pfkeyv2_sysctl_policydumper() and get rid of a
workaround for this bug.

ok visa@

date 2019-01-13T16:38:43Z
author visa
files src/sys/arch/octeon/dev/octmmc.c log diff annotate
message Pass timeout in seconds instead of ticks.

date 2019-01-13T16:45:44Z
author visa
files src/sys/arch/octeon/dev/octmmc.c log diff annotate
message Handle card detect GPIO.

date 2019-01-13T22:57:37Z
author kn
files src/sys/dev/pci/if_iwn.c log diff annotate
message Remove redundant RF switch notice

Toggling the hardware switch already gets communicated through
"iwn0: RF switch: radio disabled" and "iwn0: RF switch: radio enabled"
so stating in between that the transmitter is turned off does not provide
any further information.

iwn_stop() effects the RUNNING flag and controls power, but does not
pull the interface up or down, so adjust the misleading comment while
here.

OK stsp, tested by sashan

date 2019-01-14T03:28:03Z
author jmatthew
files src/sys/dev/usb/usbdevs log diff annotate
message add TP-Link WN821N v5 (RTL8192EU), from Jesper Wallin

date 2019-01-14T03:28:51Z
author jmatthew
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2019-01-14T04:02:39Z
author beck
files src/sys/kern/kern_unveil.c log diff annotate
message Fix unveil issue noticed by kn@ where unveil does not notice covering
unveil matches when .. is used correctly. Also adds regress based
upon his test program for the same issue.

date 2019-01-14T06:25:26Z
author jmatthew
files src/sys/dev/usb/if_urtwn.c log diff annotate
message match on TP-Link WN821N v5 (RTL8192EU), tested by Jesper Wallin

date 2019-01-14T13:35:41Z
author feinerer
files src/sys/dev/usb/if_umb.c log diff annotate
message Fix typos

ok sthen@

date 2019-01-14T15:02:57Z
author visa
files src/sys/arch/mips64/mips64/fp_emulate.c log diff annotate
src/sys/arch/mips64/mips64/lcore_float.S log diff annotate
message Wrap floating point instructions with .set hardfloat to make clang's
integrated assembler accept them in the kernel.

Move fsr access code into dedicated inline functions to improve
readability.

date 2019-01-14T16:27:19Z
author visa
files src/sys/arch/loongson/conf/Makefile.loongson log diff annotate
src/sys/arch/octeon/conf/Makefile.octeon log diff annotate
src/sys/arch/sgi/conf/Makefile.sgi log diff annotate
message Remove obsolete symbols.sort target.

OK deraadt@

date 2019-01-14T16:43:47Z
author deraadt
files src/sys/kern/kern_unveil.c log diff annotate
message backout previous; crashes near mountpoints it seems

date 2019-01-14T21:01:56Z
author kettenis
files src/sys/arch/sparc64/conf/Makefile.sparc64 log diff annotate
message Add support for building kernels with clang. Clang does not support
-mno-fpu, so use -msoft-float instead. As long as we do not explicitly
use floating-point arithmetic in the kernel that probably has the same effect.
Add -Wno-unused-command-line-argument to prevent warnings that turn into
errors passing -Wa,-Av9b when we run genassym.sh.

ok deraadt@, visa@

date 2019-01-15T10:00:47Z
author stsp
files src/sys/net80211/ieee80211.h log diff annotate
message Rename some data frame subtype macros to make the difference between
"data" and "no data" frames more obvious. These renamed macros aren't
actually used anywhere in net80211 yet.
cross-checked with 802.11 specs by myself and Lauri Tirkkonen

date 2019-01-15T10:01:46Z
author stsp
files src/sys/net80211/ieee80211_input.c log diff annotate
message Stop processing "no data" frames in ieee80211_input() before decryption.
Previously such frames would be counted as decryption failures which is
nonsense because they don't carry any data which could be encrypted.
Problem analyzed by, and fix developed together with, Lauri Tirkkonen.

date 2019-01-15T16:07:42Z
author kettenis
files src/sys/dev/fdt/sxiccmu_clocks.h log diff annotate
message Add missing Allwinner H3/H5 OHCI clocks.

date 2019-01-15T18:33:30Z
author visa
files src/sys/arch/sgi/dev/owmac.c log diff annotate
message Remove an unused variable. Spotted by clang.

OK miod@

date 2019-01-15T22:08:32Z
author stsp
files src/sys/dev/usb/if_otus.c log diff annotate
src/sys/dev/usb/if_otusreg.h log diff annotate
message Make otus(4) modify its DMA_TRIGGER register with readable macros
instead of magic numbers. No functional change.
ok kettenis@

date 2019-01-16T00:26:45Z
author jsg
files src/sys/net/if_bpe.c log diff annotate
message include pf.h for #if NPF > 0 test
ok patrick@ sashan@

date 2019-01-16T19:27:07Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Deny mmap() on enabled kcov fds. Sometimes syzkaller manages to duplicate an
existing kcov fd and corrupt the coverage buffer.

ok bluhm@ visa@