OpenBSD cvs log

created 2019-05-14T11:03:09Z
begin 2019-05-09T00:00:00Z
end 2019-05-10T00:00:00Z
path src/sys
commits 22

date 2019-05-09T00:20:57Z
author kettenis
files src/sys/dev/usb/files.usb log diff annotate
message Add ucrcom(4) a (very simple) driver for the serial console of (some)
chromebooks.

ok deraadt@

date 2019-05-09T05:17:45Z
author ratchov
files src/sys/dev/pci/envy.c log diff annotate
message Implement set_rate() method for M-Audio Audiophile 192k cards.

It switches the AK5385 and the AK4358 chips between single-, double-
or quad-speed modes depending on the host sample rate.

Help and testing by Andrey Oktyabrskiy . Thanks!

date 2019-05-09T06:58:13Z
author ratchov
files src/sys/dev/usb/uaudio.c log diff annotate
message Skip empty control interfaces when parsing descriptors.

Even if having multiple control interface descriptors is not allowed
by the UAC spec, there's no reason to stop as long as a proper control
interface was processed.

date 2019-05-09T07:00:38Z
author ratchov
files src/sys/dev/usb/uaudio.c log diff annotate
message Set the rate of UAC v2.0 clock units using the control interface, not
a random streaming iface.

date 2019-05-09T07:09:04Z
author ratchov
files src/sys/dev/usb/uaudio.c log diff annotate
message When changing device rate, send request to the clock source unit.

Currently we send the request to the unit indicated as clock source of
the terminals, which may be a clock selector unit that doesn't support
the request. Fix this by following the clock source path until the
clock source unit is found.

date 2019-05-09T12:50:03Z
author aoyama
files src/sys/arch/luna88k/stand/boot/Makefile log diff annotate
message Eliminate 'make clean' stops with 'rmdir: .: Invalid argument'.

date 2019-05-09T14:09:01Z
author tedu
files src/sys/kern/kern_malloc.c log diff annotate
message disable stack printing for now since at least arm64 can't print them
reported by kettenis

date 2019-05-09T14:29:30Z
author phessler
files src/sys/net/bfd.c log diff annotate
message we don't need to check rtisvalid() in these places, the functions we are
protecing will do the right thing

OK claudio@

date 2019-05-09T14:50:46Z
author bcook
files src/sys/dev/pci/azalia.c log diff annotate
message add free sizes

ok tedu

date 2019-05-09T14:53:18Z
author deraadt
files src/sys/ufs/ufs/ufs_lookup.c log diff annotate
message For filenames which are a multiple of 4 bytes long, the zero pad is
incorrectly placed underneath the last 4 bytes (and then overwritten)
rather than afterwards.
We got confused and followed FreeBSD's lead, which curiously increased
the leakage of kernel stack from 3 bytes to 4...
ok millert kettenis

date 2019-05-09T14:59:30Z
author claudio
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/sys/sysctl.h log diff annotate
message Add a sysctl accessor to struct pf_status. The pf_status only holds the
current status and statistics and can be exported without super-user
rights via sysctl to make it easier for tools like systat to access those.
OK deraadt@, sashan@

date 2019-05-09T15:09:40Z
author beck
files src/sys/kern/vfs_bio.c log diff annotate
message Don't unconditionally throw away dma memory when we don't need to.
Noticed by me and otto@
ok tedu@

date 2019-05-09T15:35:19Z
author deraadt
files src/sys/ufs/ufs/ufs_lookup.c log diff annotate
message Nope, the right byte layout is happening, but we still need to figure out
a reported baddir panic. Discussed with guenther tedu kettenis millert..

date 2019-05-09T16:13:34Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Add two sanity checks to iwm's firmware notification interrupt handler:

1) Clamp firmware-provided index into the rx ring to the size of the ring.
Linux started doing this, too, to work around HW bugs in the 9000 series.
(mathes Linux 5eae443eb5e2b3777582ea37c6a002171ec134d5)

2) Don't call iwm_cmd_done() if the firmware response in the Rx buffer
is not recognized. We should just skip such buffers, not act on them.

ok beck kevlo mpi

date 2019-05-09T16:14:14Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
message Correctly mask status bits in iwm's ADD_STA command response; remaining
bits are used by firmware to return the BAID for a BA session.

matches:
Dragonfly 74d41163ddac72b0d7ea7b7873d53fe134723a12
Linux 837c4da98481d4e504b2aba077c8528fee1b6d13

ok kevlo mpi jmatthew

date 2019-05-09T17:38:23Z
author semarie
files src/sys/dev/isa/isa.c log diff annotate
message add free sizes

ok tedu@

date 2019-05-09T18:29:25Z
author cheloha
files src/sys/dev/acpi/acpisbs.c log diff annotate
message Measure poll interval with monotonic clock. ok jcs@

date 2019-05-09T19:56:18Z
author jsg
files src/sys/dev/pci/drm/i915/intel_gtt.c log diff annotate
message set up IFP using the gen3 path on pineview

Avoids crashes on boot with pineview on chipset flush due to IFP not
being initialised.

Diagnosed by, tested by and ok ratchov@ ok kettenis@

date 2019-05-09T20:30:21Z
author cheloha
files src/sys/kern/kern_time.c log diff annotate
message Unlock adjfreq(2), adjtime(2), clock_settime(2), and settimeofday(2).

clock_settime(2)/settimeofday(2) still need KERNEL_LOCK for a moment
when resetting the RTC, as that's done periodically from a task under
KERNEL_LOCK. Not quite sure how to approach that one yet.

ok visa@ mpi@, "good stuff" tedu@,
"please wait until after [tree] unlock" deraadt@

date 2019-05-09T20:30:22Z
author cheloha
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
message Unlock adjfreq(2), adjtime(2), clock_settime(2), and settimeofday(2).

clock_settime(2)/settimeofday(2) still need KERNEL_LOCK for a moment
when resetting the RTC, as that's done periodically from a task under
KERNEL_LOCK. Not quite sure how to approach that one yet.

ok visa@ mpi@, "good stuff" tedu@,
"please wait until after [tree] unlock" deraadt@

date 2019-05-09T20:36:44Z
author beck
files src/sys/kern/vfs_biomem.c log diff annotate
src/sys/uvm/uvm_extern.h log diff annotate
src/sys/uvm/uvm_pdaemon.c log diff annotate
src/sys/uvm/uvm_pmemrange.c log diff annotate
message Ensure that pagedaemon wakeups as a result of failed UVM_PLA_NOWAIT
allocations will recover some memory from the dma_constraint range.

The allocation still fails, the intent is to ensure that the
pagedaemon will free some memory to possibly allow a subsequent
allocation to succeed.

This also adds a UVM_PLA_NOWAKE flag to allow special cases in the
buffer cache to not wake up the pagedaemon until they want to.

ok kettenis@

date 2019-05-09T22:25:42Z
author guenther
files src/sys/kern/exec_elf.c log diff annotate
message If mallocing the array program header fails, give up on coredumping
instead of panicing

ok deraadt@, tedu@, mpi@