OpenBSD cvs log

created 2019-02-07T02:44:01Z
begin 2018-11-15T00:00:00Z
end 2018-11-22T00:00:00Z
path src/sys
commits 38

date 2018-11-15T00:05:00Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message the variable holding the ip tos should be called tos, not ttl.

no functional change.

date 2018-11-15T13:16:37Z
author henning
files src/sys/net/pf.c log diff annotate
message in the "pf: key search" debug message, add the direction. interface *and*
dir make debugging much easier than the if alone.

date 2018-11-15T21:24:48Z
author jmc
files src/sys/arch/hppa/hppa/fpemu.S log diff annotate
message fix typos in comments; from miod

date 2018-11-15T21:27:31Z
author jmc
files src/sys/arch/hppa/hppa/fpemu.S log diff annotate
message one more typo noticed while pasting miod a reply;

date 2018-11-15T22:22:03Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message add support for txprio configuration

date 2018-11-16T08:43:08Z
author dlg
files src/sys/net/if_vlan.c log diff annotate
src/sys/net/if_vlan_var.h log diff annotate
message use txprio, not link0 and llprio, to set the dot1p field in the header.

if you're using llprio and link0, you'll need to update your config.

ok claudio@

date 2018-11-16T11:55:56Z
author mpi
files src/sys/dev/usb/umidi.c log diff annotate
message free(9) sizes for array of endpoints.

ok ratchov@

date 2018-11-16T11:56:42Z
author mpi
files src/sys/dev/usb/usb_subr.c log diff annotate
message free(9) sizes for array of interfaces.

ok visa@

date 2018-11-16T11:57:29Z
author mpi
files src/sys/dev/usb/uhci.c log diff annotate
message free(9) sizes for interrupt & isochronous arrays.

ok visa@

date 2018-11-16T18:20:33Z
author jcs
files src/sys/dev/pci/pcidevs log diff annotate
message add more intel 100 series devices

date 2018-11-16T18:21:07Z
author jcs
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2018-11-16T20:11:52Z
author patrick
files src/sys/dev/fdt/sximmc.c log diff annotate
message Add support for Allwinner A64's eMMC controller. It is essentially
the same as the MMC controller but has the same DMA max length as
the A10 SoC. This makes the eMMC work on the Pinebook.

ok jsg@

date 2018-11-17T18:55:50Z
author millert
files src/sys/kern/kern_event.c log diff annotate
message Avoid leaking kernel memory in struct kevent padding.
From NetBSD (maxv). OK deraadt@ visa@

date 2018-11-17T20:17:10Z
author mpi
files src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdivar.h log diff annotate
message free(9) size for USB subdevs array.

ok ratchov@, visa@

date 2018-11-17T23:10:08Z
author cheloha
files src/sys/kern/kern_pledge.c log diff annotate
src/sys/kern/kern_sched.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
src/sys/sys/sched.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
message Add new KERN_CPUSTATS sysctl(2) so we can identify offline CPUs.

Because of hw.smt we need a way to determine whether a given CPU is "online"
or "offline" from userspace. KERN_CPTIME2 is an array, and so cannot be
cleanly extended for this purpose, so add a new sysctl(2) KERN_CPUSTATS
with an extensible struct. At the moment it's just KERN_CPTIME2 with a
flags member, but it can grow as needed.

KERN_CPUSTATS appears to have been defined by BSDi long ago, but there are
few (if any) packages in the wild still using the symbol so breakage in ports
should be near zero. No other system inherited the symbol from BSDi, either.

Then, use the new sysctl(2) in systat(1) and top(1):

- systat(1) draws placeholder marks ('-') instead of percentages for
offline CPUs in the cpu view.

- systat(1) omits offline CPU ticks when drawing the "big bar" in
the vmstat view. The upshot is that the bar isn't half idle when
half your logical CPUs are disabled.

- top(1) does not draw lines for offline CPUs; if CPUs toggle on or
offline in interactive mode we redraw the display to expand/reduce
space for the new/missing CPUs. This is consistent with what some
top(1) implementations do on Linux.

- top(1) omits offline CPUs from the totals when CPU totals are
combined into a single line (the '-1' flag).

Originally prompted by deraadt@. Discussed endlessly with deraadt@,
ketennis@, and sthen@. Tested by jmc@ and jca@. Earlier versions also
discussed with jca@. Earlier versions tested by jmc@, tb@, and many
others.

docs ok jmc@, kernel bits ok ketennis@, everything ok sthen@,
"Is your stuff in yet?" deraadt@

date 2018-11-18T08:42:15Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message request notification of link state changes, which helps us detect
link when it takes a bit longer to establish.

ok dlg@

date 2018-11-18T08:46:57Z
author jmatthew
files src/sys/dev/pci/xhci_pci.c log diff annotate
message When parsing extended capabilities, bail out if a register read returns
-1/0xffffffff, so we don't run off the end of the register area and crash.
The controller doesn't initialise, but this is still an improvement.
Seen on Dell R6415s when booting in BIOS mode, and possibly on some
Supermicro systems.

ok mpi@

date 2018-11-18T16:23:14Z
author mpi
files src/sys/dev/usb/uplcom.c log diff annotate
message USB_DEBUG -> UPLCOM_DEBUG.

date 2018-11-18T16:24:05Z
author mpi
files src/sys/dev/usb/ohci.c log diff annotate
message Remove old USB_DEBUG chunk.

