OpenBSD cvs log

created 2018-11-29T15:06:49Z
begin 2018-05-14T00:00:00Z
end 2018-05-15T00:00:00Z
path src/sys
commits 9

date 2018-05-14T03:14:47Z
author guenther
files src/sys/arch/amd64/amd64/vector.S log diff annotate
message Delete unused/obsolete labels

date 2018-05-14T07:33:58Z
author mpi
files src/sys/net/pfkeyv2.c log diff annotate
message Use a SRP list to protect pfkeyv2 sockets, thus removing the need to
grab the KERNEL_LOCK() when delivering messages.

This is the same solution already used by routing sockets.

ok claudio@, visa@

date 2018-05-14T07:33:59Z
author mpi
files src/sys/net/rtsock.c log diff annotate
message Use a SRP list to protect pfkeyv2 sockets, thus removing the need to
grab the KERNEL_LOCK() when delivering messages.

This is the same solution already used by routing sockets.

ok claudio@, visa@

date 2018-05-14T09:33:20Z
author kettenis
files src/sys/arch/hppa/include/atomic.h log diff annotate
message Expose memory barriers to userland.

ok visa@, mpi@

date 2018-05-14T12:31:21Z
author mpi
files src/sys/kern/kern_clock.c log diff annotate
src/sys/kern/kern_lock.c log diff annotate
src/sys/sys/sched.h log diff annotate
message Stopping counting and reporting CPU time spent spinning on a lock as
system time.

Introduce a new CP_SPIN "scheduler state" and modify userland tools
to display the % of timer a CPU spents spinning.

Based on a diff from jmatthew@, ok pirofti@, bluhm@, visa@, deraadt@

date 2018-05-14T13:54:39Z
author kettenis
files src/sys/arch/hppa/conf/GENERIC log diff annotate
src/sys/arch/hppa/conf/RAMDISK log diff annotate
src/sys/arch/hppa/dev/apic.c log diff annotate
src/sys/arch/hppa/dev/asp.c log diff annotate
src/sys/arch/hppa/dev/dino.c log diff annotate
src/sys/arch/hppa/dev/lasi.c log diff annotate
src/sys/arch/hppa/dev/wax.c log diff annotate
src/sys/arch/hppa/gsc/gscbus.c log diff annotate
src/sys/arch/hppa/gsc/gscbusvar.h log diff annotate
src/sys/arch/hppa/hppa/intr.c log diff annotate
src/sys/arch/hppa/hppa/mainbus.c log diff annotate
message Relax the way irqs are assigned. This diff does:
- dynamic allocation of interrupts for dino(4) and gsc(4)
- only mention irq locators for devices which use interrupts.
- for gsc(4), this actually postpones interrupt allocation until gsc(4)
attaches, so asp(4)/lasi(4)/wax(4) won't route the interrupt yet, but
the gsc(4) child will take care of this.
- remove the irq locator for the drivers which do not need a fixed
assignment. siop and moongoose could benefit from this but don't work
at the moment so this is left as an exercize to future kernel hackers.
A side effect from this is that we do not need multiple sti(4)
attachment lines, so PCI sti(4) devices will now attach as sti0 rather
than sti2.

With this diff, multiple dino(4) devices attached to the same parent
will use different interrupt sources, and more than two dino(4) devices
can attach.

Tested on 715/75 (old-gen using asp), 715/100/XC (new-gen using lasi),
B132L+, B180L, C240, B2000, C3650.

From miod@

date 2018-05-14T15:04:05Z
author bluhm
files src/sys/netinet/ipsec_output.c log diff annotate
message When walking the IPv6 header chain in IPsec output, check that the
next extension header is within the packet length. Also check at
the end that the IPv4 headers are not longer than the packet.
reported by Maxime Villard; from markus@ via NetBSD; OK mpi@

date 2018-05-14T15:24:23Z
author bluhm
files src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message When checking the IPsec enable sysctls, ipsec_common_input() had
switches for protocol and address family. Move this code to the
specific functions from where the common function is called.
As a consequence the raw ip input functions can never be called
from udp_input() anymore. If IPsec is disabled, the functions
ah6_input(), esp6_input(), and ipcomp6_input() do not start processing
the header chain. The raw ip input functions are called with the
mbuf and offset pointers from the protocol walking loop which is
the usual behavior.
OK mpi@ markus@

date 2018-05-14T19:25:54Z
author kettenis
files src/sys/arch/arm64/dev/Attic/com_fdt.c log diff annotate
src/sys/arch/armv7/dev/Attic/com_fdt.c log diff annotate
src/sys/dev/ic/com.c log diff annotate
src/sys/dev/ic/comvar.h log diff annotate
message Add support for register shift/io-width to the console code as well.

ok visa@, patrick@