OpenBSD src changes summary for 2016-08-14 to 2016-08-21 inclusive
==================================================================

bin/chio                                bin/csh
bin/dd                                  bin/df
bin/echo                                bin/ed
bin/kill                                bin/ksh
bin/ls                                  bin/pax
bin/sleep                               bin/stty
bin/sync                                bin/test
distrib/miniroot                        distrib/sets
distrib/special                         etc/examples/pkg.conf
games/factor                            gnu/usr.bin/binutils-2.17
gnu/usr.bin/cvs                         lib/libc
lib/libtls                              lib/libutil
libexec/ftpd                            libexec/ld.so
libexec/login_passwd                    libexec/login_reject
libexec/login_yubikey                   libexec/rpc.rusersd
regress/lib                             regress/sys
regress/usr.bin                         regress/usr.sbin
sbin/dhclient                           sbin/disklabel
sbin/fsck_ffs                           sbin/fsirand
sbin/ifconfig                           sbin/sysctl
share/man                               sys/arch/alpha/alpha
sys/arch/amd64/amd64                    sys/arch/amd64/include
sys/arch/arm/arm                        sys/arch/arm/conf
sys/arch/arm/cortex                     sys/arch/arm/include
sys/arch/arm/xscale                     sys/arch/armv7/armv7
sys/arch/armv7/broadcom                 sys/arch/armv7/conf
sys/arch/armv7/dev                      sys/arch/armv7/exynos
sys/arch/armv7/imx                      sys/arch/armv7/include
sys/arch/armv7/omap                     sys/arch/armv7/sunxi
sys/arch/armv7/vexpress                 sys/arch/hppa/conf
sys/arch/hppa/dev                       sys/arch/hppa/hppa
sys/arch/i386/i386                      sys/arch/macppc/macppc
sys/arch/mips64/include                 sys/arch/mips64/mips64
sys/arch/octeon/dev                     sys/arch/octeon/octeon
sys/arch/sgi/sgi                        sys/arch/sh/sh
sys/arch/socppc/socppc                  sys/arch/sparc/sparc
sys/arch/sparc64/include                sys/arch/sparc64/sparc64
sys/arch/zaurus/zaurus                  sys/dev
sys/dev/ic                              sys/dev/microcode
sys/dev/ofw                             sys/dev/pci
sys/dev/pv                              sys/dev/usb
sys/dev/wscons                          sys/kern
sys/miscfs/fuse                         sys/net
sys/net80211                            sys/netinet
sys/uvm                                 usr.bin/cmp
usr.bin/compress                        usr.bin/cvs
usr.bin/ftp                             usr.bin/jot
usr.bin/login                           usr.bin/mandoc
usr.bin/mg                              usr.bin/openssl
usr.bin/passwd                          usr.bin/ssh
usr.bin/vi                              usr.bin/vmstat
usr.sbin/bgpd                           usr.sbin/bind
usr.sbin/dhcpd                          usr.sbin/httpd
usr.sbin/installboot                    usr.sbin/iscsictl
usr.sbin/iscsid                         usr.sbin/memconfig
usr.sbin/mtree                          usr.sbin/ndp
usr.sbin/pstat                          usr.sbin/pwd_mkdb
usr.sbin/rebound                        usr.sbin/relayd
usr.sbin/rmt                            usr.sbin/rtadvd
usr.sbin/sa                             usr.sbin/slowcgi
usr.sbin/smtpd                          usr.sbin/snmpd
usr.sbin/syslogd                        usr.sbin/tokenadm
usr.sbin/user                           usr.sbin/vipw
usr.sbin/vmctl                          usr.sbin/vmd

== bin =============================================================== 01/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin

chio

  ~ chio.1                                

  > Add HISTORY.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using NetBSD CVS. (schwarze@)

csh

  ~ misc.c                                

  > Don't call sysconf() in a loop conditional when the loop won't affect it
  > ok natano@ tedu@ (guenther@)

  ~ func.c                                

  > Don't reinvent rlim_t; when printing it use %llu and cast to
  > unsigned long long
  > ok natano@ tedu@ (guenther@)

dd

  ~ args.c                                

  > replace strtoq with strtoll. ok openbsd (tedu@)

  ~ misc.c                                

  > %qd -> %lld for an off_t already being cast to (long long)! (krw@)

  ~ args.c                                ~ conv.c
  ~ dd.h                                  

  > Nuke a bunch of whitespace nits seen while '%q' hunting. (krw@)

  ~ dd.1                                  

  > Add HISTORY section.
  > Information found on: http://www.tuhs.org/cgi-bin/utree.pl
  > Checked by Sevan Janiyan <venture37 at geeklan dot co dot uk>. (schwarze@)

df

  ~ df.c                                  

  > Another %qd -> %lld + (long long) for off_t's. (krw@)

echo

  ~ echo.1                                

  > Add, correct, and improve HISTORY sections.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using http://minnie.tuhs.org/. (schwarze@)

ed

  ~ main.c                                

  > Piping to a shell command does not count as a save, so don't reset the
  > modified flag.
  > from Jerome Frgacic (jerome.frgacic (at) yahoo.fr)
  > ok tb (natano@)

kill

  ~ kill.1                                

  > Add, correct, and improve HISTORY sections.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using http://minnie.tuhs.org/. (schwarze@)

ksh

  ~ edit.c                                

  > Avoid a compiler warning about use of uninitialized l.beg emitted
  > when ksh is compiled with -Os (done in distrib/special): move the
  > bit using XPptrv(l) (which expands to l.beg) where it is actually
  > used and clearly initialized.
  > ok tedu, tweak + ok millert (tb@)

ls

  ~ print.c                               

  > %*qd -> %*lld + (long long) for off_t.
  > Avoid some casts by changing printsize() to take an int (the only
  > type actually passed via that parameter) instead of size_t.
  > Tweaks & ok guenther@ (krw@)

  ~ ls.c                                  ~ print.c

  > Bring types of variables used with struct stat into the modern world.
  > Replace a couple of u_long paramaters with int as they were only passed int
  > values and the function re-cast them to (int) anyway. Weird.
  > ok tedu@ (krw@)

  ~ ls.c                                  

  > Nuke some erroneous leading whitespace. (krw@)

pax

  ~ cpio.c                                ~ extern.h
  ~ gen_subs.c                            ~ options.c
  ~ tar.c                                 

  > Replace u_quad_t with unsigned long long and replace "uqd" with "ull" in
  > function names to match.  Pull some tangled assignments out of conditions
  > and use >>= where possible.
  > ok millert@ (guenther@)

  ~ ar_io.c                               ~ buf_subs.c
  ~ cpio.c                                ~ file_subs.c
  ~ tables.c                              ~ tar.c

  > Remove many unnecessary casts.  Verified by comparing generated code on
  > both ILP32 and LP64.
  > ok millert@ (guenther@)

  ~ pax.1                                 

  > Add HISTORY.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using the CSRG archive CD. (schwarze@)

sleep

  ~ sleep.1                               

  > Add, correct, and improve HISTORY sections.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using http://minnie.tuhs.org/. (schwarze@)

stty

  ~ stty.1                                

  > already in v2 according to
  > http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2
  > nd_edition_manual.pdf
  > patch from Sevan Janiyan <venture37 at geeklan dot co dot uk> (schwarze@)

sync

  ~ sync.8                                

  > Add, correct, and improve HISTORY sections.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using http://minnie.tuhs.org/. (schwarze@)

test

  ~ test.1                                

  > Add, correct, and improve HISTORY sections.
  > From Sevan Janiyan <venture37 at geeklan dot co dot uk>.
  > Verified using http://minnie.tuhs.org/. (schwarze@)

== distrib =========================================================== 02/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib

miniroot

  ~ install.sub                           

  > Use more dhcp info when trying autoinstall/autoupgrade.
  > For the file name try 'filename' then 'option bootfile-name'.
  > For the server name try 'server-name' then 'option tftp-server-name' then
  > 'next-server'.
  > Original idea from Patrick Lundin. Suggestions from rpe@.
  > Tweaks & ok halex@ (krw@)

  ~ install.sub                           

  > tweak previous
  > OK halex, krw (rpe@)

  ~ install.sub                           

  > Make lease_value() unescape quoted strings. To be fully compliant, we
  > should unvis() it too, but I think this is enough, at least for now.
  > ok krw@ (halex@)

