OpenBSD cvs log

created 2019-02-23T16:26:03Z
begin 2019-02-20T00:00:00Z
end 2019-02-21T00:00:00Z
path src/sys
commits 16

date 2019-02-20T00:03:15Z
author dlg
files src/sys/net/if_ethersubr.c log diff annotate
message make ether_output with AF_MPLS use a routes gateway address if available

sending an MPLS frame is weird compared to other address families.
other families figure out and pass the address on the local link
for ether_output to use for resolution, but AF_MPLS basically passes
a dummy sockaddr so ether_output can get the ethernet protocol field
right. ether_output then has to pull the route apart to figure out
which address and family to use for address resolution on the local
net. eg, MPLS tagged routes via ip addresess need to pull the route
apart and get at the AF_INET sockaddr to pass to arpresolve. that
code currently uses the destination address of the route, but if
that destination is not on the local network, we'd end up using it
for arp requests that don't work.

this change uses the rt_gateway sockaddr if RTF_GATEWAY is set.
this solves the problem in my testing and doesn't seem to break
other uses cases ive tried.

reported by adrian close via bugs@
ok deraadt@ claudio@

date 2019-02-20T00:15:41Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message add support for SIOCGETLABEL

this is a first step in breaking up the monolithic and redundant
SIOCSETMPWCFG ioctls

discussed with claudio@

date 2019-02-20T00:16:31Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message oops, whitespace tweak

no functional change

date 2019-02-20T00:17:35Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message sigh, more whitespace fixes

no functional change

date 2019-02-20T00:20:19Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message add the locking for coordinating between ioctls and a clone destroy.

i wrote this in mpe before porting and committing it in mpw, but
forgot to commit the mpe version.

date 2019-02-20T00:31:17Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message replace sc_flgas with sc_cword

the only flag used with sc_flags was the one to turn the control
word on and off.

this is in preparation for split ioctls for controlling pseudowire
behaviour. sc_cword can be set atomically and indepentently as a
separate variable.

date 2019-02-20T00:38:14Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message don't store the BOS flag as part of the remote label, add it at tx time.

this is to prepare for flow aware transport for FAT from RFC 6391

date 2019-02-20T01:04:53Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message add support for rfc 6391: flow-aware transport of pseudowires.

this basically adds a dummy mpls tag to the stack for pseudowires
and uses a flow as the label on that dummy tag. this allows
intermediate systems that hash packets onto multiple links to use
the extra tag as input to the hash, providing more entropy and
therefore better load balancing.

it's a pity there's no way to turn it on yet...

date 2019-02-20T03:11:38Z
author dlg
files src/sys/dev/pci/pcidevs log diff annotate
message the broadcom BCM57811_VF device id should be 0x163f, not 0x16ef

technically 0x16ef is for "BCM57416 NetXtreme-E RDMA Partition".

from msaitoh
ok jmatthew@

date 2019-02-20T03:11:56Z
author dlg
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2019-02-20T03:55:49Z
author dlg
files src/sys/dev/pci/pcidevs log diff annotate
message fix the name of some BCM57417 and BCM57416 parts

from msaitoh

date 2019-02-20T06:59:16Z
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/vmmvar.h log diff annotate
message vmm(4): allow preservation and restoration of guest debug registers

Allow save/restore of %drX registers during VM exit and entry

discussed with deraadt@

date 2019-02-20T07:00:31Z
author anton
files src/sys/dev/isa/pcppi.c log diff annotate
src/sys/dev/isa/spkr.c log diff annotate
message Reject negative input from userland in spkrioctl(). One of the arguments
are later passed to timeout_add() which panics if the given ticks are
negative. While here, clamp arguments in pcppi_bell() in order to
prevent overflow.

ok visa@

Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com

date 2019-02-20T07:36:37Z
author patrick
files src/sys/dev/ofw/ofw_regulator.c log diff annotate
src/sys/dev/ofw/ofw_regulator.h log diff annotate
message Add support for current limit regulators in addition to the voltage
regulators we already support. The GPIO-based regulators are rather
independent of the type, we only need to know the type to check the
upper and lower limits.

With feedback from kettenis@

date 2019-02-20T17:11:51Z
author mpi
files src/sys/net/bridgectl.c log diff annotate
src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_bridge.h log diff annotate
message Protect the hash table with a mutex.

inputs & ok visa@

date 2019-02-20T17:54:34Z
author anton
files src/sys/dev/wscons/wsmux.c log diff annotate
message When adding a wsmux device to an existing wsmux device using
ioctl(WSMUXIO_ADD_DEVICE), two distinct locks of the same type are
acquired. Thus, witness will emit warning. Since acquiring two different
locks of the same type is harmless in this context, relax the witness
check by flagging the locks as RWL_DUPOK.

ok visa@

Reported-by: syzbot+249e483406a1f7843915@syzkaller.appspotmail.com