OpenBSD cvs log

created 2019-02-07T02:42:12Z
begin 2018-11-08T00:00:00Z
end 2018-11-15T00:00:00Z
path src/sys
commits 50

date 2018-11-08T00:04:51Z
author kettenis
files src/sys/arch/hppa/conf/GENERIC log diff annotate
message Remove cardbus and pcmcia debug options that we don't enable on other
platforms.

From miod@

date 2018-11-08T06:54:13Z
author jsg
files src/sys/dev/pci/pcidevs log diff annotate
message correct intel 0x9d66
reported by Masanobu SAITOH

date 2018-11-08T06:55:06Z
author jsg
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-09T13:26:12Z
author claudio
files src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Remove the last few XXX rdomain markers. Even those functions respect the
rdomain now and are therefor rdomain save.
OK mpi@

date 2018-11-09T14:14:31Z
author claudio
files src/sys/dev/ic/elink3.c log diff annotate
src/sys/dev/ic/malo.c log diff annotate
src/sys/dev/pci/if_bge.c log diff annotate
src/sys/dev/pci/if_nep.c log diff annotate
src/sys/dev/pci/if_vte.c log diff annotate
src/sys/dev/sdmmc/if_bwfm_sdio.c log diff annotate
src/sys/kern/uipc_mbuf.c log diff annotate
src/sys/kern/uipc_mbuf2.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/net/bsd-comp.c log diff annotate
src/sys/net/if_ppp.c log diff annotate
src/sys/net/ppp-deflate.c log diff annotate
src/sys/net/ppp_tty.c log diff annotate
src/sys/net/switchctl.c log diff annotate
src/sys/net80211/ieee80211_crypto_bip.c log diff annotate
src/sys/net80211/ieee80211_crypto_ccmp.c log diff annotate
src/sys/net80211/ieee80211_crypto_tkip.c log diff annotate
src/sys/net80211/ieee80211_crypto_wep.c log diff annotate
src/sys/netinet/tcp_output.c log diff annotate
message M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers for
m_leadingspace() and m_trailingspace(). Convert all callers to call
directly the functions and remove the defines.
OK krw@, mpi@

date 2018-11-09T14:14:32Z
author claudio
files src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
src/sys/nfs/nfs_serv.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_subs.c log diff annotate
src/sys/sys/mbuf.h log diff annotate
message M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers for
m_leadingspace() and m_trailingspace(). Convert all callers to call
directly the functions and remove the defines.
OK krw@, mpi@

date 2018-11-10T11:54:03Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
message Conform to POSIX-2001 in which the behavior of passing a negative length using
posix file locks is defined. Also, detect overflows when dealing with positive
lengths.

ok millert@ visa@

date 2018-11-10T14:27:51Z
author bru
files src/sys/dev/wscons/wsconsio.h log diff annotate
src/sys/dev/wscons/wsmouse.c log diff annotate
src/sys/dev/wscons/wsmouseinput.h log diff annotate
src/sys/dev/wscons/wstpad.c log diff annotate
message Remove the strong hysteresis filter.

It seems that the filter is obsolete, the default method is sufficient.
Simplify and clean up some related code in wsmouse.

ok mpi@

date 2018-11-10T15:28:05Z
author mpi
files src/sys/dev/usb/if_wi_usb.c log diff annotate
message Pass free(9) sizes for the tx descriptors.

ok tedu@, visa@, stsp@

date 2018-11-10T15:29:22Z
author mpi
files src/sys/dev/usb/uhub.c log diff annotate
message Pass free(9) sizes for port arrays.

ok tedu@, visa@

date 2018-11-10T15:34:25Z
author mpi
files src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdi.c log diff annotate
src/sys/dev/usb/usbdivar.h log diff annotate
message free(9) sizes for endpoints array.

ok okan@, tedu@, visa@

date 2018-11-10T18:40:34Z
author bluhm
files src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/tcp_output.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message Do not translate the EACCES error from pf(4) to EHOSTUNREACH anymore.
It also translated a documented send(2) EACCES case erroneously.
This was too much magic and always prone to errors.
from Jan Klemkow; man page jmc@; OK claudio@

date 2018-11-10T21:21:15Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
message use the LFPRINTF() debug macro consistently; ok mpi@

date 2018-11-11T01:49:04Z
author deraadt
files src/sys/dev/wscons/wsmouse.c log diff annotate
message in the magical language gcc, adding brackets allows correct code to compile.

date 2018-11-11T05:55:10Z
author dlg
files src/sys/net/if.h log diff annotate
src/sys/net/if_gre.c log diff annotate
message use the llprio on gre(4) and eoip(4) interfaces for the keepalive tos