sets

  ~ lists/base/md.alpha                   ~ lists/base/md.amd64
  ~ lists/base/md.armv7                   ~ lists/base/md.hppa
  ~ lists/base/md.i386                    ~ lists/base/md.landisk
  ~ lists/base/md.loongson                ~ lists/base/md.luna88k
  ~ lists/base/md.macppc                  ~ lists/base/md.octeon
  ~ lists/base/md.sgi                     ~ lists/base/md.socppc
  ~ lists/base/md.sparc                   ~ lists/base/md.sparc64
  ~ lists/base/md.zaurus                  ~ lists/comp/mi
  ~ lists/man/mi                          

  > sync (deraadt@)

  ~ lists/comp/mi                         

  > sync (deraadt@)

  ~ lists/base/md.loongson                ~ lists/base/md.octeon
  ~ lists/base/md.sgi                     ~ lists/comp/md.loongson
  ~ lists/comp/md.octeon                  ~ lists/comp/md.sgi

  > sync (deraadt@)

  ~ lists/man/mi                          

  > sync (deraadt@)

special

  ~ Makefile                              + doas/Makefile
  + doas/doas.c                           

  > add a special edition doas that only lets root drop privs.
  > maybe the installer can use something like this, wink wink.
  > ok deraadt (tedu@)

== etc =============================================================== 03/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc

examples/pkg.conf

  ~ examples/pkg.conf                     

  > sync (sthen@)

  ~ examples/pkg.conf                     

  > sync (sthen@)

== games ============================================================= 04/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/games

factor

  ~ factor.c                              

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

== gnu =============================================================== 05/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/gnu

usr.bin/binutils-2.17

  ~ ld/scripttempl/elf.sc                 

  > Turning off relro shouldn't insert padding into the middle of the relro
  > section; remove the PAD_GOT0 use that I should have deleted before.  This
  > caused ld.so crashes on arm when building binutils.
  > critical debugging observations by kettenis@ (guenther@)

usr.bin/cvs

  ~ src/logmsg.c                          

  > When the commit message is empty, don't default to c)ontinue
  > (committing without log message), but to a)bort.
  > ok jcs, natano; millert and tj agree (tb@)

== lib =============================================================== 06/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib

libc

  ~ gen/getpwent.3                        ~ gen/getpwnam.3

  > Refer to /etc/passwd consistently as the "legacy password file" and
  > remove some references to differences between versions 6 and 7.
  > ok jmc, millert, tedu (tb@)

  - stdlib/qabs.3                         - stdlib/qabs.c
  - stdlib/qdiv.3                         - stdlib/qdiv.c
  ~ hidden/stdlib.h                       ~ stdlib/Makefile.inc
  ~ stdlib/div.3                          ~ stdlib/imaxdiv.3
  ~ stdlib/labs.3                         ~ stdlib/ldiv.3
  ~ stdlib/llabs.c                        ~ stdlib/lldiv.3
  ~ stdlib/lldiv.c                        

  > Reduce qabs() and qdiv() to aliases of llabs() and lldiv().
  > Merge the manual pages and call them deprecated there.
  > ok and manpage tweak jmc@, ok natano@ (guenther@)

  ~ stdlib/labs.3                         ~ stdlib/lldiv.3

  > add a bit of spacing to previous, to keep the notes about deprecated
  > functions out the way of the main body;
  > ok guenther (jmc@)

  ~ stdlib/malloc.c                       

  > wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@ (otto@)

  ~ stdio/vfprintf.c                      ~ stdio/vfwprintf.c

  > Generate syslog warnings for %s fmt strings NULL to "(null)" conversions.
  > Over time we can repair software which performs this non-standard
  > behaviour,
  > and fix bugs along the way.  Let's first find out how bad the situation is
  > by deploying this in snapshots.
  > This type of logging is possible because OpenBSD syslog_r(3) ->
  > sendsyslog(2)
  > is side-effect free enough to be used in the bowels of libc.
  > ok tedu (deraadt@)

  ~ stdio/vfprintf.c                      ~ stdio/vfwprintf.c

  > % is escaped with more %, not backslash. (tedu@)

  ~ sys/connect.2                         

  > Add an EXAMPLES section that illustrates how to deal with connect(2)
  > returning EINTR.  OK jung@ deraadt@ (millert@)

  ~ asr/asr_private.h                     

  > Declare all _asr_* debug functions as hidden.
  > Reported by & similar diff by guenther@ some time ago, ok eric@ (jca@)

  ~ sys/connect.2                         

  > Sync connect_wait() example with its real usage in ftp(1). (millert@)

  ~ sys/__thrsigdivert.2                  

  > fix obvious typo in the .Dt section number (schwarze@)

  ~ stdio/fgetwln.c                       

  > bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;
  > OK jca@ martijn@ millert@ (schwarze@)

libtls

  ~ tls.c                                 ~ tls_client.c
  ~ tls_internal.h                        ~ tls_server.c

  > Explicitly pass in an SSL_CTX * to the functions that operate on one,
  > instead of assuming that they should use the one associated with the TLS
  > context. This allows these functions to be used with the additional
  > SSL contexts that are needed to support server-side SNI.
  > Also rename tls_configure_keypair() to tls_configure_ssl_keypair(), so that
  > these functions have a common prefix.
  > ok reyk@ (jsing@)

  ~ tls_conninfo.c                        

  > Fix some style(9) issues. (jsing@)

  ~ tls_internal.h                        

  > Group conninfo fields by connection and peer cert based information,
  > sort and remove unused fingerprint. (jsing@)

  ~ tls_internal.h                        

  > The tls_conninfo serial is also unused. (jsing@)

  ~ tls_init.3                            

  > Rework parts of the libtls man page for clarity. Split out the connection
  > information related functions under their own heading and dedup the text
  > relating to when these functions can be called.
  > With input from and ok jmc@ (jsing@)

  ~ tls_server.c                          

  > Split out the TLS server SSL_CTX allocation and configuration code, so
  > that it can be reused to allocate the additional SSL_CTXs needed for SNI.
  > ok reyk@ (jsing@)

libutil

  ~ pw_init.3                             ~ pw_lock.3

  > Refer to /etc/passwd consistently as the "legacy password file" and
  > remove some references to differences between versions 6 and 7.
  > ok jmc, millert, tedu (tb@)

== libexec =========================================================== 07/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/libexec

ftpd

  ~ ftpcmd.y                              ~ ftpd.c

  > Convert %q to %ll with long long casts for printf()
  > Delete pointless casts to off_t, void*, and uid_t
  > ok krw@ (guenther@)

  ~ logutmp.c                             

  > When upcasting to off_t for multiplication, the cast needs to be *before*
  > the multiplication to avoid truncation/overflow
  > ok krw@ (guenther@)

ld.so

  ~ loader.c                              

  > Mark the relro/got section as read-only before setting up the environment
  > to minimize the amount of code run without it RO. (guenther@)

  ~ arm/Makefile.inc                      

  > Drop -z nocombreloc.  That's a rev 1.1 commit so not clear why it was
  > needed
  > then; perhaps fixed by the bump in binutils?  Anyway, builds seem good
  > without
  > it and that enables the full relro layout for ld.so.
  > ok kettenis@ (guenther@)

  ~ sh/Makefile.inc                       

  > Drop -z nocombreloc.  It was a rev 1.1 commit like on arm, so not clear
  > why it was needed then; perhaps fixed by the bump in binutils?
  > Removing it enables the full relro layout for ld.so. (guenther@)

login_passwd

  ~ login.c                               

  > remove unneeded casts (tedu@)

login_reject

  ~ login_reject.c                        

  > remove unneeded casts (tedu@)

login_yubikey

  ~ login_yubikey.c                       

  > remove unneeded casts (tedu@)

rpc.rusersd

  ~ rusers_proc.c                         

  > fread hasn't taken a char * in about 900 years (tedu@)

== regress =========================================================== 08/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress

lib

  ~ libutil/fmt_scaled/fmt_test.c         

  > Convert quad_t to long long (guenther@)

sys

  ~ arch/sparc64/emul-popc/reg/reg.c      

  > Convert %q to %ll (guenther@)

  + netinet/sendsrcaddr/Makefile          + netinet/sendsrcaddr/runtest.c

  > Add regression tests for IP_SENDSRCADDR. (vgross@)

  ~ copy/copy.c                           

  > string.h not strings.h (deraadt@)

  ~ kern/noexec/Makefile                  ~ kern/noexec/testfly.S

  > Add support for arm and enable on armv7. (kettenis@)

