OpenBSD cvs log

created 2019-01-30T17:59:10Z
begin 2019-01-21T00:00:00Z
end 2019-01-22T00:00:00Z
path src/sys
commits 10

date 2019-01-21T00:23:39Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message also add a mac filter that ignores vlans for the broadcast address, so we can
see arp requests on vlans, among other things.

ok dlg@

date 2019-01-21T01:40:35Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/specialreg.h log diff annotate
message vmm: better handling of two SMM related MSRs

We currently ignore MSR_SMBASE and MSR_SMM_MONITOR_CTL, but the SDM says
accessing the former for read and latter for write while not in SMM mode
should produce a #GP. This change detects those operations and injects
a #GP as the documentation says. The previous behaviour was harmless, just
not correct.

ok pd

date 2019-01-21T05:40:11Z
author mlarkin
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
message Don't add PG_u to the upper level PTEs in the meltdown case

There is no reason to have PG_u on the toplevel PTEs when entering
special page mappings. The lowest PTE was already set without PG_u, so
this change makes everything the same.

ok guenther

date 2019-01-21T05:44:40Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm: better handling of CPUID[1].ECX[OSXSAVE] bit

This bit should reflect the current state of the guest's CR4.OSXSAVE
value, not whatever happened to be in the host's CPUID[1] when it
booted.

ok guenther

date 2019-01-21T06:18:37Z
author mlarkin
files 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 Support 2TB phys mem

This change expands the direct map to 4 slots (512GB each), to support
machines with up to 2TB physical memory. Should further expansion be
required, this change provides the means to do that with a single #define
change.

with help from and ok guenther

date 2019-01-21T11:24:05Z
author jsg
files src/sys/dev/fdt/sxirtc.c log diff annotate
message Adapt to allwinner device tree changes in linux >= 5.0-rc1
"allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64

ok kettenis@

date 2019-01-21T18:09:21Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
src/sys/kern/vfs_subr.c log diff annotate
src/sys/msdosfs/denode.h log diff annotate
src/sys/nfs/nfsnode.h log diff annotate
src/sys/sys/fcntl.h log diff annotate
src/sys/sys/lockf.h log diff annotate
src/sys/sys/specdev.h log diff annotate
src/sys/tmpfs/tmpfs.h log diff annotate
src/sys/ufs/ufs/inode.h log diff annotate
message Introduce a dedicated entry point data structure for file locks. This new data
structure allows for better tracking of pending lock operations which is
essential in order to prevent a use-after-free once the underlying vnode is
gone.

Inspired by the lockf implementation in FreeBSD.

ok visa@

Reported-by: [email protected]

date 2019-01-21T20:09:37Z
author landry
files src/sys/kern/kern_pledge.c log diff annotate
src/sys/sys/pledge.h log diff annotate
message Add "video" promise.

Allows a subset of ioctls on video(4) devices, subset selected from
video(1) and firefox webrtc implementation.

ok semarie@ deraadt@

date 2019-01-21T20:46:52Z
author tedu
files src/sys/kern/kern_unveil.c log diff annotate
src/sys/kern/vfs_syscalls.c log diff annotate
message sometimes we don't call unveil_add, which means memory allocated by namei
doesn't get freed. move the free calls into the same function as namei.
fixed bug report from Dariusz Sendkowski
ok beck

date 2019-01-21T23:41:26Z
author cheloha
files src/sys/kern/sys_generic.c log diff annotate
message select(2), pselect(2), poll(2), ppoll(2): Support full timeout range.

Remove the arbitrary and undocumented 24hr limits for timeouts from these
interfaces. To do so, loop tsleep(9) to chip away at timeouts larger than
what tsleep(9) can handle in one call.

Use timerisvalid(3)/timespecisvalid() for input validation instead of
itimerfix()/timespecfix() to avoid the 100 million second upper bounds
those functions introduce.

POSIX requires support for timeouts of at least 31 days for select(2) and
pselect(2), so these changes make our implementation more compliant.

Other improvements here include better variable names for the time stuff
and more consolidated timeout logic with less backwards goto jumping, all
of which made dopselect() and doppoll() a bear to read.

Naming improvements prompted by tedu@ in a prior patch for nanosleep(2).
With input from deraadt@. Validation bug spotted by matthew@ in an earlier
version.

ok visa@