llprios are valued 0 to 7, while the ip tos/dscp/tclass is an 8 bit
value. fortunately the high 3 bits map nicely to the llprio values,
so we shift the llprio into place when generating the keepalive
frames. the llprio is defaulted to the value that cisco uses for
their gre keepalives.

date 2018-11-11T06:05:53Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message actually use the if_llprio to set the mbuf prio.

the llprio is already used to set the gre and eoip packet tos/tclass,
but it was queued at the default prio before this.

date 2018-11-11T06:35:41Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message when encapsulating mpls, map the mpls qos value to an ip tos.

date 2018-11-11T12:47:04Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message copy the mpls cos and use it as the ip dscp/tos/tclass thing.

date 2018-11-11T20:15:24Z
author guenther
files src/sys/arch/sh/include/asm.h log diff annotate
message Add END() macro to set symbol size like every other arch

ok deraadt@

date 2018-11-11T22:31:16Z
author fcambus
files src/sys/dev/pci/pcidevs log diff annotate
message Add ID for a VIA HD Audio device found on my HP t5570 Thin Client.

While there, update URL for the vendor ID search engine.

OK mlarkin@

date 2018-11-11T22:34:43Z
author fcambus
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-12T05:06:50Z
author guenther
files src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
message Fix grammar in comment

date 2018-11-12T06:35:37Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message limit the number of interface units to the number of device minors

this prevents creation of tap and tun devices that you cannot open
from userland because of the limit on the number of dev_t minor
numbers.

the lack of limit was pointed out by Greg Steuck
ok deraadt@ guenther@

date 2018-11-12T07:45:52Z
author claudio
files src/sys/kern/uipc_mbuf.c log diff annotate
src/sys/sys/mbuf.h log diff annotate
message Introduce m_align() a function that works like M_ALIGN() but works with
all types of mbufs. Also introduce some KASSERT in the m_*space() functions
to ensure that no negative number is returned. This also introduces two
internal macros M_SIZE() & M_DATABUF() which return the right size and start
pointer of the mbuf data area. Use it in a few obvious places to simplify code.
OK bluhm@

date 2018-11-12T09:39:52Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
src/sys/net/if_gre.c log diff annotate
message set the hardmtu on ether encap ifs so the mtu can be raised above 1500

date 2018-11-12T15:09:17Z
author visa
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_proc.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/malloc.h log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/sigio.h log diff annotate
src/sys/sys/signalvar.h log diff annotate
message Add a mechanism for managing asynchronous IO signal registrations.
It centralizes IO signal privilege checking and makes possible to revoke
a registration when the target process or process group is deleted.

Adapted from FreeBSD.

OK kettenis@ mpi@ guenther@

date 2018-11-12T16:33:08Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/sys/pipe.h log diff annotate
message Utilize sigio with pipes. This makes fcntl(fd, F_SETOWN, arg) correctly
handle arg as a process ID if the value is positive and as a process
group ID if the value is negative. In addition, now the signal sending
checks privileges.

OK mpi@

date 2018-11-12T16:36:54Z
author krw
files src/sys/net/if.h log diff annotate
src/sys/net/route.h log diff annotate
src/sys/net/rtsock.c log diff annotate
src/sys/net80211/ieee80211_proto.c log diff annotate
message Add new routing socket message RTM_80211INFO to provide details of
802.11 interface state changes (e.g. SSID) to interested parties.

Original diff from phessler@. Many suggestions and tweaks from
claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@

date 2018-11-12T23:32:42Z
author dlg
files src/sys/sys/sockio.h log diff annotate
message add ioctl commands for the setting of prio fields in tx headers

this will be used by encap interfaces where their headers have
fields to store a priority, eg, the dot1p bit of vlan/svlan headers,
or the ip tos or tclass field int the outer ip header in gre, gif,
etherip, and vxlan.

ok claudio@

date 2018-11-12T23:34:48Z
author dlg
files src/sys/net/if.h log diff annotate
message add ifreq bits for the tx header prio field ioctls

a tx header prio can set to a fixed value from 0 to 7, or magic
values to represent populating the prio field from the encapsulated
packet, or from the mbuf prio value.

ok claudio@

date 2018-11-12T23:41:22Z
author dlg
files src/sys/net/if.c log diff annotate
message only let root configure the txprio setting on an interface

ok claudio@

date 2018-11-12T23:57:06Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
message add txprio support

etherip puts the prio in the encapsulating ip header, and supports
using hardcoded prio values or the prio from the mbuf. it encapsulates
ethernet, which doesnt have a prio field unelss you parse the ether
payload, which is not worth it.