usr.bin

  ~ ssh/unittests/Makefile                + ssh/unittests/match/Makefile
  + ssh/unittests/match/tests.c           

  > add tests for matching functions (djm@)

  ~ mandoc/mdoc/Bl/Makefile               ~ mandoc/tbl/macro/Makefile
  + mandoc/mdoc/Bl/colNoIt.in             + mandoc/mdoc/Bl/colNoIt.out_ascii
  + mandoc/tbl/macro/column.in            + mandoc/tbl/macro/column.out_ascii

  > If a column list starts with implicit rows (that is, rows without .It)
  > and roff-level nodes (e.g. tbl or eqn) follow, don't run into an
  > assertion.  Instead, wrap the roff-level nodes in their own row.
  > Issue found by tb@ with afl(1). (schwarze@)

  ~ mandoc/mdoc/Bl/break.in               ~ mandoc/mdoc/Bl/break.out_ascii
  ~ mandoc/mdoc/Bl/break.out_lint         

  > When scanning upwards for a column list to put a .Ta macro in,
  > ignore body end markers of lists breaking other blocks.
  > Fixing a logical error that caused a NULL deref found by tb@ with afl(1).
  > (schwarze@)

  ~ mandoc/mdoc/break/Makefile            + mandoc/mdoc/break/notopen.in
  + mandoc/mdoc/break/notopen.out_ascii   + mandoc/mdoc/break/notopen.out_lint

  > When a mismatching end macro occurs while at least two nested blocks
  > are open, all except the innermost open block got a bogus MDOC_ENDED
  > marker, in some situations triggering segfaults down the road
  > which tb@ found with afl(1).
  > Fix the logic error by figuring out up front whether an end macro
  > has a matching body, and if it hasn't, don't mark any blocks as broken.
  > (schwarze@)

usr.sbin

  ~ syslogd/args-client-tls4.pl           ~ syslogd/args-client-tls6.pl
  ~ syslogd/args-tls-cafile-empty.pl      ~ syslogd/args-tls-cafile-noexist.pl
  ~ syslogd/args-tls-cafile-toobig.pl     

  > syslogd(8) uses new libtls certificate and key file loading.  So
  > the tests behave a little bit different now. (bluhm@)

  ~ arp/arptest2.ok                       

  > Reorder entries to match current multipath ordering. (mpi@)

== sbin ============================================================== 09/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin

dhclient

  ~ clparse.c                             ~ conflex.c
  ~ dhclient.c                            ~ dhcpd.h
  ~ dhctoken.h                            

  > Track SSID in leases file and only consider leases from the current SSID
  > when
  > starting up dhclient on wifi interfaces. In theory will preserve leases
  > from
  > other SSID's and speed up obtaining a lease by not wasting time attempting
  > to re-acquire a lease from a different SSID.
  > Experimental feature from n2k16 needing some real world testing before
  > g2k16. (krw@)

disklabel

  ~ editor.c                              

  > Start with a default fragsize of 2048, double it for large disks and then
  > cap
  > based on sector size. This avoid too large fragments on 4k disks. Problem
  > noted by David Vasek; ok krw@ (otto@)

fsck_ffs

  ~ setup.c                               

  > fsdb(8) sucks in and is pledged by fsck(8).  Since it uses editline(3),
  > add a special case for the missing "rpath" and "tty" promises.
  > Issue found and initial analysis by Jan Stary, thanks!
  > ok deraadt (tb@)

fsirand

  ~ fsirand.c                             

  > Convert %q to %ll.  Cast off_t to long long for printf-style args.
  > Eliminate pointless casts to void* or off_t
  > ok krw@ (guenther@)

ifconfig

  ~ ifconfig.c                            

  > When running 'ifconfig scan' in hostap mode display the current Tx rate our
  > AP is using to send frames to an associated node. This used to always
  > display
  > the node's highest supported Rx rate, which isn't all that interesting.
  > ok mpi@ (stsp@)

  ~ ifconfig.c                            

  > correct a rate test introduced in rev 1.326
  > ok stsp@ (jsg@)

sysctl

  ~ sysctl.c                              

  > Use int64_t and %ll for CTLTYPE_QUAD nodes.
  > Use memcpy() instead of up-casting from char* to long long*
  > ok krw@ (guenther@)

== share ============================================================= 10/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share

man

  ~ man4/man4.armv7/Makefile              + man4/man4.armv7/imxtemp.4

  > imxtemp(4) (kettenis@)

  ~ man4/man4.armv7/imxtemp.4             

  > tweak previous; (jmc@)

  ~ man4/bytgpio.4                        

  > Fix typo -> s/drirect/direct/.
  > From Daniel Bolgheroni (mglocker@)

  ~ man5/core.5                           

  > Rewrite: ALL HAIL ELF
  > Mention the KERN_NOSUIDCOREDUMP sysctl(3)
  > ok deraadt@ (guenther@)

  ~ man5/core.5                           

  > tweak previous; (jmc@)

  ~ man4/pppoe.4                          

  > In the IPv6 default route example, use a gateway that corresponds to a
  > RTF_HOST route and is always on the correct interface.
  > The gateway value doesn't really matter for routes on p2p interfaces
  > but this allow us to tighten the checks when adding RTF_GATEWAY routes.
  > ok stsp@, sthen@ (mpi@)

  ~ man4/ip.4                             

  > Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
  > IP_SENDSRCADDR == IP_RECVDSTADDR.
  > OK sthen@ jca@ bluhm@ (vgross@)

  ~ man9/spl.9                            

  > splraise() is an MI API now.
  > ok deraadt@ jmc@ mpi@ (dlg@)

  ~ man4/ral.4                            

  > Document RT3900E (RT5390 / RT5392) support in ral(4).
  > Ported from FreeBSD by James Hastings. (stsp@)

  ~ man8/autoinstall.8                    

  > Use more dhcp info when trying autoinstall/autoupgrade.
  > For the file name try 'filename' then 'option bootfile-name'.
  > For the server name try 'server-name' then 'option tftp-server-name' then
  > 'next-server'.
  > Original idea from Patrick Lundin. Suggestions from rpe@.
  > Tweaks & ok halex@ (krw@)

  ~ man4/ip.4                             

  > punctuation fix; (jmc@)

  ~ man5/bsd.port.mk.5                    

  > document USE_WXNEEDED, feedback/ok jca jasper (sthen@)

  ~ man5/login.conf.5                     

  > update man pages now that login.conf uses auto rounds
  > better wording/ok sthen@ ok jmc@ (danj@)

  ~ man4/man4.armv7/Makefile              + man4/man4.armv7/sximmc.4

  > sximmc(4) (kettenis@)

  ~ man4/man4.armv7/sximmc.4              

  > add "armv7" to the Dt line; (jmc@)

== sys =============================================================== 11/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys

arch/alpha/alpha

  ~ mem.c                                 

  > normalize some comments (tedu@)

arch/amd64/amd64

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ trap.c                                

  > Format string fixes in debug code: need %llx to print 64 bit values
  > ok kettenis@ deraadt@ mlarkin@ (stefan@)

arch/amd64/include

  ~ atomic.h                              

  > Fix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
  > of "ir" as the orq and andq instructions take a 32-bit immedate argument
  > that
  > gets sign-extended.
  > ok mikeb@ (kettenis@)

arch/arm/arm

  ~ bus_dma.c                             

  > Allow a bus_dmamap_sync() of length zero.
  > ok tedu@ (kettenis@)

  ~ cpufunc.c                             

  > Fix setting the SMP bit in the Auxiliary Control Register.  The old code
  > was
  > toggling the bit, clearing it when already set.  On Cortex-A7 setting the
  > SMP
  > bit is essential since without it the CPU doesn't actually use its caches.
  > The SMP bit supposed to be set before turning on the caches and the MMU, so
  > move the setting of the Auxiliary Control Register before setting the
  > System Control Register.
  > ok jsg@ (kettenis@)

  ~ cpu.c                                 ~ cpufunc.c

  > Remove code for Intel 80219/80321 xscale processors used by armish.
  > Generic xscale support and support for pxa2x0 used by zaurus remains.
  > (jsg@)

  ~ cpufunc_asm_armv7.S                   

  > Don't take shortcuts cleaning/invalidating the caches.  The Cortex-A7 and
  > most
  > other ARMv7 CPUs have a L2 cache that is larger than 32KB.  And some of
  > those
  > even have L1 caches larger than that.  So bailing out after 32KB will leave
  > the cache partially dirty.
  > Fixes the SATA problems on Allwinner A20 based boards.
  > ok patrick@ (kettenis@)

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ pmap7.c                               

  > Fix typo/inconsistensy where L1_S_DOMAIN was used instead of L1_C_DOMAIN.
  > These are functionally equivolent so it didn't matter and the resulting
  > code doesn't change. (kettenis@)

  ~ mem.c                                 

  > replace hand rolled tsleep physlock with rwlock. ok mlarkin (tedu@)

  ~ mem.c                                 

  > remove #define for /dev/mem minors. let the raw magic of the hardcoded
  > numbers serve as a warning not to touch them. (tedu@)

  ~ pmap7.c                               

  > Separate out the Access Flag bit from the Access Permission bits in the
  > armv7 pmap.
  > ok tom@ (kettenis@)

  ~ fault.c                               ~ pmap7.c

  > Use Access Flag to do page reference emulation.
  > ok visa@ (kettenis@)

  ~ pmap7.c                               

  > Mark device memory as execute-never to prevent a speculative instruction
  > fetch
  > to access it. (kettenis@)

  ~ pmap7.c                               

  > Start using to XN flag to enforce that mappings without PROT_EXEC are
  > non-executable.
  > ok visa@, deraadt@ (kettenis@)

  ~ fault.c                               

  > Make the FSR encoding strings match the ARMv7 ARM. (kettenis@)

  ~ pmap7.c                               

  > Correctly enter a mapping as writable if no "page modified" emulation
  > is needed.
  > ok visa@, patrick@ (kettenis@)

  ~ pmap7.c                               

  > Fix indentation. (kettenis@)

  ~ pmap7.c                               

  > Argh, commit from the wrong tree.  Revert previous commit. (kettenis@)

  ~ pmap7.c                               

  > Fix indentation. (kettenis@)

