OpenBSD/src wHXUeydsys/dev/ofw ofw_regulator.c ofw_regulator.h

   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@
VersionDeltaFile
1.12+136-25sys/dev/ofw/ofw_regulator.c
1.7+7-2sys/dev/ofw/ofw_regulator.h
+143-272 files

OpenBSD/src 7roetgFsys/dev/isa pcppi.c spkr.c

   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 at syzkaller.appspotmail.com
VersionDeltaFile
1.14+11-1sys/dev/isa/pcppi.c
1.23+5-1sys/dev/isa/spkr.c
+16-22 files

OpenBSD/src r7oFPZHusr.sbin/vmd vm.c vmd.h

   vmd(8): initialize guest %drX registers to power-on defaults on launch

   Initializes the %drX registers to power on defaults, and bump the VM
   send/recieve header to reflect same

   discussed with deraadt@
VersionDeltaFile
1.44+13-1usr.sbin/vmd/vm.c
1.90+2-2usr.sbin/vmd/vmd.h
+15-32 files

OpenBSD/src kKo6dwDsys/arch/amd64/amd64 vmm.c vmm_support.S, sys/arch/amd64/include vmmvar.h

   vmm(4): allow preservation and restoration of guest debug registers

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

   discussed with deraadt@

OpenBSD/src 71s4Viosbin/ifconfig ifconfig.c

   avoid abbreviation "AF" when "address family" fits on the line; noted by Alfred Morgan
VersionDeltaFile
1.393+4-4sbin/ifconfig/ifconfig.c
+4-41 files

OpenBSD/src satTpZCsys/dev/pci pcidevs

   fix the name of some BCM57417 and BCM57416 parts

   from msaitoh
VersionDeltaFile
1.1878+3-3sys/dev/pci/pcidevs
+3-31 files

OpenBSD/src 2TLAstYsys/dev/pci pcidevs.h pcidevs_data.h

   regen
VersionDeltaFile
1.1870+2-2sys/dev/pci/pcidevs.h
1.1865+1-1sys/dev/pci/pcidevs_data.h
+3-32 files

OpenBSD/src 3fhVB9jsys/dev/pci pcidevs

   the broadcom BCM57811_VF device id should be 0x163f, not 0x16ef

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

   from msaitoh
   ok jmatthew@
VersionDeltaFile
1.1877+2-2sys/dev/pci/pcidevs
+2-21 files

OpenBSD/src EEXt6tSsys/net if_mpw.c

   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...
VersionDeltaFile
1.44+44-4sys/net/if_mpw.c
+44-41 files

OpenBSD/src EEf34Jlsys/net if_mpw.c

   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
VersionDeltaFile
1.43+5-3sys/net/if_mpw.c
+5-31 files

OpenBSD/src hel3GdEsys/net if_mpw.c

   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.
VersionDeltaFile
1.42+7-7sys/net/if_mpw.c
+7-71 files

OpenBSD/src AkzP2kQsys/net if_mpe.c

   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.
VersionDeltaFile
1.85+29-9sys/net/if_mpe.c
+29-91 files

OpenBSD/src Dl1FD3Fsys/net if_mpw.c

   sigh, more whitespace fixes

   no functional change
VersionDeltaFile
1.41+2-2sys/net/if_mpw.c
+2-21 files

OpenBSD/src qyYXgO8sys/net if_mpw.c

   oops, whitespace tweak

   no functional change
VersionDeltaFile
1.40+2-2sys/net/if_mpw.c
+2-21 files

OpenBSD/src J75HqJ5sys/net if_mpw.c

   add support for SIOCGETLABEL

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

   discussed with claudio@
VersionDeltaFile
1.39+23-1sys/net/if_mpw.c
+23-11 files

OpenBSD/src JFmecFhsys/net if_ethersubr.c

   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@
VersionDeltaFile
1.259+5-8sys/net/if_ethersubr.c
+5-81 files

OpenBSD/src PU6UkGqsys/kern kern_sig.c

   open the coredump file non-blocking. cheloha found it blocks with a fifo.
   ok cheloha deraadt
VersionDeltaFile
1.228+3-2sys/kern/kern_sig.c
+3-21 files

OpenBSD/src m4Tir4tregress/usr.sbin/ospfd Makefile

   Use $CC instead of gcc, the latter does not exist on arm64.
   found by Moritz Buhl
