OpenBSD cvs log

created 2018-11-29T14:18:24Z
begin 2018-04-24T00:00:00Z
end 2018-04-25T00:00:00Z
path src/sys
commits 17

date 2018-04-24T02:53:44Z
author visa
files src/sys/arch/amd64/amd64/aesni.c log diff annotate
message Do not lock the kernel when expanding the working buffer.
malloc(9) and free(9) are MP-safe nowadays.

OK mpi@

date 2018-04-24T03:17:36Z
author visa
files src/sys/arch/loongson/conf/GENERIC log diff annotate
src/sys/arch/loongson/conf/RAMDISK log diff annotate
message Enable em(4) on loongson.

date 2018-04-24T06:19:47Z
author florian
files src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtsock.c log diff annotate
message Remove unused rtentry parameter.
Input bluhm
OK benno, kn, claudio

date 2018-04-24T10:46:25Z
author florian
files src/sys/netinet6/in6.c log diff annotate
message Run duplicate address detection again if an existing address gets
updated from userland that was marked duplicated or tentative.

Otherwise we would just lose the duplicated / tentative state and assume
that the address is now unique and usable.
OK kn

date 2018-04-24T11:23:27Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
message Enable gpioiic(4) and gpioow(4). From Artturi Alm.

date 2018-04-24T15:32:28Z
author mlarkin
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
message make the check for XSAVE the same as it is later in the file, for
consistency.

ok guenther

note - there is no equivalent diff here for i386 since XSAVE is not used
there.

date 2018-04-24T15:40:55Z
author pirofti
files src/sys/net/if.c log diff annotate
src/sys/net/Attic/raw_usrreq.c log diff annotate
src/sys/netinet/in.c log diff annotate
src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Push NET_LOCK down in the default ifioctl case.

For the PRU_CONTROL bit the NET_LOCK surrounds in[6]_control() and
on the ENOTSUPP case we guard the driver if_ioctl functions.

OK mpi@

date 2018-04-24T16:28:42Z
author pirofti
files src/sys/kern/kern_synch.c log diff annotate
message Validate timespec and return ECANCELED when interrupted with SA_RESTART.

Discussing with mpi@ and guenther@, we decided to first fix the existing
semaphore implementation with regards to SA_RESTART and POSIX compliant
returns in the case where we deal with restartable signals.

Currently we return EINTR everywhere which is mostly incorrect as the
user can not know if she needs to recall the syscall or not. Return
ECANCELED to signal that SA_RESTART was set and EINTR otherwise.

Regression tests pass and so does the posixsuite. Timespec validation
bits are needed to pass the later.

OK mpi@, guenther@

date 2018-04-24T17:05:54Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message account for FPU context switch (uvm statistic only)

date 2018-04-24T17:19:35Z
author pirofti
files src/sys/kern/sys_futex.c log diff annotate
message Make futex(2) also return ECANCELED in case SA_RESTART was set.

Prodded by and ok mpi@

date 2018-04-24T17:22:33Z
author landry
files src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdivar.h log diff annotate
src/sys/dev/usb/uvideo.c log diff annotate
message Fill the 'card' member of v4l2_capability struct with the usb product
name coming from usbd_devinfo_vp() instead of the dummy "Generic USB
video class device" string, makes it easier to differentiate multiple
webcams in firefox's webrtc permission dialog.

ok/help mpi@

date 2018-04-24T19:53:38Z
author florian
files src/sys/netinet/in.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
message Make the ramdisks compile again, we don't have MROUTING on them.
Found the hard way.

date 2018-04-24T20:23:41Z
author bluhm
files src/sys/net/pf_if.c log diff annotate
message Fix copy and paste typo in pfi_kif_unref route error message.

date 2018-04-24T20:29:15Z
author guenther
files src/sys/arch/amd64/amd64/db_interface.c log diff annotate
src/sys/arch/amd64/amd64/ipifuncs.c log diff annotate
src/sys/arch/amd64/amd64/vmm.c log diff annotate
message isn't used here

ok mlarkin@

date 2018-04-24T20:33:28Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/amd64/vmm_support.S log diff annotate
src/sys/arch/amd64/include/cpufunc.h log diff annotate
message vmm(4): fix lockups on SVM hosts when booting Linux guests

The previous version of the code used "disable_intr" as a protection
around the FPU state saving routine, which left host RFLAGS.IF=0 when
entering the guest. If the guest ended up in a non-exitable condition,
the machine could hang due to missed TLB flush IPIs (and eventual
kernel lock contention and starvation).

tested by brynet@

ok guenther@

date 2018-04-24T20:58:48Z
author guenther
files src/sys/arch/amd64/amd64/db_interface.c log diff annotate
src/sys/arch/amd64/amd64/trap.c log diff annotate
message Move code into inline functions to hide #ifdefs and improve readability.
Constipate a couple variables. Delete IDTVEC() macro and code handling
32bit-only traps (panic instead).

ok mlarkin@

date 2018-04-24T23:05:09Z
author bluhm
files src/sys/net/pf_ioctl.c log diff annotate
message Use pf_rm_rule() instead of pool_put() to decrement references by
the rule created in pf_rule_copyin(). Plugs a potential kif memory
leak in pf(4) ioctl.
OK sashan@