arch/arm/conf

  ~ files.arm                             

  > Remove code for Intel 80219/80321 xscale processors used by armish.
  > Generic xscale support and support for pxa2x0 used by zaurus remains.
  > (jsg@)

arch/arm/cortex

  ~ ampintc.c                             

  > Remove the remains of a workaround to get GIC ranges for exynos.
  > Exynos differed from everything else by not having GIC at fixed offsets
  > from PERIPHBASE.  Now that ampintc/GIC attaches using FDT we get the ranges
  > out of the FDT instead of using offsets from PERIPHBASE. (jsg@)

arch/arm/include

  ~ armreg.h                              

  > Fix setting the SMP bit in the Auxiliary Control Register.  The old code
  > was
  > toggling the bit, clearing it when already set.  On Cortex-A7 setting the
  > SMP
  > bit is essential since without it the CPU doesn't actually use its caches.
  > The SMP bit supposed to be set before turning on the caches and the MMU, so
  > move the setting of the Auxiliary Control Register before setting the
  > System Control Register.
  > ok jsg@ (kettenis@)

  ~ armreg.h                              ~ cpuconf.h
  ~ cpufunc.h                             

  > Remove code for Intel 80219/80321 xscale processors used by armish.
  > Generic xscale support and support for pxa2x0 used by zaurus remains.
  > (jsg@)

  ~ pte.h                                 

  > Separate out the Access Flag bit from the Access Permission bits in the
  > armv7 pmap.
  > ok tom@ (kettenis@)

  ~ pmap.h                                

  > Use Access Flag to do page reference emulation.
  > ok visa@ (kettenis@)

  ~ pmap.h                                

  > Adjust the definitions of L1_S_COHERENT_v7, L2_L_COHERENT_v7 and
  > L2_S_COHERENT_v7 such that bus_dmamap_sync(9) avoids unnecessary cache
  > flushes again for DMA'able memory mapped with the BUS_DMA_COHERENT flag.
  > I broke this in pmap7.c rev 1.35.
  > ok tom@ (kettenis@)

  ~ pmap.h                                

  > Start using to XN flag to enforce that mappings without PROT_EXEC are
  > non-executable.
  > ok visa@, deraadt@ (kettenis@)

  ~ param.h                               

  > Don't set MSGBUFSIZE here such that the setting in <machine/param.h> takes
  > effect.  This will let us have different settings on armv7 and zaurus and
  > also unconfuses this developer.
  > ok tom@, deraadt@ (kettenis@)

arch/arm/xscale

  - files.i80321                          - i80321.c
  - i80321_clock.c                        - i80321_i2c.c
  - i80321_intr.c                         - i80321_mcu.c
  - i80321_mutex.c                        - i80321_pci.c
  - i80321_space.c                        - i80321reg.h
  - i80321var.h                           - iopi2c.c
  - iopi2creg.h                           - iopi2cvar.h
  - xscalereg.h                           

  > Remove code for Intel 80219/80321 xscale processors used by armish.
  > Generic xscale support and support for pxa2x0 used by zaurus remains.
  > (jsg@)

arch/armv7/armv7

  ~ platform.c                            

  > Move the com(4) fdt attachment driver to a more generic location and
  > rename it to fit the typical scheme of such an attachment driver.
  > ok kettenis@ jsg@ (patrick@)

  ~ armv7_machdep.c                       ~ armv7_machdep.h

  > Now that com(4) uses a different iot for the initial console and the
  > main attachment, the serial port is now longer recognized as console.
  > To fix this, store the OFW node of the initial console and check it
  > in the attachment driver.
  > ok kettenis@ (patrick@)

  ~ platform.c                            

  > Replace sxiuart(4) with the mostly compatible com(4).
  > The Synopsys DesignWare 8250 throws an interrupt if it detects a write
  > to LCR while it was busy.  Read the USR register to clear the interrupt
  > so we don't get flooded.
  > The sunxi machines also use a different frequency on the consoles.  As
  > we have no clock framework, especially not for early consoles, match on
  > known Allwinner compatibles to set a known frequency.
  > ok kettenis@ mglocker@ (patrick@)

  ~ armv7_start.S                         

  > Separate out the Access Flag bit from the Access Permission bits in the
  > armv7 pmap.
  > ok tom@ (kettenis@)

  ~ armv7_machdep.c                       

  > Map kernel .text read-only.
  > Spotted by deraadt@ (kettenis@)

  ~ platform.c                            

  > Replace bcmmuart(4) with com(4).
  > ok patrick@ (kettenis@)

arch/armv7/broadcom

  - bcm2835_muart.c                       

  > Replace bcmmuart(4) with com(4).
  > ok patrick@ (kettenis@)

arch/armv7/conf

  ~ GENERIC                               

  > Add imxtemp(4), a temperature sensor for the i.MX6 SoC.  Based on code
  > written
  > by patrick@.
  > ok deraadt@ (kettenis@)

  ~ files.armv7                           

  > Move the com(4) fdt attachment driver to a more generic location and
  > rename it to fit the typical scheme of such an attachment driver.
  > ok kettenis@ jsg@ (patrick@)

  ~ GENERIC                               ~ RAMDISK

  > Replace sxiuart(4) with the mostly compatible com(4).
  > The Synopsys DesignWare 8250 throws an interrupt if it detects a write
  > to LCR while it was busy.  Read the USR register to clear the interrupt
  > so we don't get flooded.
  > The sunxi machines also use a different frequency on the consoles.  As
  > we have no clock framework, especially not for early consoles, match on
  > known Allwinner compatibles to set a known frequency.
  > ok kettenis@ mglocker@ (patrick@)

  ~ GENERIC                               ~ RAMDISK

  > sxiuart(4) has been replaced with com(4).
  > ok kettenis@ (patrick@)

  ~ GENERIC                               ~ RAMDISK

  > Replace bcmmuart(4) with com(4).
  > ok patrick@ (kettenis@)

  ~ GENERIC                               ~ RAMDISK

  > Enable sximmc(4). (kettenis@)

  ~ GENERIC                               ~ RAMDISK

  > Dynamically attach exuart using the FDT. (jsg@)

  ~ files.armv7                           

  > Add a minimal clock "framework".  Build it on armv7.
  > ok patrick@ (kettenis@)

arch/armv7/dev

  + com_fdt.c                             

  > Move the com(4) fdt attachment driver to a more generic location and
  > rename it to fit the typical scheme of such an attachment driver.
  > ok kettenis@ jsg@ (patrick@)

  ~ com_fdt.c                             

  > Allow com(4) to make use of the simplebus address translation.
  > This typically works for every simplebus client, but com(4) did not
  > make use of the supplied bus tag.  Instead it references the global
  > a4x bus tag.  This is needed as the ARM com(4) controllers use 4-byte
  > spaced registers, while com(4) operates on 1-byte.  To be able to make
  > use of the address translation, copy the a4x bus tag and replace the
  > cookie and map function with the one supplied by simplebus.
  > ok kettenis@ (patrick@)

  ~ com_fdt.c                             

  > Now that com(4) uses a different iot for the initial console and the
  > main attachment, the serial port is now longer recognized as console.
  > To fix this, store the OFW node of the initial console and check it
  > in the attachment driver.
  > ok kettenis@ (patrick@)

  ~ com_fdt.c                             

  > Replace sxiuart(4) with the mostly compatible com(4).
  > The Synopsys DesignWare 8250 throws an interrupt if it detects a write
  > to LCR while it was busy.  Read the USR register to clear the interrupt
  > so we don't get flooded.
  > The sunxi machines also use a different frequency on the consoles.  As
  > we have no clock framework, especially not for early consoles, match on
  > known Allwinner compatibles to set a known frequency.
  > ok kettenis@ mglocker@ (patrick@)

  ~ com_fdt.c                             

  > Remove bogus suspend/resume code from armv7 com(4) attachment driver.
  > The code initially arrived when the zaurus driver was copied.  As we
  > don't suspend on ARMv7, just get rid of it.
  > Prompted by jsg@ and kettenis@. (patrick@)

  ~ com_fdt.c                             

  > Nothing from the original Wasabi code remains, so replace the copyright
  > with the standard ISC license.
  > ok kettenis@ jsg@ (patrick@)

  ~ com_fdt.c                             

  > Figuring out the clock frequency used for a com(4) device on armv7 is hard.
  > Avoid doing so for the early console and instead rely on the firmware to
  > set up the right baud rate and such.
  > ok visa@, millert@, jsg@ (kettenis@)

  ~ com_fdt.c                             

  > Replace bcmmuart(4) with com(4).
  > ok patrick@ (kettenis@)