ok claudio@

date 2018-11-13T00:00:43Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message add txprio setting support

gif encaps l3, so it can get a prio from the payload, as well as
from the mbuf itself, or a hardcoded value.

ok claudio@

date 2018-11-13T00:03:18Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message add txprio support to gre, mgre, egre, nvgre, and eoip

for l3 interfaces (gre and mgre), allow txprio from the payload,
the mbuf, or a hardcoded value. for l2 interfaces (egre, ngre, and
eoip), get txprio from the mbuf or a hardcoded value.

ok claudio@

date 2018-11-13T01:16:31Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message get the inner and outer tos values right for passing to ip_ecn_ingress

date 2018-11-13T04:47:36Z
author guenther
files src/sys/sys/exec_elf.h log diff annotate
message Add GNU_HASH #defines; improve readelf output for SHT_GNU_HASH

ok naddy@ jca@

date 2018-11-13T13:02:20Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
message Fix fcntl(fd, F_GETOWN) with pipes. As a regression
of kern_descrip.c r1.177 and sys_pipe.c r1.82, the call always
returned an error.

OK jca@ anton@ mpi@

date 2018-11-14T01:06:06Z
author dlg
files src/sys/net/if_gif.c log diff annotate
src/sys/net/if_gre.c log diff annotate
message according to ip_ipip.c, rfc1853 says not to copy the ttl on decapsulation

rfc1853 is about IP in IP Tunneling. rfc2003 about IP Encapsulation
within IP agrees.

date 2018-11-14T01:27:00Z
author dlg
files src/sys/net/if_gre.c log diff annotate
message use the txprio setting to populate the tos in keepalive packets.

the mbuf prio will still be set according to the llprio value, but the
tos on the packet may be forced to a specific number by txprio

date 2018-11-14T01:30:38Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message get ecn ingress args the right way round. again.

date 2018-11-14T02:49:15Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message revert 1.121. i got confused between ecn on ingress and egress

date 2018-11-14T03:20:03Z
author dlg
files src/sys/net/if_gif.c log diff annotate
message remove the encapsulation headers before looking at the inner headers

it works less well when you look before the adj

date 2018-11-14T04:36:02Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_fb.c log diff annotate
message Setup radeondrm burner task. Missed when updating to linux 4.4.
Fixes wsconsctl display.screen_off panic reported by Dmitry Murti.

date 2018-11-14T06:37:36Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_fb.c log diff annotate
message Add back part of the changes to takeover the firmware framebuffer on
sparc64 lost in the update to linux 4.4. Compile tested only.

date 2018-11-14T17:00:33Z
author mpi
files src/sys/dev/usb/ugen.c log diff annotate
src/sys/dev/usb/usb_subr.c log diff annotate
message free(9) sizes for configuration descriptors.

ok tedu@, visa@

date 2018-11-14T17:07:44Z
author mpi
files src/sys/net/bridgectl.c log diff annotate
src/sys/net/if_bridge.c log diff annotate
message Batch copyout(9)s in preparation for finer locking.

Tested by Hrvoje Popovski, inputs and ok visa@

date 2018-11-14T17:18:18Z
author mpi
files src/sys/dev/usb/usb.c log diff annotate
message free(9) sizes for configuration descriptors, missed in previous.

date 2018-11-14T17:48:52Z
author mpi
files src/sys/kern/subr_extent.c log diff annotate
message Userland malloc(3) & free(3) take only one argument.

date 2018-11-14T17:52:48Z
author mpi
files src/sys/kern/subr_extent.c log diff annotate
message Revert previous, it breaks regress.

date 2018-11-14T23:55:04Z
author dlg
files src/sys/net/if_gif.c log diff annotate
src/sys/netinet/ip_ecn.c log diff annotate
src/sys/netinet/ip_ecn.h log diff annotate
src/sys/netinet/ip_ipip.c log diff annotate
message provide ip_tos_patch() for setting ip_tos and patching the ipv4 cksum.

previously the gif code would patch the tos field and not recalc
the cksum, which would cause ip input code to drop the packet due
to a cksum failure. the ipip code patched ip_tos and unconditionally
recalculated the cksum, making it correct, but also wiping out any
errors that may have been present before the recalculation. updating
the cksum rather than replacing it lets cksum failures still fire.

ip_tos_patch() is provided in the ecn code since it's because of ecn
propagation that we need to update the tos field. internally it
works like pf_patch_8 and pf_cksum_fixup, but since pf is optional
it rolls its own code. procter may fix that in the future...

ok claudio@