date 2018-11-18T16:33:26Z
author mpi
files src/sys/dev/usb/usb.c log diff annotate
src/sys/dev/usb/usb_mem.c log diff annotate
src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdi.c log diff annotate
src/sys/dev/usb/usbdi_util.c log diff annotate
message Use "%s", __func__ in DPRINTF() to reduce grep noise.

date 2018-11-18T16:44:30Z
author mpi
files src/sys/dev/usb/usb_subr.c log diff annotate
message More uses of __func__ in debug printfs.

date 2018-11-19T00:39:23Z
author dlg
files src/sys/net/ethertypes.h log diff annotate
message recent 802.1Q defines 88e7 for provider backbone bridging

date 2018-11-19T07:31:35Z
author kevlo
files src/sys/dev/usb/usbdevs log diff annotate
message Add ids for D-Link DWA-171 rev C1 and Xiaomi mini USB WiFi.

date 2018-11-19T07:32:29Z
author kevlo
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2018-11-19T10:15:04Z
author claudio
files src/sys/net/rtable.c log diff annotate
src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
src/sys/netmpls/mpls_proto.c log diff annotate
src/sys/sys/domain.h log diff annotate
message Retire dom_rtkeylen from struct domain. Nothing is using this anymore.
It was used by the original patricia tree.
OK mpi@

date 2018-11-19T13:15:37Z
author visa
files src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Utilize sigio with sockets.

OK mpi@

date 2018-11-19T16:12:06Z
author tedu
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/sys/sysctl.h log diff annotate
message delete the dns jackport experiment. it has no future.

date 2018-11-19T19:19:24Z
author anton
files src/sys/dev/wscons/wsevent.c log diff annotate
src/sys/dev/wscons/wseventvar.h log diff annotate
src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wsmouse.c log diff annotate
src/sys/dev/wscons/wsmux.c log diff annotate
message Utilize sigio with wscons. The old behavior of always making the process group
of the process who opens the device the default recipient of sigio is removed as
a side-effect of this change. Issuing ioctl(FIOSETOWN) is therefore mandatory in
order to receive sigio, which is more consistent with other subsystems
supporting sigio.

This change is all made possible by the new sigio(9) API and prevents wscons
from keeping a pointer to the recipient process. Usage of such pointer could
cause a panic since wscons is not inform on process deallocation, leaving a
dangling pointer behind.

ok mpi@ visa@

date 2018-11-20T03:10:47Z
author yasuoka
files src/sys/arch/amd64/stand/efiboot/efiboot.c log diff annotate
message Fix typos in memprobe address check. Diff from Andrew Daugherity.

date 2018-11-20T10:00:15Z
author patrick
files src/sys/net80211/ieee80211_node.c log diff annotate
message The first packet received from each AP in each QoS class would be
dropped as the sequence number matches the initial value of the
cached last sequence number (zero). On some APs (notably Android
WIFI hotspots) this hits the first packet of the WPA2 4-way
handshake. This causes connection delays and in some cases
connection to the AP fails completely. Initialize the cached last
sequence numbers for received packets to an invalid value instead.

From Christian Ehrhardt
ok gerhard@ stsp@

date 2018-11-20T10:28:08Z
author claudio
files src/sys/net/rtable.c log diff annotate
message Make rtable_satoplen() a bit more strict when parsing netmasks. Ensure
that the mask is contiguous and not longer then the prefixlen is not
bigger then the maximum. Make the function behave a bit more like the
similar netmask handling code in the old patricia codebase.
Fixes a problem reyk@ reported regarding IPv6 masks and the fact that
sin6_scope_id is after sin6_addr.
OK mpi@

date 2018-11-20T11:51:23Z
author mpi
files src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdivar.h log diff annotate
message Revert free sizes for `subdevs' array, it is incorrect.

Reported by anton@ and Natasha Kerensikova

date 2018-11-20T19:00:13Z
author anton
files src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wsmouse.c log diff annotate
src/sys/dev/wscons/wsmux.c log diff annotate
message No need for wscons to handle FIOSETOWN ioctl requests since sys_ioctl()
translates such requests into TIOCSPGRP.

ok visa@

date 2018-11-20T19:33:44Z
author anton
files src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wsmouse.c log diff annotate
src/sys/dev/wscons/wsmux.c log diff annotate
message Add support for TIOCGPGRP ioctl commands to wscons.

ok visa@

date 2018-11-20T20:26:01Z
author phessler
files src/sys/net80211/ieee80211_node.c log diff annotate
message fix whitespace in debugging function

date 2018-11-21T16:14:43Z
author mpi
files src/sys/kern/vfs_bio.c log diff annotate
message free(9) sizes for bread_cluser().

ok mikeb@, visa@

date 2018-11-21T16:50:49Z
author claudio
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
message When using MSG_PEEK to peak into packets skip control messages holding
SCM_RIGHTS from being sent to the userland since they hold kernel internal
data and it does not make sense to externalize it.
OK deraadt@, guenther@, visa@

date 2018-11-21T17:07:07Z
author claudio
files src/sys/kern/uipc_usrreq.c log diff annotate
message In unp_internalize() check the length more carefully preventing an
underflow in a later calcuation. Using the same CMSG_LEN(0) check
that other cmsghdr handlers implemented.
Probelm found by anton@
OK anton@, deraadt@, visa@