arch/armv7/exynos

  ~ exuart.c                              ~ exynos.c
  ~ files.exynos                          

  > Dynamically attach exuart using the FDT. (jsg@)

  ~ exynos4.c                             ~ exynos5.c

  > Remove the remains of a workaround to get GIC ranges for exynos.
  > Exynos differed from everything else by not having GIC at fixed offsets
  > from PERIPHBASE.  Now that ampintc/GIC attaches using FDT we get the ranges
  > out of the FDT instead of using offsets from PERIPHBASE. (jsg@)

arch/armv7/imx

  ~ files.imx                             ~ imxocotp.c
  ~ imxocotpvar.h                         + imxtemp.c

  > Add imxtemp(4), a temperature sensor for the i.MX6 SoC.  Based on code
  > written
  > by patrick@.
  > ok deraadt@ (kettenis@)

  ~ if_fec.c                              

  > Seems we need to hold the PHY into reset a little bit longer.  Without it
  > Theo's Cubox-i comes up without working Ethernet after a warm boot.
  > ok deraadt@ (kettenis@)

arch/armv7/include

  ~ param.h                               

  > Increase MSGBUFSIZE to 8 pages.
  > ok deraadt@ (kettenis@)

arch/armv7/omap

  - omap_com.c                            ~ files.omap

  > Move the com(4) fdt attachment driver to a more generic location and
  > rename it to fit the typical scheme of such an attachment driver.
  > ok kettenis@ jsg@ (patrick@)

  ~ ti_iic.c                              

  > avoid using an uninitialised variable with zero length iic_exec calls
  > (jsg@)

arch/armv7/sunxi

  ~ sxiuart.c                             

  > Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interrupt
  > trigger to 1 character.  This fixes a hang seen on the allwinner,sun5i-r8
  > board during boot when the driver switches to interrupts and no terminal
  > is attached.
  > ok kettenis (mglocker@)

  ~ sxiahci.c                             

  > Use the regulator API to supply power to the target.
  > Tested by Daniel Bolgheroni on a Cubietech Cubieboard2.
  > ok jsg@ (kettenis@)

  ~ sxie.c                                

  > Use pinctrl to configure the pins used by the EMAC.
  > ok jsg@ (kettenis@)

  ~ if_dwge_fdt.c                         

  > For some reason the RTL8211E PHY on the Banana Pi responds to both address
  > 0
  > and 1.  As a result rgephy(4) attaches twice.  Prevent this from happening
  > by passing the PHY address, which is part of the device tree, down from the
  > bus-specific glue to the generic driver code. (kettenis@)

  ~ files.sunxi                           + sximmc.c

  > First stab at porting the awinmmc(4) driver from NetBSD.  The driver will
  > be known as sximmc(4) and is somewhat functional.  Still needs proper clock
  > support and some further cleanup. (kettenis@)

  - sxiuart.c                             ~ files.sunxi
  ~ sunxi_machdep.c                       

  > sxiuart(4) has been replaced with com(4).
  > ok kettenis@ (patrick@)

  - sxiuartreg.h                          

  > Remove obsolete sxiuart(4) header.
  > Noticed by mglocker@. (patrick@)

  ~ sxiccmu.c                             ~ sxiccmuvar.h

  > Add some code to set the SD/MMC clocks. (kettenis@)

  ~ sximmc.c                              

  > Various improvements to make this work better.
  > Restrict the block size to 512 bytes for now.  While Linux and NetBSD seem
  > to allow larger block sizes (4096 and 8192 bytes) I'm getting errors wth an
  > older 2G Sandisk SD card that advertises support for 1024 byte blocks.
  > Implement switching between the 400 KHz "discovery" clock and the 25 MHz
  > "operational" clock.  Enable the right clock based on the SD/MMC "unit"
  > number.  Don't advertise highspeed capabilities for now as I'm not sure
  > how the adjust the clock timing in that case.
  > Fix the way we calculate the number of blocks and the size of the total
  > data
  > transfer to matc what we do in sdhc(4). (kettenis@)

  ~ sxiccmu.c                             

  > Implement some fundamental clocks using the new clock framework.
  > ok patrick@ (kettenis@)

  ~ sxiccmu.c                             

  > Add support for all the ahb, apb0 and apb1 clock gating devices on sun4i,
  > sun5i and sun7i. (kettenis@)

  ~ sximmc.c                              

  > Use generic clock API to enable the module clock. (kettenis@)

arch/armv7/vexpress

  ~ pl011.c                               

  > When detecting the console on attach test fa_node and stdout_node not
  > fa_reg
  > and pl011consaddr as the pl011consaddr addresss may have been translated.
  > Set cn_dev at this point as well as in com(4) and imxuart(4) to handle
  > cases
  > where stdout is not serial0. (jsg@)

arch/hppa/conf

  ~ files.hppa                            

  > move mem.c to hppa directory like every other arch.
  > (probably landed in dev because it has support for this viper thing,
  > but i like consistency for the /dev/null parts.)
  > ok kettenis (tedu@)

arch/hppa/dev

  - mem.c                                 

  > move mem.c to hppa directory like every other arch.
  > (probably landed in dev because it has support for this viper thing,
  > but i like consistency for the /dev/null parts.)
  > ok kettenis (tedu@)

arch/hppa/hppa

  + mem.c                                 

  > move mem.c to hppa directory like every other arch.
  > (probably landed in dev because it has support for this viper thing,
  > but i like consistency for the /dev/null parts.)
  > ok kettenis (tedu@)

arch/i386/i386

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ mem.c                                 

  > move static variable up to first (tedu@)

arch/macppc/macppc

  ~ mem.c                                 

  > normalize some comments (tedu@)

arch/mips64/include

  ~ cpu.h                                 ~ mips_cpu.h
  ~ pte.h                                 

  > Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUs
  > that support the Execute-Inhibit exception. This makes user space W^X
  > effective on Octeon Plus and later Octeon versions.
  > Feedback from miod@, thanks!
  > No objection from deraadt@ (visa@)

  - rm7000.h                              ~ proc.h

  > Remove RM7000/RM9000-specific performance counter code. It originates
  > from PMON2000 and has not been enabled on OpenBSD.
  > Suggested by and ok miod@ (after seeing a quad_t cleanup patch of mine)
  > (visa@)

arch/mips64/mips64

  ~ context.S                             ~ db_machdep.c
  ~ mips64r2.S                            ~ pmap.c
  ~ tlbhandler.S                          ~ trap.c

  > Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUs
  > that support the Execute-Inhibit exception. This makes user space W^X
  > effective on Octeon Plus and later Octeon versions.
  > Feedback from miod@, thanks!
  > No objection from deraadt@ (visa@)

  ~ context.S                             ~ cp0access.S
  ~ cpu.c                                 ~ exception.S
  ~ genassym.cf                           ~ interrupt.c
  ~ mips64_machdep.c                      ~ trap.c

  > Remove RM7000/RM9000-specific performance counter code. It originates
  > from PMON2000 and has not been enabled on OpenBSD.
  > Suggested by and ok miod@ (after seeing a quad_t cleanup patch of mine)
  > (visa@)

arch/octeon/dev

  ~ if_cnmac.c                            

  > Remove some annoying debug printfs to get rid of u_quad_t in cnmac. (visa@)

arch/octeon/octeon

  ~ locore.S                              ~ machdep.c

  > Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUs
  > that support the Execute-Inhibit exception. This makes user space W^X
  > effective on Octeon Plus and later Octeon versions.
  > Feedback from miod@, thanks!
  > No objection from deraadt@ (visa@)

arch/sgi/sgi

  ~ machdep.c                             

  > Remove RM7000/RM9000-specific performance counter code. It originates
  > from PMON2000 and has not been enabled on OpenBSD.
  > Suggested by and ok miod@ (after seeing a quad_t cleanup patch of mine)
  > (visa@)

arch/sh/sh

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ mem.c                                 

  > remove #define for /dev/mem minors. let the raw magic of the hardcoded
  > numbers serve as a warning not to touch them. (tedu@)

arch/socppc/socppc

  ~ mem.c                                 

  > normalize some comments (tedu@)

arch/sparc/sparc

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ mem.c                                 

  > replace hand rolled tsleep physlock with rwlock. ok mlarkin (tedu@)