VersionDeltaFile
1.10+2-2regress/usr.sbin/ospfd/Makefile
+2-21 files

OpenBSD/src VTZtsC1usr.sbin/pcidump pcidump.c

   use \t instead of a literal tab in a format string
VersionDeltaFile
1.49+1-1usr.sbin/pcidump/pcidump.c
+1-11 files

OpenBSD/src Dnc51O6usr.sbin/pcidump pcidump.c

   convert a series of if statements checking the cap type to switch
VersionDeltaFile
1.48+6-3usr.sbin/pcidump/pcidump.c
+6-31 files

OpenBSD/src tySiQCxetc rc

   Simplify NFS check in reorder_libs()

   Loop over df(1)'s output directly, ensure the resulting list of block
   devices is unique to avoid later duplicity checks and redundant mount(8)
   invocations.

   This allows direct bail out on invalid types and simpler saving for later
   remount.

   OK deraadt
VersionDeltaFile
1.533+6-8etc/rc
+6-81 files

OpenBSD/src ZjMblU4regress/usr.sbin/ospfd Makefile, regress/usr.sbin/switchd Makefile

   With new Perl we have add .OBJDIR to @INC.

OpenBSD/src 9qAfeGjusr.sbin/httpd config.c parse.y

   httpd(8): add support for setting custom FastCGI parameters.

   This commit extends the existing grammar by adding the param option
   to the fastcgi directive: fastcgi param name value.

   Example usage:
     fastcgi param VAR1 hello
     fastcgi param VAR2 world

   With help and OK florian@
   Rogue manpage bits, feel free to modify them.

OpenBSD/src ED8FffPsys/dev/ic ar5008.c ar9003.c

   Fix a cosmetic issue in athn(4)'s bpf(4) tap.
   tcpdump -i athn0 -y IEEE802_11_RADIO was showing a SHORTPRE flag on most
   frames because a PHY type check was missing from the bpf tap code path.
   Short preamble only applies to 2, 5.5, and 11 MBit/s CCK frames.
VersionDeltaFile
1.48+3-2sys/dev/ic/ar5008.c
1.48+3-2sys/dev/ic/ar9003.c
+6-42 files

OpenBSD/src o2ipCvXusr.sbin/bgpctl bgpctl.c

   Switch betoh64 to the posix be64toh also remove some casts since we now
   use long long instead of int64_t.
VersionDeltaFile
1.230+20-20usr.sbin/bgpctl/bgpctl.c
+20-201 files

OpenBSD/src JYx8kLiusr.sbin/bgpd bgpd.h session.h

   Convert some (u_)int64_t to (unsigned) long long. Makes portability a bit
   nicer since it requires less casts.
   sigh deraadt@
VersionDeltaFile
1.373+24-24usr.sbin/bgpd/bgpd.h
1.132+17-17usr.sbin/bgpd/session.h
+41-412 files

OpenBSD/src M2E2s9Psys/dev/ic bwfm.c, sys/net80211 ieee80211.c ieee80211_node.h

   Make ifconfig(8) display whether bwfm(4) firmware is using 802.11ac.
   ok patrick@ mpi@

OpenBSD/src LVxuPSWshare/man/man9 vnode.9

   add v_uvcount; from fasse
VersionDeltaFile
1.30+3-2share/man/man9/vnode.9
+3-21 files

OpenBSD/src i865r6Gsys/dev/wscons wsmux.c

   whitespace nits
VersionDeltaFile
1.41+4-4sys/dev/wscons/wsmux.c
+4-41 files

OpenBSD/src e8i3wjqsys/dev/wscons wskbd.c wsmux.c

   favor C99 initializers for improved grepability; ok mpi@

OpenBSD/src 2QfdT5Dsbin/isakmpd isakmpd.8

   oops, bad Pp snuck in;
VersionDeltaFile
1.122+2-3sbin/isakmpd/isakmpd.8
+2-31 files

OpenBSD/src MK1yM9Metc/etc.hppa login.conf, etc/etc.sparc64 login.conf

   sync staff datasize-cur with default
   ok deraadt@