arch/sparc64/include

  ~ intr.h                                

  > we have some spare interrupt levels, so move softnet above softclock.
  > ok kettenis@ (dlg@)

  ~ cpu.h                                 

  > use a register variable to get at the curcpu pointer in %g7
  > this lets us define curcpu(), cpu_number(), etc as derefs of this
  > variable rather than having to write asm to copy it into another
  > register for the same derefs.
  > this provides shorter inlined code that wastes less registers.
  > ok kettenis@ who notes we use this these on other archs already (dlg@)

arch/sparc64/sparc64

  ~ mem.c                                 

  > normalize some comments (tedu@)

  ~ mem.c                                 

  > replace hand rolled tsleep physlock with rwlock. ok mlarkin (tedu@)

arch/zaurus/zaurus

  ~ zaurus_machdep.c                      

  > remove uneeded sa1111_reg.h include
  > ok kettenis@ (jsg@)

dev

  ~ biovar.h                              

  > change some types in bio from u_quad_t to uint64_t, and fix casts in
  > drivers that fill that field in too.
  > quad types are going away. (dlg@)

dev/ic

  ~ mfireg.h                              

  > replace u_quad_t with uint64_t.
  > guenther is proposing the removal of u_quad_t. uint64_t is more portable.
  > tested on a perc5 and perc6, no functional change. (dlg@)

  ~ ami.c                                 ~ ciss.c
  ~ mfireg.h                              ~ mpi.c

  > change some types in bio from u_quad_t to uint64_t, and fix casts in
  > drivers that fill that field in too.
  > quad types are going away. (dlg@)

  ~ dwc_gmac.c                            ~ dwc_gmac_var.h

  > For some reason the RTL8211E PHY on the Banana Pi responds to both address
  > 0
  > and 1.  As a result rgephy(4) attaches twice.  Prevent this from happening
  > by passing the PHY address, which is part of the device tree, down from the
  > bus-specific glue to the generic driver code. (kettenis@)

  ~ com.c                                 

  > Only probe the UART type if sc_uarttype is set to COM_UART_UNKNOWN.
  > This allows glue drivers to set the type based on other information (such
  > as
  > Oopen Firmware or device tree properties) without going through to risky
  > code paths.
  > ok deraadt@, visa@ (kettenis@)

  ~ mpi.c                                 

  > Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid
  > value.
  > Specs from mikeb@, ok dlg@ (krw@)

  ~ aic79xx.c                             ~ aic79xx.h
  ~ aic79xx_openbsd.c                     

  > Move to iopool. No voluntary testers after several years of requests so now
  > everybody gets to test! (krw@)

  ~ aic7xxx.c                             ~ aic7xxx_inline.h
  ~ aic7xxx_openbsd.c                     ~ aic7xxx_openbsd.h
  ~ aic7xxxvar.h                          

  > Move to iopool. No voluntary testers after several years of requests so now
  > everybody gets to test! (krw@)

  ~ rt2860.c                              ~ rt2860reg.h
  ~ rt2860var.h                           

  > Add support for RT5390 and RT5392 chipsets to the ral(4) driver.
  > Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
  > Ported from FreeBSD by James Hastings. (stsp@)

dev/microcode

  ~ ral/microcode.h                       

  > Update ral(4) firmware for RT2860 family devices.
  > Required for upcoming RT5390 and RT5392 chipset support.
  > Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
  > Ported from FreeBSD by James Hastings.
  > kevlo confirmed this version of the firmware is still ISC licensed. (stsp@)

dev/ofw

  ~ ofw_pinctrl.h                         ~ ofw_regulator.h

  > Fix a pasto in a comment. (kettenis@)

  + ofw_clock.c                           + ofw_clock.h

  > Add a minimal clock "framework".  Build it on armv7.
  > ok patrick@ (kettenis@)

dev/pci

  ~ ips.c                                 

  > change some types in bio from u_quad_t to uint64_t, and fix casts in
  > drivers that fill that field in too.
  > quad types are going away. (dlg@)

  ~ if_devar.h                            

  > u_quad_t -> uint64_t
  > de is amazing(tm). it really should be cut back and simplified a bit.
  > (dlg@)

  ~ if_iwm.c                              ~ if_iwmvar.h

  > Remove IWM_CMD_SYNC, which expands to zero while all the other
  > IWM_CMD_* values are bit flags. The same was done 2 years ago
  > in Linux git commit a10229271946731959b2269370d0492d88cfab23. (stsp@)

  ~ mpii.c                                

  > Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing resid
  > value.
  > Specs from mikeb@, ok dlg@ (krw@)

  ~ if_iwm.c                              

  > If the stack demands protection by setting the USEPROT flag then set the
  > corresponding bit in the iwm(4) Tx command regardless of frame length.
  > ok sthen@ (stsp@)

  ~ if_iwn.c                              

  > iwn(4) scans all bands at once, as far as the net80211 stack is concerned.
  > So set the appropriate scan capability flags in the ic.
  > ok sthen@ (stsp@)

  ~ pcidevs                               

  > Add PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.
  > Part of a larger patch by James Hastings. (stsp@)

  ~ pcidevs.h                             ~ pcidevs_data.h

  > regen (stsp@)

  ~ if_wpi.c                              

  > wpi(4) scans all bands at once, as far as the net80211 stack is concerned.
  > So set the appropriate scan capability flags in the ic.
  > ok sthen@ (stsp@)

  ~ if_ral_pci.c                          

  > Add support for RT5390 and RT5392 chipsets to the ral(4) driver.
  > Tested by procter@ on RT2860 and by me on RT2790 and RT3090.
  > Ported from FreeBSD by James Hastings. (stsp@)

dev/pv

  ~ hyperv.c                              ~ hypervreg.h
  ~ hypervvar.h                           ~ if_hvn.c

  > Update Hyper-V structure definitions to the 2016 version
  > Microsoft has performed a significant clean up and stylistic improvement
  > of Hyper-V structure definitions and updated FreeBSD port.  We update to
  > stay in sync with the upstream and improve maintainability of this code
  > in the future. (mikeb@)

  ~ xen.c                                 ~ xenvar.h

  > Replace hand rolled atomic bit operations and use MI ones from DRM (mikeb@)

  ~ hyperv.c                              ~ hypervreg.h
  ~ hypervvar.h                           

  > Sync up monitor trigger groups handling to the upstream
  > Replace hand rolled atomic bit operations and use MI ones from DRM
  > and convert event matrixes to arrays of longs. (mikeb@)

  ~ hyperv.c                              ~ hypervreg.h

  > Clean up style and replace a magic value with a magic define (mikeb@)

  ~ if_hvn.c                              ~ if_hvnreg.h

  > Update NVS protocol structure definitions to the 2016 version
  > Microsoft has considerably cleaned up the style and it makes sense
  > to keep in sync with the maintained upstream version in FreeBSD. (mikeb@)

dev/usb

  ~ ehci.c                                

  > add a missing splx in an error path
  > ok millert@ stsp@ (jsg@)

dev/wscons

  ~ wsmouse.c                             ~ wsmouseinput.h

  > Reset the input state completely when wsmouse is (re-)opened.
  > ok mpi@ (bru@)

kern

  ~ uipc_usrreq.c                         

  > Fix an mbuf leak and missing error propagation in uipc_usrreq(PRU_SEND)
  > in case sbappendcontrol() fails.
  > From Simon Mages; OK mikeb@ (bluhm@)

miscfs/fuse

  ~ fuse_vfsops.c                         

  > Neuter fuse_vptofh() and fuse_fhtovp(). I implemented those functions
  > under the assumption, that fuse_vget() has reasonable semantics, while
  > this is not the case. fusefs_vget() only functions correctly, if the
  > file in questions has recently been accessed and is still in the vnode
  > cache of the userspace daemon associated with the mount point.
  > As a matter of fact the fuse api doesn't feature a reasonable way to map
  > inode numbers to a handle at all (see struct fuse_operations).
  > ok guenther (natano@)

  ~ fuse_lookup.c                         ~ fuse_vnops.c

  > There is no sense in doing caching in fusefs. In case of a non-local
  > filesystem the tree can change behind our back, resulting in stale cache
  > entries. "The only winning move is not to play."
  > ok tedu beck mpi (natano@)

  ~ fuse_lookup.c                         ~ fuse_vnops.c
  ~ fusefs.h                              

  > There are three callers of update_vattr(). Two of them don't use the
  > updated struct vattr afterwards, so the call can be removed. Remove both
  > calls and the function itself, inlining the last remaining call.
  > ok millert (natano@)

net

  ~ bpf.c                                 

  > Merge bpfilter_create() into bpfopen() and make it such that the
  > descriptor is referenced before it is inserted in the global list.
  > ok dlg@ (mpi@)

  ~ bpf.c                                 

  > Check if ``bd_bif'' is NULL inside bpf_catchpacket() to match bpfread()
  > and bpfwrite(), all of which will need to grabe a lock to protect the
  > buffers.
  > ok dlg@ (mpi@)

  ~ bpf.c                                 

  > Introduce bpf_put() and bpf_get() instead of mixing macro and functions
  > for the reference counting.
  > ok dlg@ (mpi@)

  ~ bpf.c                                 

  > No need to reset si_selpid after calling selwakeup() the function
  > already does it. (mpi@)

  ~ pfkey.c                               

  > replace the last uses of m_copym2 with m_dup_pkt.
  > ok mpi@ visa@ (dlg@)

  ~ route.c                               

  > Mask the ``prio'' prior to comparing it to RTP_LOCAL.
  > This allows rt_if_remove() to remove RTF_BROACAST routes from down
  > interfaces.
  > Issue reported by Dimitris Papastamos on bugs@
  > ok dlg@, claudio@, phessler@ (mpi@)

  ~ pf.c                                  ~ pf_norm.c
  ~ pfvar.h                               

  > Reintroduce 5.3-style checksum modification to preserve end-to-end
  > checksums
  > when fiddling with packets but without the mess that motivated Henning to
  > remove it. Affects only this one aspect of Henning's checksum work. Also
  > tweak
  > the basic algorithm and supply a correctness argument.
  > OK dlg@ deraadt@ sthen@; no objection henning@ (procter@)

  ~ route.c                               

  > Do not seroize a struct needed for RTM_RESOLVE in the hot path.
  > ok phessler@, bluhm@, tedu@, natano@ (mpi@)

  ~ pf.c                                  

  > Retire pf_translate_ap()
  > OK mpi@ mikeb@ (procter@)

  ~ pf.c                                  ~ pfvar.h

  > Push 'field changed' guards into 'change field' functions;
  > optimise pf_patch_32(); simplify pf_match_addr()
  > OK mikeb@ (procter@)

net80211

  ~ ieee80211_ioctl.c                     ~ ieee80211_ioctl.h

  > Expose more 802.11n information to userspace:
  > A flag which indicates whether HT has been negotiated with a node,
  > and the current Tx MCS value we use for a node.
  > This grows struct ieee80211_nodereq. Applications using it must be
  > recompiled.
  > ok mpi@ (stsp@)

  ~ ieee80211_node.c                      

  > If a wireless device or driver scans all bands at once give 5GHz APs
  > a slight priority in cases where good matches exist in either band.
  > ok sthen@ (stsp@)

netinet

  ~ ip_ah.c                               ~ ip_esp.c
  ~ ip_ipcomp.c                           ~ ip_output.c

  > replace the last uses of m_copym2 with m_dup_pkt.
  > ok mpi@ visa@ (dlg@)

  ~ udp_usrreq.c                          ~ in.h

  > Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,
  > IP_SENDSRCADDR == IP_RECVDSTADDR.
  > OK sthen@ jca@ bluhm@ (vgross@)

  ~ ip_ah.c                               ~ ip_esp.c
  ~ ip_ipcomp.c                           

  > fix panics caused by replacing m_copym2 with m_dup_pkt.
  > m_copym2 is fine duplicating an arbitrary chain of mbufs, while
  > m_dup_pkt wants to dup a packet with proper headers in the first
  > mbuf. ipsec copied the tail of an mbuf if any of the clusters are
  > shared or readonly, and swapped that tail with the result of m_copym2.
  > m_dup_pkt panics cos of that.
  > this makes ipsec duplicate the whole packet if any of the chain is
  > readonly.
  > found by naddy@ and mlarkin@
  > this fix is from visa@ who told me to commit it cos he's afk (sleeping)
  > tested by naddy@ (dlg@)

uvm

  ~ uvm_mmap.c                            

  > uvm_wxcheck() should only abort the process if kern.wxabort is set.
  > The new semantics are W^X violations are reported to the application
  > via ENOTSUP.  Forgot to fix this during the last change.
  > Spotted by kettenis (deraadt@)

== usr.bin =========================================================== 12/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin

cmp

  ~ cmp.c                                 

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

compress

  ~ gzopen.c                              

  > When returning the file size info, only use z_total_in/z_total_out
  > for the read (inflate) case where there might be multiple streams.
  > For the write (deflate) case there can only be a single stream so
  > just use the per-stream total_in/total_out.  Fixes "gzip -v" byte
  > counts.  OK henning@. (millert@)

cvs

  ~ logmsg.c                              

  > When the commit message is empty, don't default to c)ontinue
  > (committing without log message) but a)bort.  Also, accept
  > the uppercase versions of the choices.
  > Matches the corresponding change of behavior of GNU cvs.
  > suggested by & ok jcs (tb@)

ftp

  ~ cmds.c                                ~ util.c

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

  ~ extern.h                              ~ fetch.c
  ~ ftp.c                                 ~ util.c

  > Move connect_sync() to util.c and use it when connecting via http
  > too.  OK sthen@ deraadt@ (millert@)

  ~ extern.h                              ~ fetch.c
  ~ ftp.c                                 ~ util.c

  > Use connect(2) + a connect_wait() function instead of connect_sync(),
  > similar to the example in connect(2).  OK tedu@ (millert@)

jot

  ~ jot.c                                 

  > Streamline and refactor the code a bit more:
  > There are two sentinels for infinite output: infinity == true and reps ==
  > 0.
  > Ensure that infinity is set to true whenever reps is set to zero, then we
  > can always use 'if (infinity)'.
  > This allows us to merge the loop for deterministic output into the first
  > if (!randomize) statement, which is a lot tidier.
  > Insert an occasional empty line.
  > "move fast and break stuff" tedu (tb@)

login

  ~ login.c                               

  > Change sleep from crazy backoff to one second of sleep between retries
  > ok deraadt@ (beck@)

mandoc

  ~ dba.c                                 

  > Make sure manuals in architecture-independent directories are treated
  > as architecture-independent even if they abuse the third (architecture)
  > argument of the .Dt macro for random stuff like "freetds reference manual".
  > While the .Dt syntax is not the same as the .TH syntax in man(7),
  > punishing offenders by treating them as architecture-dependent and
  > hence completely excluding them from searches is too severe.
  > Problem reported by sthen@. (schwarze@)

  ~ dba.c                                 ~ dba_read.c

  > When reading back a mandoc.db(5) file in order to apply incremental
  > changes, do not prepend a stray NAME_FILE (0x10) byte to the first
  > names of pages.
  > Bug found while investigating another issue reported by sthen@. (schwarze@)

  ~ dba.c                                 ~ dba.h
  ~ dba_read.c                            ~ mandocdb.c

  > When the content of a manual page does not specify a section, the
  > empty string got added to the list of sections, breaking the database
  > format slightly and causing the page to not be considered part of
  > any section, not even if a section could be deduced from the directory
  > or from the file name.
  > Bug found due to the bogus pcredemo(3) "manual" in the pcre-8.38p0 package.
  > (schwarze@)

  ~ cgi.c                                 

  > fix an fd leak
  > ok schwarze@ (jsg@)

  ~ mdoc.c                                ~ mdoc_validate.c

  > If a column list starts with implicit rows (that is, rows without .It)
  > and roff-level nodes (e.g. tbl or eqn) follow, don't run into an
  > assertion.  Instead, wrap the roff-level nodes in their own row.
  > Issue found by tb@ with afl(1). (schwarze@)

  ~ mdoc_macro.c                          

  > When scanning upwards for a column list to put a .Ta macro in,
  > ignore body end markers of lists breaking other blocks.
  > Fixing a logical error that caused a NULL deref found by tb@ with afl(1).
  > (schwarze@)

  ~ mdoc_macro.c                          

  > When a mismatching end macro occurs while at least two nested blocks
  > are open, all except the innermost open block got a bogus MDOC_ENDED
  > marker, in some situations triggering segfaults down the road
  > which tb@ found with afl(1).
  > Fix the logic error by figuring out up front whether an end macro
  > has a matching body, and if it hasn't, don't mark any blocks as broken.
  > (schwarze@)

mg

  ~ theo.c                                

  > All that complexity stopped us from getting flying cars by today. (tedu@)

openssl

  ~ openssl.1                             

  > shorten genpkey; ok guenther (jmc@)

  ~ openssl.1                             

  > shorten genrsa; ok jsing (jmc@)

  ~ openssl.1                             

  > shorten the nseq text; (jmc@)

  ~ openssl.1                             

  > shorten the ocsp text; ok beck (jmc@)

  ~ openssl.1                             

  > shorten the passwd text; ok jsing (jmc@)

  ~ openssl.1                             

  > shorten pkcs7 text; (jmc@)

passwd

  ~ local_passwd.c                        

  > Trust the login_getcaptime() declaration and don't cast the arguments to
  > their own expected type (guenther@)

  ~ passwd.1                              

  > update man pages now that login.conf uses auto rounds
  > better wording/ok sthen@ ok jmc@ (danj@)