OpenBSD/src N4Fmkexsbin/isakmpd isakmpd.8

   Rework the certificate generation examples a bit:

   - show an example sed to substitute the $ENV::CERTIP/CERTFQDN strings
   while copying /etc/ssl/x509v3.cnf to a temp file

   - don't use /etc/ssl/x509v3.cnf on the command line when we've just
   told people to copy and edit

   - fix an instance of CERTIP that should have been CERTFQDN

   based on diffs from Sevan Janiyan, feedback/ok jmc@
VersionDeltaFile
1.121+19-13sbin/isakmpd/isakmpd.8
+19-131 files

OpenBSD/src 1ph9et0usr.bin/rsync sender.c uploader.c

   new attempt to sync with kristaps up to Sun Feb 17 2019

   339cf5998c0c022623cd68de50722b6c14543952 Push "error trail" further into code.

   baf58ce5fe1bc6ce431b3b0ac8264b83ae8c7d02 Document all arguments.  Add
   common -av usage.  Remove bits about not supporting anything but
   files/dirs.

   821a811a8c80e52fb56b241fc65a16cae1b4fb2c Disambiguate as prodded by deraadt@

   6c4475b8f226e9031ec0ec1b3f14f7d347132c87 Add -h to usage string

   4d344ae6156873b44c95de0c1ed629e637c2d7ab Clarify error message
   language, use service name instead of port, specify that the socket is
   SOCK_STREAM.  From deraadt@.  Tweaked for lowercase messages.

   f3ec049e76257fc96bcdc872f1d3b967b98f3eb6 In consideration to benno@'s
   comments, let the mktemp functions propogate an errno handled by the
   caller.  Also keep the original line lengths.  While in mktemp.c, make
   some defines into an enum.

   e116c2bd00e634b56e4276120135915ceaa31cf2 Put the FSM of the sender
   into its own function.  Put dry_run ack and end of phase ack into the
   send buffer too, further reducing the possibility of deadlock.


    [6 lines not shown]

OpenBSD/src JvsTnV0usr.bin/rsync sender.c uploader.c

   revert previous

OpenBSD/src IYxe3H8usr.bin/rsync sender.c uploader.c

   sync with kristaps up to Sun Feb 17 2019

   339cf5998c0c022623cd68de50722b6c14543952 Push "error trail" further into code.

   baf58ce5fe1bc6ce431b3b0ac8264b83ae8c7d02 Document all arguments.  Add
     common -av usage.  Remove bits about not supporting anything but
     files/dirs.

   821a811a8c80e52fb56b241fc65a16cae1b4fb2c Disambiguate as prodded by deraadt@

   6c4475b8f226e9031ec0ec1b3f14f7d347132c87 Add -h to usage string

   4d344ae6156873b44c95de0c1ed629e637c2d7ab Clarify error message
     language, use service name instead of port, specify that the socket is
     SOCK_STREAM.  From deraadt@.  Tweaked for lowercase messages.

   f3ec049e76257fc96bcdc872f1d3b967b98f3eb6 In consideration to benno@'s
     comments, let the mktemp functions propogate an errno handled by the
     caller.  Also keep the original line lengths.  While in mktemp.c, make
     some defines into an enum.

   e116c2bd00e634b56e4276120135915ceaa31cf2 Put the FSM of the sender
     into its own function.  Put dry_run ack and end of phase ack into the
     send buffer too, further reducing the possibility of deadlock.


    [6 lines not shown]

OpenBSD/src 9D9uw4vusr.sbin/bgpctl parser.c

   Bring in fixes in the community parsing code done in parse.y and fix
   a bug that sneaked in some time ago which broke large community parsing.
   Bug found by gcc on a linux box
VersionDeltaFile
1.91+4-5usr.sbin/bgpctl/parser.c
+4-51 files

OpenBSD/src SC7KAXvsys/dev/ofw ofw_regulator.c

   In the voltage regulator getter we need to actually check the GPIO
   pin before setting the "pin is high" bit in the index for the states.
   Otherwise the index always has all possible bits sets.

   ok kettenis@
VersionDeltaFile
1.11+3-2sys/dev/ofw/ofw_regulator.c
+3-21 files