ssh

  ~ servconf.c                            ~ servconf.h
  ~ sshd.c                                

  > Remove more SSH1 server code:
  > * Drop sshd's -k option.
  > * Retire configuration keywords that only apply to protocol 1, as well as
  > the "protocol" keyword.
  > * Remove some related vestiges of protocol 1 support.
  > ok markus@ (naddy@)

  ~ sshd.8                                ~ sshd_config
  ~ sshd_config.5                         

  > Catch up with the SSH1 code removal and delete all mention of
  > protocol 1 particularities, key files and formats, command line
  > options, and configuration keywords from the server documentation
  > and examples.  ok jmc@ (naddy@)

  ~ monitor.c                             ~ servconf.c
  ~ servconf.h                            ~ session.c
  ~ sshd.8                                ~ sshd.c
  ~ sshd_config.5                         

  > remove UseLogin option and support for having /bin/login manage
  > login sessions; ok deraadt markus dtucker (djm@)

vi

  ~ common/search.c                       

  > Kill '#if defined(DEBUG) && 0' blocks that used %q
  > ok bentley@ on principle (guenther@)

vmstat

  ~ vmstat.c                              

  > Convert %q to %ll and cast opaque system values to long long.
  > Use uint64_t for the KERN_INTRCNT_CNT sysctl()
  > ok krw@ (guenther@)

== usr.sbin ========================================================== 13/13 ==

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin

bgpd

  ~ bgpd.conf.5                           

  > The man page is a bit confusing for how we can control which address
  > families we support during capabilities negotiation.  Re-organize the
  > man page to be more clear, and explicitly state what the default is.
  > OK sthen@ benno@ (phessler@)

  ~ bgpd.conf.5                           

  > pluralize a word (phessler@)

bind

  ~ lib/dns/tkey.c                        

  > init a variable to address https://kb.isc.org/article/AA-01272
  > Most of bind got removed and this function is not called
  > by any of the remaining parts.
  > ok deraadt@ a long time ago. (jsg@)

dhcpd

  ~ confpars.c                            

  > Ansify function definitions.
  > Diff from Edgar Pettijohn. (krw@)

  ~ confpars.c                            

  > KNF and clean up many comments. (krw@)

httpd

  ~ httpd.h                               ~ parse.y
  ~ server.c                              

  > Make httpd stricter with respect to TLS configuration - in particular, do
  > not allow TLS and non-TLS to be configured on the same port, do not allow
  > TLS options to be specified without a TLS listener and ensure that the TLS
  > options are the same when a server is specified on the same address/port.
  > Currently, these configurations are permitted but do not work as intended.
  > Also factor out and reuse the server matching code, which was previously
  > duplicated.
  > ok reyk@ (jsing@)

  ~ config.c                              ~ server.c

  > Use lowercase 'tls' in debug and log messages for consistency.
  > Requested by reyk@ (jsing@)

  ~ httpd.h                               ~ parse.y
  ~ server.c                              

  > Move server_match() from parse.y to server.c; use env instead of conf,
  > which is actually the same thing (cluebat from reyk@). (jsing@)

  ~ server.c                              

  > Rename server_handshake_tls() to server_tls_handshake() to align with
  > the other server_tls_* functions (and I like the prefix notation
  > better).  No functional change. (reyk@)

  ~ server.c                              

  > Turn "TLS handshake failed -" log message into a debug message - it
  > happens way too often and does not provide much information.
  > OK jung@ (reyk@)

  ~ httpd.c                               ~ httpd.h
  ~ logger.c                              ~ server.c

  > stop including sys/param.h for nitems. define locally as needed.
  > ok natano reyk (tedu@)

installboot

  ~ Makefile                              

  > Merge identical amd64 and i386 stanzas.
  > Requested & ok jsing@ (krw@)

iscsictl

  ~ iscsictl.c                            

  > stop including sys/param.h for nitems. define locally as needed.
  > ok natano reyk (tedu@)

iscsid

  ~ iscsid.c                              ~ iscsid.h
  ~ util.c                                ~ vscsi.c

  > stop including sys/param.h for nitems. define locally as needed.
  > ok natano reyk (tedu@)

memconfig

  ~ memconfig.c                           

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

mtree

  ~ spec.c                                

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

  ~ compare.c                             ~ create.c

  > %qd -> %lld + (long long) for off_t's.
  > ok guenther@ natano@ (krw@)

  ~ compare.c                             ~ create.c
  ~ spec.c                                ~ verify.c

  > Nuke a bunch of whitespace nits seen while '%q' hunting. (krw@)

ndp

  ~ ndp.c                                 

  > Checking for RTF_BROADCAST here makes no sense. (mpi@)

pstat

  ~ pstat.c                               

  > Convert %q to %ll and cast opaque system values to long long.
  > Use uint64_t for the KERN_INTRCNT_CNT sysctl()
  > ok krw@ (guenther@)

pwd_mkdb

  ~ pwd_mkdb.8                            

  > Refer to /etc/passwd consistently as the "legacy password file" and
  > remove some references to differences between versions 6 and 7.
  > ok jmc, millert, tedu (tb@)

  ~ pwd_mkdb.8                            

  > remove reference to 6th ed. (tedu@)

rebound

  ~ rebound.c                             

  > introduce a union of sockaddr types and eliminate a lot of casts. (tedu@)

relayd

  ~ carp.c                                

  > fix fd leaks in error paths
  > ok reyk@ (jsg@)

  ~ relayd.conf.5                         

  > word fix, from remi locherer; ok reyk (jmc@)

rmt

  ~ rmt.c                                 

  > Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
  > Fix a type mismatch in ftp's "page" command and could make transfers
  > restart
  > at the wrong position.
  > ok and a ull->ll tweak from natano@, ok tedu@ (guenther@)

rtadvd

  ~ rtadvd.h                              

  > Move counters from u_quad_t to uint64_t.
  > Printing is already done with %llu/(unsigned long long) casts. (jca@)

  ~ rtadvd.c                              

  > Tweak timer debug output.
  > -RA timer on em0 is set to 16:0
  > +RA timer on em0 is set to 16.0s (jca@)

sa

  ~ extern.h                              ~ main.c
  ~ pdb.c                                 ~ usrdb.c

  > Flip 'u_quad_t' fields & variables to uint64_t, and %qu to %llu.
  > ok guenther@ (krw@)

slowcgi

  ~ slowcgi.c                             

  > As suggested by the FastCGI spec, zero-pad the response buffers to be
  > aligned to 8 bytes.  This matches what most other implementations are
  > doing.  While here, make sure that the allocated response buffers are
  > zero'ed out.
  > OK florian@ (reyk@)

smtpd

  ~ smtpd.c                               

  > make smtpd less verbose at startup
  > ok gilles@ sunil@ jung@ millert@ (eric@)

  ~ rfc2822.c                             

  > Properly initialize the message parser. fix a regression where the
  > message headers would not be altered as expected.
  > ok gilles@ (eric@)

snmpd

  ~ snmpd.c                               ~ snmpd.h
  ~ snmpe.c                               ~ traphandler.c

  > stop including sys/param.h for nitems. define locally as needed.
  > ok natano reyk (tedu@)

syslogd

  ~ ttymsg.c                              

  > stop including sys/param.h for nitems. define locally as needed.
  > ok natano reyk (tedu@)

  ~ syslogd.c                             

  > By using the new tls_config_load_file() feature, syslogd(8) certificate
  > and key loading can be simplified.
  > OK jsing@ (bluhm@)

tokenadm

  ~ Makefile                              

  > doesn't need to link with crypto (tedu@)

user

  ~ useradd.8                             

  > Xr encrypt(1) in the explanation of the -p option.
  > ok jmc (tb@)

  ~ usermgmt.conf.5                       ~ usermod.8

  > Xr encrypt(1) here as well to be consistent with useradd(8).
  > ok jmc (tb@)

vipw

  ~ vipw.8                                

  > Refer to /etc/passwd consistently as the "legacy password file" and
  > remove some references to differences between versions 6 and 7.
  > ok jmc, millert, tedu (tb@)

vmctl

  ~ vmctl.8                               

  > add section on VM networking. more to come, this is a starting point for
  > further documentation. (mlarkin@)

  ~ vmctl.8                               

  > various fixes for previous; (jmc@)

  ~ vmctl.8                               

  > use a more standard page layout; ok mlarkin (jmc@)

vmd

  ~ control.c                             ~ loadfile_elf.c
  ~ pci.c                                 ~ virtio.c
  ~ vmd.c                                 ~ vmm.c

  > small bits of header cleanup; ok mlarkin (deraadt@)

===============================================================================
_______________________________________________
owc mailing list
[email protected]
http://www.squish.net/mailman/listinfo/owc

Reply via email to