OpenBSD/src ZYEqZQsgnu/llvm/lib/Target/PowerPC PPCISelLowering.cpp PPCSubtarget.h

   When generating code for OpenBSD/powerpc, avoid unaligned floating-point
   load and store instructions.  The vast majority of PowerPC CPUs that
   OpenBSD runs on don't implement those and will generate an alignment
   exceptions.  While we do emulate lfd and stfd (to work around GCC bugs),
   we don't emulate lfs and stfs.  It is way more efficient to have the
   compiler generate code that only uses aligned load and store instructions.

   Based on a diff from Georg Koehler.

   ok patrick@, visa@

OpenBSD/src 9I8J6xIsys/dev/wscons wsmux.c wsmuxvar.h

   Serialize access to the list of attached child devices belonging to a
   wsmux. When invoking wsevsrc_* functions on a attached child device,
   underlying driver can sleep; this introduces a race where another thread
   is able to modify the list leading to all kinds of corruptions.

   ok visa@

   Reported-by: syzbot+03f7377a9848d7d008c9 at syzkaller.appspotmail.com
VersionDeltaFile
1.39+45-7sys/dev/wscons/wsmux.c
1.11+2-1sys/dev/wscons/wsmuxvar.h
+47-82 files

OpenBSD/src TkvyNb5lib/libusbhid usbhid.3

   type typo
VersionDeltaFile
1.19+3-3lib/libusbhid/usbhid.3
+3-31 files

OpenBSD/src MxUPhHXsbin/unwind captiveportal.c

   fix typo
VersionDeltaFile
1.7+2-2sbin/unwind/captiveportal.c
+2-21 files

OpenBSD/src 0fzoY4Ausr.sbin/bgpd parse.y

   Add stdlib.h since bsearch and strtoul need it.
VersionDeltaFile
1.379+2-1usr.sbin/bgpd/parse.y
+2-11 files

OpenBSD/src AuRJj2tusr.sbin/bgpd parse.y

   Initialize type and subtype because modern gcc complains about it.
VersionDeltaFile
1.378+2-2usr.sbin/bgpd/parse.y
+2-21 files

OpenBSD/src zNa7jFssbin/pfctl pfctl.c, share/man/man4 pf.4

   Change ps_len of struct pfioc_states and psn_len of struct
   pfioc_src_nodes to size_t.  This avoids integer truncation by casts
   to unsigned.  As the types of DIOCGETSTATES and DIOCGETSRCNODES
   ioctl(2) arguments change, pfctl(8) and systat(1) should be updated
   together with the kernel.  Calculate number of pf(4) states as
   size_t in userland.
   OK sashan@ deraadt@
VersionDeltaFile
1.43+38-38usr.bin/systat/pftop.c
1.371+5-7sbin/pfctl/pfctl.c
1.91+4-4share/man/man4/pf.4
1.343+4-4sys/net/pf_ioctl.c
1.490+3-3sys/net/pfvar.h
+54-565 files

OpenBSD/src 0sbdkBausr.sbin/bgpd parse.y

   Drop netmpls/mpls.h include, not needed here.
VersionDeltaFile
1.377+1-2usr.sbin/bgpd/parse.y
+1-21 files

OpenBSD/src PXvtrQEusr.sbin/bgpd parse.y bgpd.h

   Use (unsigned) long long instead of (u_)int64_t since that drops the
   need to do casts for printf.
VersionDeltaFile
1.376+4-4usr.sbin/bgpd/parse.y
1.372+2-2usr.sbin/bgpd/bgpd.h
1.45+2-2usr.sbin/bgpd/util.c
+8-83 files

OpenBSD/src fGZDAYxusr.sbin/bgpd printconf.c

   For portability use a (unsigned long long) cast for %llu / %llx formats
   in printf since not all systems use unsigned long long for u_int64_t.
VersionDeltaFile
1.131+5-5usr.sbin/bgpd/printconf.c
+5-51 files

OpenBSD/src WPnh5Biusr.bin/ctfconv ctfstrip

   Using getopt(1) is more idiomatic and consistent with other scripts.

   Ok mpi@
VersionDeltaFile
1.10+20-20usr.bin/ctfconv/ctfstrip
+20-201 files

OpenBSD/src DvIa3T9usr.bin/ctfconv ctfstrip

   Fix in-place stripping by using correct form of parameter substitution.

   Ok mpi@
VersionDeltaFile
1.9+3-3usr.bin/ctfconv/ctfstrip
+3-31 files