OpenBSD src changes summary for 2015-09-20 to 2015-09-27 inclusive ==================================================================
bin/csh bin/date bin/ksh bin/md5 bin/sleep bin/stty distrib/miniroot distrib/notes distrib/sets distrib/sgi distrib/special etc/changelist etc/etc.sgi/Makefile.inc etc/etc.sgi/disktab etc/netstart games/bs games/fortune games/hack games/hunt games/sail include/Makefile include/resolv.h lib/libc lib/libcrypto lib/libcurses lib/libkeynote lib/libpcap lib/libpthread lib/libssl libexec/ld.so libexec/login_yubikey regress/lib regress/sbin regress/sys regress/usr.bin regress/usr.sbin sbin/disklabel sbin/fsck sbin/fsck_msdos sbin/init sbin/isakmpd share/man sys/arch/alpha/alpha sys/arch/alpha/include sys/arch/alpha/isa sys/arch/amd64/amd64 sys/arch/amd64/include sys/arch/amd64/isa sys/arch/amd64/stand/efiboot sys/arch/arm/arm sys/arch/arm/include sys/arch/hppa/hppa sys/arch/hppa/include sys/arch/hppa64/hppa64 sys/arch/hppa64/include sys/arch/i386/i386 sys/arch/i386/include sys/arch/i386/isa sys/arch/landisk/landisk sys/arch/loongson/conf sys/arch/loongson/loongson sys/arch/m88k/include sys/arch/mips64/include sys/arch/mips64/mips64 sys/arch/octeon/conf sys/arch/octeon/dev sys/arch/octeon/include sys/arch/octeon/octeon sys/arch/powerpc/include sys/arch/powerpc/powerpc sys/arch/sgi/conf sys/arch/sgi/localbus sys/arch/sgi/sgi sys/arch/sgi/stand/boot sys/arch/sgi/stand/boot64 sys/arch/sgi/xbow sys/arch/sh/include sys/arch/socppc/socppc sys/arch/sparc/include sys/arch/sparc/sparc sys/arch/sparc64/dev sys/arch/sparc64/include sys/arch/sparc64/sparc64 sys/arch/vax/include sys/arch/zaurus/dev sys/dev/pci sys/isofs/udf sys/kern sys/miscfs/fuse sys/msdosfs sys/net sys/net80211 sys/netinet sys/netinet6 sys/netmpls sys/sys sys/ufs/ffs sys/ufs/ufs sys/uvm usr.bin/arch usr.bin/calendar usr.bin/diff usr.bin/ftp usr.bin/getcap usr.bin/indent usr.bin/leave usr.bin/lex usr.bin/libtool usr.bin/make usr.bin/mandoc usr.bin/mg usr.bin/mixerctl usr.bin/nc usr.bin/openssl usr.bin/rcs usr.bin/ssh usr.bin/tmux usr.bin/touch usr.sbin/bgpd usr.sbin/config usr.sbin/dvmrpctl usr.sbin/dvmrpd usr.sbin/ifstated usr.sbin/ldpctl usr.sbin/ldpd usr.sbin/npppd usr.sbin/ospf6ctl usr.sbin/ospf6d usr.sbin/ospfctl usr.sbin/ospfd usr.sbin/pkg_add usr.sbin/radiusd usr.sbin/relayd usr.sbin/ripctl usr.sbin/ripd usr.sbin/rmt usr.sbin/slowcgi usr.sbin/syslogd usr.sbin/tcpdump == bin =============================================================== 01/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin csh ~ func.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) date ~ date.1 > drop useless .No, .Ns, and quoting (schwarze@) ksh ~ c_ksh.c ~ exec.c ~ expr.c ~ io.c ~ lex.c ~ misc.c ~ var.c > Make errorf() and bi_errorf() handle a NULL argument. > From Michael McConville; OK nicm@ (millert@) ~ tty.c ~ tty.h > Remove EXTERN from tty.[ch], from Michael McConville. No binary change. > (nicm@) ~ edit.c ~ edit.h > Remove EXTERN from edit.[ch], from Michael McConville. (nicm@) ~ tree.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) md5 ~ md5.1 > remove CAVEATS: the information therein is already (and probably more > usefully) > included at the start of this page; > ok tedu (jmc@) sleep ~ sleep.c > sleep doesn't benefit from setting locale. we always want to parse numbers > as our forefathers did, and it doesn't print any error messages in need of > translation. > ok stsp (tedu@) stty ~ stty.1 > spelling; (jmc@) == distrib =========================================================== 02/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib miniroot ~ install.sub > HEAD is past 5.8 now, so remove /var/tmp removal tweak. > ok krw@ (halex@) notes ~ sgi/contents ~ sgi/hardware ~ sgi/prep ~ sgi/whatis > More IP26 bits. (miod@) sets ~ lists/base/md.loongson ~ lists/base/md.octeon ~ lists/base/md.sgi ~ lists/comp/md.loongson ~ lists/comp/md.octeon ~ lists/comp/md.sgi ~ lists/comp/mi > sync (miod@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ lists/base/md.aviion ~ lists/base/md.hppa ~ lists/base/md.hppa64 ~ 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.vax ~ lists/base/md.zaurus ~ lists/comp/mi > sync (deraadt@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ lists/base/md.aviion ~ lists/base/md.hppa ~ lists/base/md.hppa64 ~ 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.vax ~ lists/base/md.zaurus ~ lists/comp/mi > sync (deraadt@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ lists/base/md.aviion ~ lists/base/md.hppa ~ lists/base/md.hppa64 ~ 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.vax ~ lists/base/md.zaurus ~ lists/comp/mi > sync (deraadt@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ lists/base/md.aviion ~ lists/base/md.hppa ~ lists/base/md.hppa64 ~ 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.vax ~ lists/base/md.zaurus ~ lists/comp/mi > sync (deraadt@) sgi ~ ramdisk/Makefile > Enable IP26 builds. (miod@) ~ cdfs/Makefile ~ iso/Makefile > Add IP26 kernels and boot blocks to the installation media. (miod@) special ~ disklabel/Makefile > Remove hppa/hppa64 from NUMBOOT club here too. (krw@) == etc =============================================================== 03/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc changelist ~ changelist > add Ed25519 SSH host key; ok deraadt@ (naddy@) etc.sgi/Makefile.inc ~ etc.sgi/Makefile.inc > Enable IP26 builds. (miod@) etc.sgi/disktab ~ etc.sgi/disktab > Add IP26 kernels and boot blocks to the installation media. (miod@) netstart ~ netstart > Don't print output when setting autoconf on interfaces. Suggested by > deraadt, > ok florian@ rpe@ (sthen@) == games ============================================================= 04/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/games bs ~ bs.c > Make prompt() properly printf-like, eliminating empty dummy args > (guenther@) fortune ~ fortune/fortune.6 > use | rather than / for alternatives and some macro fixes (schwarze@) hack ~ hack.apply.c ~ hack.eat.c ~ hack.h ~ hack.invent.c ~ hack.lev.c ~ hack.main.c ~ hack.options.c ~ hack.pager.c ~ hack.potion.c ~ hack.pri.c ~ hack.rip.c ~ hack.rumors.c ~ hack.timeout.c ~ hack.topl.c ~ hack.tty.c > Annotate funcs with __attribute__((printf(...))) and clean up the fallout: > * lots of foo(str) --> foo("%s", str) transformations > * one totally insane foo(fmt, ap) --> vfoo(fmt, ap) conversion: how did > this ever work? > * prefer const char[] over char* for static format strings, as it lets > gcc check the format and eliminates an unnecessary pointer > ok beck@ (guenther@) hunt ~ huntd/driver.c ~ huntd/huntd.6 > Fix -D in the synopsis line: > * Whitespace is allowed between -D and the variable name. > * Each -D option only takes one single assignment. > * Drop excessive .Sm macro. (schwarze@) ~ huntd/execute.c ~ huntd/expl.c > Delete pointless NOSTRICT comments (guenther@) sail ~ assorted.c > Make -Wformat=2 happier with a few foo(str) -> foo("%s", str) fixes > ok beck@ (guenther@) ~ pl_7.c ~ sync.c > Delete obsolete lint comments > ok beck@ (guenther@) == include =========================================================== 05/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/include Makefile ~ Makefile > Stop installing any header files in /usr/include/dev/pci/drm. > Userland should get these from /usr/X11R6/include/libdrm. > ok deraadt@ (and suggested by jsg@) (kettenis@) resolv.h ~ resolv.h > Trim symbols that aren't part of our new resolver > OK semarie@ (guenther@) == lib =============================================================== 06/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib libc ~ asr/getaddrinfo_async.c > remove unused static function (eric@) ~ asr/asr.c > use _PATH_RESCONF directly (eric@) ~ asr/asr.c ~ asr/getaddrinfo_async.c ~ asr/gethostnamadr_async.c ~ asr/getnameinfo_async.c ~ asr/getnetnamadr_async.c ~ asr/getrrsetbyname_async.c ~ asr/res_search_async.c ~ asr/res_send_async.c > remove bogus includes of err.h (eric@) ~ sys/select.2 > Add STANDARDS section and another EINVAL reason (guenther@) ~ locale/setlocale.3 > Prefer Xr over Fn for interpage references and delete reference to > setrunelocale() which is not exported from libc > ok jmc@ stsp@ (guenther@) ~ gen/pause.3 > typo. (sobrado@) ~ sys/ptrace.2 > add a small hint that you'll get EBUSY if you forget to wait. ok guenther > (tedu@) ~ citrus/citrus_utf8.c > correct a range problem in citrus-utf8 version of wcrtomb(3), in order to > match > RFC 3629 (limiting the range of UTF-8 to 0x10FFFF). > it is the counterpart of a previous commit correcting mbrtowc(3). > problem spotted by stsp > ok bentley@ stsp@ (semarie@) ~ sys/tame.2 > mentions that using systrace(4) on a tame(2) program isn't possible. > with big help from jmc for phrasing. > ok jmc@ (semarie@) ~ stdlib/tfind.c ~ stdlib/tsearch.c > lint is dead: delete useless LINTLIBRARY comments > ok millert@ (guenther@) ~ sys/tame.2 > oops - avoid Xr to self; sorry sebastien... (jmc@) libcrypto ~ man/ASN1_generate_nconf.3 ~ man/BUF_MEM_new.3 > typos in documentation; better wording, suggested by jmc@ > ok jmc@ (sobrado@) libcurses ~ base/vsscanf.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) libkeynote ~ keynote.3 > fix function argument. > ok jmc@, schwarze@ (sobrado@) libpcap ~ gencode.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) libpthread ~ man/pthread_barrier_wait.3 > typo (s/intialization/initialization/). (sobrado@) ~ man/sem_open.3 > fix function name. (sobrado@) libssl ~ src/doc/crypto/CONF_modules_load_file.pod ~ src/doc/crypto/EC_GROUP_copy.pod ~ src/doc/crypto/EC_GROUP_new.pod ~ src/doc/crypto/EC_KEY_new.pod ~ src/doc/crypto/EVP_BytesToKey.pod ~ src/doc/crypto/EVP_DigestSignInit.pod ~ src/doc/crypto/EVP_EncryptInit.pod ~ src/doc/crypto/EVP_PKEY_CTX_ctrl.pod ~ src/doc/crypto/EVP_PKEY_CTX_new.pod ~ src/doc/crypto/EVP_PKEY_cmp.pod ~ src/doc/crypto/EVP_PKEY_keygen.pod ~ src/doc/crypto/OBJ_nid2obj.pod ~ src/doc/crypto/PKCS12_create.pod ~ src/doc/crypto/PKCS7_sign.pod ~ src/doc/crypto/PKCS7_sign_add_signer.pod ~ src/doc/crypto/PKCS7_verify.pod ~ src/doc/crypto/SMIME_write_PKCS7.pod ~ src/doc/crypto/X509_NAME_add_entry_by_txt.pod ~ src/doc/crypto/X509_NAME_get_index_by_NID.pod ~ src/doc/crypto/X509_STORE_CTX_get_error.pod ~ src/doc/crypto/X509_STORE_CTX_new.pod ~ src/doc/crypto/X509_VERIFY_PARAM_set_flags.pod ~ src/doc/crypto/X509_verify_cert.pod ~ src/doc/crypto/d2i_DSAPublicKey.pod ~ src/doc/crypto/engine.pod > typos in documentation; better wording, suggested by jmc@ > ok jmc@ (sobrado@) - src/crypto/dsa/README - src/crypto/dsa/fips186a.txt > We don't need no stinking "EXAMPLE OF THE DSA" or README (the credits are > already in the code). > ok beck@ miod@ (jsing@) ~ src/crypto/x509v3/v3_genn.c ~ src/crypto/ocsp/ocsp.h > Use ASN1_item_dup() instead of ASN1_dup(). > ok bcook@ (jsing@) ~ src/crypto/opensslv.h > bump to 2.3.1 (bcook@) ~ src/crypto/bn/bn_print.c > Redo 1.25, without the NULL deref. > ok sthen@ bcook@ (miod@) == libexec =========================================================== 07/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/libexec ld.so ~ alpha/rtld_machine.c > Don't be too agressive write-protecting the GOT and PLT. If we have no > clue > where they end, there is a good chance they are sharing a page with .data, > which obviously needs to remain writable. So only attempt to make them > read-only if we know they have a non-zero size. Original diff from > guenther@ > based on an earlier diff from me. Fixes ld -Z on alpha. > ok miod@, guenther@ (kettenis@) login_yubikey ~ login_yubikey.c > Use explicit_bzero() to zero out the password. From Michael McConville. > (millert@) == regress =========================================================== 08/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress lib ~ libcrypto/Makefile + libcrypto/asn1/Makefile + libcrypto/asn1/asn1time.c > Add initial regress tests for ASN.1 times. (jsing@) ~ libcrypto/asn1/asn1time.c > Add DER encoding/decoding coverage for ASN.1 GENERALIZEDTIME and UTCTIME. > (jsing@) ~ libssl/ssl/testssl > check if openssl(1) actually works before proceeding > It was possible for this test to pass even if the openssl command itself > was > missing. (bcook@) sbin ~ route/rttest1.ok ~ route/rttest10.ok ~ route/rttest11.ok ~ route/rttest12.ok ~ route/rttest14.ok ~ route/rttest15.ok ~ route/rttest16.ok ~ route/rttest17.ok ~ route/rttest18.ok ~ route/rttest19.ok ~ route/rttest2.ok ~ route/rttest3.ok ~ route/rttest4.ok ~ route/rttest5.ok ~ route/rttest6.ok ~ route/rttest7.ok ~ route/rttest8.ok ~ route/rttest9.ok > Sync with recent rt_use change. (mpi@) sys - kern/tame/generic/actions.c - kern/tame/generic/actions.h ~ kern/tame/generic/Makefile ~ kern/tame/generic/main.c ~ kern/tame/generic/manager.c ~ kern/tame/generic/tests.out + kern/tame/generic/manager.h > refactor a bit regress tame > - unit tests are functions in main.c > - use test name in output > - add grabbing stdout output of tests (semarie@) ~ kern/tame/generic/main.c ~ kern/tame/generic/manager.c ~ kern/tame/generic/tests.out > tame("xxx", NULL) and tame("xxx", {NULL}) are not the same > - change output of regress to reflect that > - add test (semarie@) ~ kern/tame/generic/main.c ~ kern/tame/generic/tests.out > add a tame(2) regress for stat(2) and realpath(3) (semarie@) usr.bin ~ mandoc/man/IP/spacing.in ~ mandoc/man/IP/spacing.out_ascii ~ mandoc/man/TP/Makefile ~ mandoc/mdoc/Bl/tag.in ~ mandoc/mdoc/Bl/tag.out_ascii + mandoc/man/TP/spacing.in + mandoc/man/TP/spacing.out_ascii > Trailing whitespace is significant when determining the width of a tag > in mdoc(7) .Bl -tag and man(7) .TP, but not in man(7) .IP. > Quirk reported by Jan Stary <hans at stare dot cz> on ports@. (schwarze@) ~ ssh/Makefile ~ ssh/limit-keytype.sh + ssh/cert-file.sh > regress test for CertificateFile; patch from Meghana Bhat via bz#2436 > (djm@) ~ ssh/cert-file.sh > fix command-line option to match what was actually committed (djm@) usr.sbin ~ syslogd/args-server-tls-close.pl ~ syslogd/args-server-tls-reconnect.pl > In libtls connection error EOF has changed to connection close. > Adapt syslogd tests. (bluhm@) == sbin ============================================================== 09/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin disklabel ~ Makefile > hppa/hppa64 use installboot(8) now, not -B/-b. > Only vax and landisk left using -B/-b. > ok jsing@ miod@ (krw@) ~ disklabel.c > Expunge VAX SMD special handling that tried to fill up the last > cylinder of the disk with extra copies of the boot blocks and > disklabel. There are no plans to ever support the native SMD > controllers that would find this useful. > ok miod@ (krw@) ~ disklabel.c > Remove hppa/hppa64 from comment about NUMBOOT > 0 architectures. (krw@) fsck ~ fsutil.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) fsck_msdos ~ ext.h ~ fat.c ~ main.c > Mark ask() as printf-like; split up a pwarn() with variable number of > specifiers > ok beck@ millert@ (guenther@) init ~ Makefile > there's no need to keep init secret these days, and the (unused) > immutable flags would just be a pita. remove custom bin mode. (tedu@) isakmpd ~ isakmpd.8 > drop useless .Xo and .Bk, and shorten by avoiding some .Sm (schwarze@) == share ============================================================= 10/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share man ~ man4/man4.sgi/intro.4 > More IP26 bits. (miod@) ~ man5/bsd.port.mk.5 > fix an Xr to pkg_create(1); > from michael reed (jmc@) ~ man5/bsd.port.mk.5 > use .Sx; from Michael Reed <m dot reed at mykolab dot com> tweaked by me > (schwarze@) ~ man8/afterboot.8 ~ man8/intro.8 ~ man8/rc.8 ~ man8/rc.conf.8 ~ man8/rc.d.8 > scatter some rcctl refs; from rob pierce > discussed with ajacoutot (jmc@) ~ man9/bus_dma.9 > spelling fix; (jmc@) ~ man9/mbuf.9 > Document that m_free(9) and m_freem(9) now accept NULL. > From Michael McConville, ok jmc@ (mpi@) ~ man7/ports.7 > Mark up login.conf(5) variable names as .Va, not .Ar, > like in the login.conf(5) manual itself. > Patch from Michael Reed <m dot reed at mykolab dot com>. (schwarze@) ~ man7/ports.7 > punctuation and upper case fixes; Michael Reed <m dot reed at mykolab dot > com> (schwarze@) ~ man3/intro.3 > fix typo. (sobrado@) ~ man4/pipex.4 > typos: mastter -> master, mandoatory -> mandatory. (sobrado@) ~ man5/bsd.port.mk.5 > consistency: no need to restate the page name in .Nm over and over again; > Michael Reed <m dot reed at mykolab dot com> (schwarze@) ~ man5/bsd.port.mk.5 ~ man5/bsd.regress.mk.5 ~ man5/port-modules.5 > Obviously, .Ar is the wrong macro for Makefile targets - .Ar is for > placeholders to be replaced by something else by the user. > As these are fixed strings passed on the make(1) command line, use .Cm. > Trim some excessive indentation while here. (schwarze@) ~ man5/bsd.port.mk.5 > The best way to display complete command invocations including command > names, options and arguments are literal displays: .Bd -literal for > multiple lines, .Dl for single lines, and (in these cases) .Ql for > in-line displays. > Triggered by a different patch from Michael Reed. (schwarze@) ~ man5/bsd.port.mk.5 > minor .Pa cleanup, including one chunk from Michael Reed (schwarze@) ~ man4/ucom.4 > fix manufacturer name. (sobrado@) ~ man7/mdoc.7 ~ man7/roff.7 > typos. (sobrado@) ~ man9/mq_init.9 ~ man9/ml_init.9 > ml_init and mq_init return void. (dlg@) ~ man9/style.9 > refer to err and warn families, suggested by Michael McConville (tedu@) ~ man4/vio.4 > typo. (sobrado@) ~ man9/km_alloc.9 > fix two typos. (sobrado@) ~ man5/login.conf.5 > fix unit suffix. (sobrado@) ~ man8/afterboot.8 > the inetd text is no longer relevant; from rob pierce > while here, knock out a section header to avoid a one sentence section; > (jmc@) ~ man8/rc.subr.8 > typo. (sobrado@) ~ man8/crash.8 > Since bin/ps/keyword.c 1.30 five years ago, ps -O paddr prints the complete > address; do not mention a KERNBASE adjustment anymore. (miod@) ~ man9/style.9 > Update guidelines for lint-style comments > ok krw@, schwarze@, jmc@, millert@, tedu@ (guenther@) ~ man4/systrace.4 > mentions that using systrace(4) on a tame(2) program isn't possible. > with big help from jmc for phrasing. > ok jmc@ (semarie@) ~ man4/systrace.4 > oops - avoid Xr to self; sorry sebastien... (jmc@) ~ man7/packages.7 > check-conflicts was replaced with check-problems; from Theo Buehler > (sthen@) ~ man7/library-specs.7 > typo, resolve_lib->resolve-lib; from Theo Buehler (sthen@) ~ man4/iwm.4 > ifconfig iwm0 lladdr ... works now. Remove entry from BUGS section. (stsp@) ~ man7/packages.7 > basic grammar fixes; (jmc@) == sys =============================================================== 11/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys arch/alpha/alpha ~ mutex.c > Fix membar positioning in mtx_enter_try() and (critically!) mtx_leave() > Problem noticed and initial diff by kettenis@ > ok kettenis@ visa@ dlg@ (guenther@) arch/alpha/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/alpha/isa ~ isadma_bounce.c > free(x, 0) cleanup: > - set size argument of free() > - remove pointless if expression around free() call > ok guenther@ (semarie@) arch/amd64/amd64 ~ disksubr.c > Use readdisksector() instead of manual buf initialization. > ok deraadt@ (krw@) arch/amd64/include ~ segments.h > lint is dead: BITFIELDTYPE comments aren't useful > ok miller@ (guenther@) ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/amd64/isa ~ isa_machdep.c > free(x, 0) cleanup: > - set size argument of free() > - remove pointless if expression around free() call > ok guenther@ (semarie@) arch/amd64/stand/efiboot ~ Makefile.common ~ efiboot.c > efiboot used 3MB memory below the region for the kernel, but UEFI > firmware on some machines allocates larger area whose upper part > overlaps the kernel region. Let the efiboot use lower area for its > heap. Also change its size from 3MB to 1MB and limit it by > HEAP_LIMIT. > The problem is reported by Toby Slight and Brian Conway. (yasuoka@) ~ Makefile.common > Remove -DLINKADDR=. It is for first-stage bootstrap. (yasuoka@) ~ efiboot.c > Fix white spaces and style. (yasuoka@) arch/arm/arm ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/arm/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/hppa/hppa ~ mutex.c > Put memory barriers in the appropriate place. > Discssed with geunther@, tested by landry@ (kettenis@) ~ disksubr.c > Eliminate unneeded 2nd buf (dbp). One is enough for any i/o needed during > disklabel processing. Especially when the 2nd one was not asking for a > disk sector worth of buffer space. > ok kettenis@ (krw@) arch/hppa/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/hppa64/hppa64 ~ disksubr.c > Eliminate unneeded 2nd buf (dbp). One is enough for any i/o needed during > disklabel processing. Especially when the 2nd one was not asking for a > disk sector worth of buffer space. > ok kettenis@ (krw@) ~ disksubr.c > Tweak a bit of daddr_t goodness and make hppa64 disksubr.c identical to > hppa disksubr.c. > ok kettenis@ (krw@) arch/hppa64/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/i386/i386 ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/i386/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/i386/isa ~ isa_machdep.c > free(x, 0) cleanup: > - set size argument of free() > - remove pointless if expression around free() call > ok guenther@ (semarie@) arch/landisk/landisk ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/loongson/conf ~ ld.script > Make sure the openbsd.randomdata section is located before the edata > symbol. (miod@) arch/loongson/loongson ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/m88k/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/mips64/include ~ asm.h > After reading IRIX header files again, add one more SSNOP to MTC0_HAZARD > (and > remove one from constructs based upon it) when building for R8000. (miod@) ~ cpu.h > That PICA reference ought to have been removed 20 years ago! (miod@) ~ mips_cpu.h > It is no longer necessary to include CR_BERR in CR_INT_MASK if CPU_R8000. > (miod@) ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) ~ cpustate.h > Don't forget to put the necessary MFC0_HAZARD in SAVE_CPU. For some reason > I > had put the MTC0_HAZARD in RESTORE_CPU years ago but forgot their > counterparts. (miod@) arch/mips64/mips64 ~ cache_tfp.c > Reset the `pending I$ flushes' flag in tfp_InvalidateICache() if > invalidating > the whole I$. (miod@) ~ exception_tfp.S > Correctly compute the userland pte index in a pte page in the userland tlb > miss > handler; from Naruaki Etomi (nullnilaki on gmail), thanks! (miod@) ~ mutex.c > Fix membar positioning in mtx_enter_try() and (critically!) mtx_leave() > Same diff as guenther@ committed for alpha. > ok guenther@ (kettenis@) ~ db_disasm.c > Output operands of movn and movz in the correct order. (miod@) ~ cache_tfp_subr.S > Reorder subtractions and branches to shave one cycle per call to > tfp_inval_icache(). (miod@) ~ tlb_tfp.S > In tlb_update(), when inserting an entry for a KV1 address, reuse the > current ASID value rather than using zero, so that we can avoid writing > back the ASID on exit (and waste cycles because of expensive coprocessor 0 > hazards). > While there, use conditional instructions when picking a random TLB set > number, > in order to waste one branch prediction cache entry. (miod@) ~ mutex.c > Add a spinout check to the mips64 mutex, to aid debugging. > ok kettenis@ (visa@) ~ trap.c > On R8000, make trap() behave closer to interrupt() when servicing a real > interrupt by not invoking refreshcreds(), but closer to itsa() when > servicing > a trap-reported-as-interrupt by invoking userret() in that case. > No change on !defined(CPU_R8000) kernels. (miod@) arch/octeon/conf ~ ld.script > Make sure the openbsd.randomdata section is located before the edata > symbol. (miod@) arch/octeon/dev ~ octeon_intr.c > Let MP-safe interrupt handlers run without the kernel lock on octeon. > ok kettenis@ (visa@) ~ octeon_intr.c > xheart_splx() has to restore the interrupt mask even on secondary CPUs > because each core has a separate mask. Otherwise the IPI can be left > disabled accidentally on a non-primary CPU when the core uses the > rendezvous mutex: > 1. splraise(IPL_IPI) soft-masks the IPI. > 2. An IPI hits and the CPU enters the interrupt handler. > 3. The handler hard-masks the IPI. > 4. The interrupt is not processed because of the CPU's current IPL. > The IPI is left hard-masked on leaving the handler. > 5. splx(s) lowers the IPL below IPL_IPI. However, the interrupt's > hardware mask is left unchanged because of the CPU_IS_PRIMARY() > check in xheart_splx(). > After this, the system will eventually hang because the CPU does not > respond to IPI requests of other cores. > While here, fix a similar situation with CIU interrupts on octeon. > This might save a few moments of debugging once non-primary CPUs are > allowed to process CIU interrupts. > ok miod@ (visa@) arch/octeon/include ~ intr.h > Let MP-safe interrupt handlers run without the kernel lock on octeon. > ok kettenis@ (visa@) arch/octeon/octeon ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/powerpc/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/powerpc/powerpc ~ mutex.c > Fix membar positioning in mtx_enter_try() and (critically!) mtx_leave() > Same diff as guenther@ committed for alpha. > ok guenther@ (kettenis@) arch/sgi/conf ~ ld.script > Make sure the openbsd.randomdata section is located before the edata > symbol. (miod@) arch/sgi/localbus ~ tcc.c > Invoke tfp_IOSyncDCache() from tcc_IOSyncDCache() as well, so that > invalidate > operations are also carried on the internal write-through cache. (miod@) ~ imc.c ~ tcc.c > IP26 streaming cache controller bus error interrupts are reported as > hardware > level 4 interrupts, just like memory controller bus errors; register the > tcc(4) handler with the right cause register bitmask, and teach imc(4) not > to claim the interrupt if it did not trigger it. (miod@) arch/sgi/sgi ~ ip22.h > typos (miod@) arch/sgi/stand/boot ~ version > typos (miod@) arch/sgi/stand/boot64 ~ Makefile > Add IP26 kernels and boot blocks to the installation media. (miod@) arch/sgi/xbow ~ xheart.c > xheart_splx() has to restore the interrupt mask even on secondary CPUs > because each core has a separate mask. Otherwise the IPI can be left > disabled accidentally on a non-primary CPU when the core uses the > rendezvous mutex: > 1. splraise(IPL_IPI) soft-masks the IPI. > 2. An IPI hits and the CPU enters the interrupt handler. > 3. The handler hard-masks the IPI. > 4. The interrupt is not processed because of the CPU's current IPL. > The IPI is left hard-masked on leaving the handler. > 5. splx(s) lowers the IPL below IPL_IPI. However, the interrupt's > hardware mask is left unchanged because of the CPU_IS_PRIMARY() > check in xheart_splx(). > After this, the system will eventually hang because the CPU does not > respond to IPI requests of other cores. > While here, fix a similar situation with CIU interrupts on octeon. > This might save a few moments of debugging once non-primary CPUs are > allowed to process CIU interrupts. > ok miod@ (visa@) ~ xbridge.c > free(x, 0) cleanup: > - set size argument of free() > - remove pointless if expression around free() call > ok guenther@ (semarie@) arch/sh/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/socppc/socppc ~ disksubr.c > Use readdisksector() instead of manual buf initialization. These are > identical to the amd64 change already committed. > ok deraadt@ (krw@) arch/sparc/include ~ vmparam.h > Increase MAXTSIZ to 64MB, required for gcc/gnat > ok miod (tobiasu@) ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/sparc/sparc ~ disksubr.c > Use readdisksector() instead of manual buf initialization. sparc64 > compiles and boots, so the identical sparc code must too! > ok deraadt@ (krw@) arch/sparc64/dev ~ cbus.c ~ ebus_mainbus.c ~ vbus.c ~ vpci.c > Store the target CPU in "struct intrhand" and use it in intr_barrier(). > Also use it wherever we configure the hardware to direct interrupts to the > right CPU. (kettenis@) arch/sparc64/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) ~ intr.h > Store the target CPU in "struct intrhand" and use it in intr_barrier(). > Also use it wherever we configure the hardware to direct interrupts to the > right CPU. (kettenis@) arch/sparc64/sparc64 ~ intr.c > Store the target CPU in "struct intrhand" and use it in intr_barrier(). > Also use it wherever we configure the hardware to direct interrupts to the > right CPU. (kettenis@) ~ disksubr.c > Use readdisksector() instead of manual buf initialization. sparc64 > compiles and boots, so the identical sparc code must too! > ok deraadt@ (krw@) arch/vax/include ~ _types.h > lint is dead and C99 may be old enough to drive a car: delete LONGLONG > comments > ok millert@ (guenther@) arch/zaurus/dev ~ zaurus_flash.c > free(x, 0) cleanup: > - set size argument of free() > - remove pointless if expression around free() call > ok guenther@ (semarie@) dev/pci ~ if_vmx.c > need to keep bpf in the tx path. got a bit ahead of myself there... > noticed by brad (dlg@) ~ if_vmx.c > brad points out i need bpf_mtap_ether to reconstruct vlan headers (dlg@) ~ pcidevs.h ~ pcidevs_data.h > regen (jasper@) ~ pcidevs > add (unsupported) realtek wireless card as found in rpointel@'s x250, > though > it could be supported by rtwn(4) eventualy > ok stsp@ (jasper@) ~ if_iwm.c > In iwm(4), while not associated, pass the broadcast ethernet address to > the firmware, rather than zeros. Matches what Linux iwlwifi does. > Spotted by Adrian Chadd (FreeBSD). > ok mpi@ (stsp@) ~ if_iwm.c > In iwm(4), properly reset the RX ring by clearing RX buffer status memory. > Found by Matthew Dillon (Dragonfly). DMA sync hint from tedu@, ok mpi@ > (stsp@) ~ drm/drm.h ~ drm/drmP.h ~ drm/drm_atomic.h ~ drm/drm_cache.c ~ drm/drm_crtc.c ~ drm/drm_crtc.h ~ drm/drm_crtc_helper.c ~ drm/drm_crtc_helper.h ~ drm/drm_dp_helper.c ~ drm/drm_dp_helper.h ~ drm/drm_drv.c ~ drm/drm_edid.c ~ drm/drm_edid.h ~ drm/drm_fb_helper.c ~ drm/drm_fb_helper.h ~ drm/drm_fixed.h ~ drm/drm_global.c ~ drm/drm_hashtab.c ~ drm/drm_irq.c ~ drm/drm_linux.h ~ drm/drm_linux_list.h ~ drm/drm_mm.c ~ drm/drm_mm.h ~ drm/drm_modes.c ~ drm/files.drm ~ drm/i915_drm.h ~ drm/i915/dvo.h ~ drm/i915/dvo_ch7017.c ~ drm/i915/dvo_ch7xxx.c ~ drm/i915/dvo_ivch.c ~ drm/i915/dvo_ns2501.c ~ drm/i915/dvo_sil164.c ~ drm/i915/dvo_tfp410.c ~ drm/i915/i915_devlist.h ~ drm/i915/i915_dma.c ~ drm/i915/i915_drv.c ~ drm/i915/i915_drv.h ~ drm/i915/i915_gem.c ~ drm/i915/i915_gem_context.c ~ drm/i915/i915_gem_evict.c ~ drm/i915/i915_gem_execbuffer.c ~ drm/i915/i915_gem_gtt.c ~ drm/i915/i915_gem_tiling.c ~ drm/i915/i915_irq.c ~ drm/i915/i915_reg.h ~ drm/i915/i915_suspend.c ~ drm/i915/i915_trace.h ~ drm/i915/intel_bios.c ~ drm/i915/intel_bios.h ~ drm/i915/intel_crt.c ~ drm/i915/intel_ddi.c ~ drm/i915/intel_display.c ~ drm/i915/intel_dp.c ~ drm/i915/intel_drv.h ~ drm/i915/intel_dvo.c ~ drm/i915/intel_hdmi.c ~ drm/i915/intel_i2c.c ~ drm/i915/intel_lvds.c ~ drm/i915/intel_modes.c ~ drm/i915/intel_opregion.c ~ drm/i915/intel_overlay.c ~ drm/i915/intel_panel.c ~ drm/i915/intel_pm.c ~ drm/i915/intel_ringbuffer.c ~ drm/i915/intel_ringbuffer.h ~ drm/i915/intel_sdvo.c ~ drm/i915/intel_sdvo_regs.h ~ drm/i915/intel_sprite.c ~ drm/i915/intel_tv.c ~ drm/radeon/atom.c ~ drm/radeon/radeon_display.c ~ drm/radeon/radeon_kms.c ~ drm/radeon/radeon_legacy_encoders.c ~ drm/radeon/radeon_mode.h ~ drm/radeon/radeon_pm.c ~ drm/ttm/ttm_bo.c ~ drm/ttm/ttm_bo_manager.c + drm/drm_rect.c + drm/drm_rect.h + drm/i915_pciids.h + drm/i915_powerwell.h + drm/linux_hdmi.c + drm/linux_hdmi.h + drm/i915/i915_gem_stolen.c + drm/i915/i915_gpu_error.c + drm/i915/intel_fbdev.c + drm/i915/intel_sideband.c + drm/i915/intel_uncore.c > Update inteldrm to the code from Linux 3.14.52 (which corresponds to > commit 48f8f36a6c8018c2b36ea207aaf68ef5326c5075 on the linux-3.14.y > branch of the linux-stable tree). This brings preliminary support for > the GPU on Intel's Broadwell CPUs. Don't expect these to work > perfectly yet. There are some remaining issues with older hardware as > well, but no significant regressions have been uncovered. > This also updates some of drm core code. The radeondrm code remains > based on Linux 3.8 with some minimal canges to adjust to changes in > the core drm APIs. > Joint effort with jsg@, who did the initial update of the relevant drm > core bits. Committing this early to make sure it gets more testing > and make it possible for others to help getting the remaining wrinkles > straightened out. (kettenis@) ~ drm/i915/i915_devlist.h > The devlist awk script didn't pickup the broadwell ids as they are > encoded with shifts. Switch to a file constructed by iterating > through i915_drv.c pciidlist so these will be included. > ok kettenis@ (jsg@) ~ pcidevs.h ~ pcidevs_data.h > regen (jsg@) ~ pcidevs > Add some more Broadwell graphics ids. (jsg@) ~ drm/drm_linux.h ~ drm/i915/i915_gem.c > Properly implement waitqueue_active(). Gets rid of spurious > *ERROR* Hangcheck timer elapsed... xxx ring idle > messages. (kettenis@) ~ drm/i915/i915_drv.c > Enable MSIs on hardware that supports it. On the Thinkpad X1, the APIC pin > is shared with the disk, which results in noticable latency during heavy > disk activity. (kettenis@) ~ drm/i915/intel_display.c > Now that waitqueue_active() actually works, enable the WARN_ON that uses > it. (kettenis@) ~ drm/i915/i915_drv.c > Disable IPS for now. Identified by jsg@ as the cause for the unsynched > display after waking it from standby or after VT switches. Can't seem to > get > him to commit this workaround while he his hunting for a proper fix. > (kettenis@) ~ drm/i915/i915_drv.c ~ drm/i915/i915_gem_gtt.c ~ drm/i915/i915_reg.h ~ drm/i915/intel_pm.c ~ drm/i915/intel_ringbuffer.c ~ drm/i915/intel_uncore.c > 3.14 backports of some Broadwell fixes from > http://lists.freedesktop.org/archives/intel-gfx/2014-March/042121.html > Ben Widawsky > drm/i915/bdw: Restore PPAT on thaw > a2319c08bfd849ea32b4f890ce92df86074c5731 > Ville Syrjala > drm/i915: We implement WaDisableAsyncFlipPerfMode:bdw > 8285222c487b61c48b9b955b82598544c3c06050 > Ben Widawsky > drm/i915/bdw: Use scratch page table for GEN8 PPGTT > 8407bb9129da95fc4099b84cdbbc23e6d4f66aee > Jani Nikula > drm/i915: don't flood the logs about bdw semaphores > c923facd535b97972b5bb7d3df4fcafd61a63a5e > Ville Syrjala > drm/i915: Implement WaDisableSDEUnitClockGating:bdw > 4f1ca9e94057de098d65bc7477e8f89dd51609aa > Ville Syrjala > drm/i915: Don't clobber CHICKEN_PIPESL_1 on BDW > c7c656226842679bcd9f39dc24441b4ff398a850 > Kenneth Graunke > drm/i915: Add a partial instruction shootdown workaround on Broadwell. > c8966e1058e1e8ae2eec4211157847032829697a > Damien Lespiau > drm/i915/bdw: The TLB invalidation mechanism has been removed from INSTPM > dc616b89dbc4bb6a99884d214bd1ed1e0eef59a0 > Kenneth Graunke > drm/i915: Add thread stall DOP clock gating workaround on Broadwell. > 1411e6a57a1836ba8a3d4f17c8733b2fbaf0f005 > Ville Syrjala > drm/i915: Disable semaphore wait event idle message on BDW > 295e8bb73a4785b65db6655fbf6ad57c4177b551 > Mika Kuoppala > drm/i915: Do forcewake reset on gen8 > 0a089e3355d77f758e46db54a0a81d4b58a28cc3 > Mika Kuoppala > drm/i915: Fix forcewake counts for gen8 > e9dbd2b20201b49b04476d2e5763faa822967913 > ok kettenis@ (jsg@) ~ drm/drm_linux.h > Apparently 0 is not a power of 2 (despite <sys/param.h> claiming that it > is). > Fixes inteldrm(4) on the GM45 chipset. (kettenis@) ~ if_iwm.c > Make iwm(4) DPRINTFs show states by name instead of number. (stsp@) ~ drm/drm_linux.c ~ drm/drm_linux.h ~ drm/i915/i915_drv.h ~ drm/i915/i915_gem_gtt.c > Make the PPGTT code work. Seems to fix the caching issues on Broadwell. > Comments on some of the later Broadwell-related commits in the Linux tree > seem to say that the PPAT flags in for the (global) GTT are simply broken > in > the hardware. (kettenis@) ~ drm/i915/i915_gem_gtt.c > Apparently Valleyview / Bay Trail has 32-bit BARs, so fetch the type > instead > of hardcoding them to be 64-bit. Figured out by sthen@ (kettenis@) ~ drm/drmP.h ~ drm/drm_drv.c ~ drm/drm_irq.c ~ drm/drm_linux.h ~ drm/i915/i915_drv.c ~ drm/i915/intel_pm.c ~ drm/radeon/radeon_display.c ~ drm/radeon/radeon_kms.c + drm/drm_trace.h > Update drm_irq.c to the version from Linux 3.14.52. > Disable the DRM_IOCTL_IRQ_BUSID and DRM_IOCTL_CONTROL ioctls. > These are legacy ioctls for DRI1 support, which we no longer support on > OpenBSD. (kettenis@) ~ drm/drm_linux.h ~ drm/i915/i915_drv.c ~ drm/i915/intel_i2c.c > Try a little bit harder to clean up if attaching inteldrm(4) fails. > The crucial bit is that we now clear dev->dev_priv, which prevents the X > server from opening /dev/drmN and crashing the kernel because the driver > isn't fully initialized. > While there, try a little bit harder to print error messages the proper > way. > Things will still look ugly though if the failure is somewhere in the Linux > code. (kettenis@) - drm/refcount.h ~ drm/drm_crtc.c ~ drm/drm_crtc.h ~ drm/drm_linux.h ~ drm/radeon/radeon.h ~ drm/radeon/radeon_fence.c ~ drm/ttm/ttm_bo.c ~ drm/ttm/ttm_bo_api.h ~ drm/ttm/ttm_bo_driver.h ~ drm/ttm/ttm_bo_util.c ~ drm/ttm/ttm_bo_vm.c ~ drm/ttm/ttm_memory.c ~ drm/ttm/ttm_memory.h ~ drm/ttm/ttm_object.c ~ drm/ttm/ttm_object.h ~ drm/ttm/ttm_page_alloc.c > Switch remaining users of the FreeBSD refcount apis back to the original > linux kref/kobject use. > ok kettenis@ (jsg@) ~ pcidevs > Add another AMD RS780 PCIE found in a dmesg from tobiasu@ (kettenis@) ~ pcidevs.h ~ pcidevs_data.h > regen (kettenis@) ~ drm/radeon/radeon_kms.c > Use drm_fb_helper_restore_fbdev_mode() to restore the wscons framebuffer > whenever we need to. Apologies for the ugly cast. > Should fix the locking warnings reported by tobiasu@ (kettenis@) ~ if_iwm.c > Fix bsd.rd upgrades over iwm(4), and fix `ifconfig iwm0 lladdr random`. > The bsd.rd problems happened because of the net80211 detach/attach hack > which ran when the firmware is loaded for the first time. > Do the minimum of what needs to be done instead. > To fix lladdr random pick up a changing MAC address in the ioctl handler > and don't overwrite a custom MAC address while loading the firmware. > ok kettenis@ (stsp@) ~ if_iwm.c > Align the way iwm(4) adds the MAC context with how it's done in Linux > iwlwifi. > Noted by Adrian Chadd (FreeBSD). > ok kettenis@ (stsp@) ~ drm/drm_fb_helper.c ~ drm/drm_linux.h ~ drm/i915/intel_fbdev.c ~ drm/radeon/radeon_fb.c > Enable monitor hot plugging for the framebuffer console. > Tested on the VGA port of a Radeon 7500 and Radeon 9250 (aka 9200 PRO). > Hopefully this works on Intel Graphics as well. (kettenis@) isofs/udf ~ udf_vnops.c > remove lockmgr_printinfo stubs. from Martin Natano (tedu@) kern ~ kern_sched.c > Short circuit if we're running on the CPU that we want to sync with. Fixes > suspend on machines with em(4) now that it uses intr_barrier(9). > ok krw@ (kettenis@) ~ subr_disk.c > A couple of missing letoh32() conversions of GPT header fields in > gpt_chk_hdr() and gpt_chk_parts(). > Spotted when investigating zeloff's GPT bug report. (krw@) ~ subr_disk.c > Move declaration of readdisksector() to disklabel.h. This makes it > available to other areas of the kernel suffering from an overburden > of buf tweaking to read a disk sector. > ok mpi@ (krw@) ~ sys_process.c > buglet: there's no way for req to be STEP in the DETACH case. > also fix the confusing comment. ok guethner. (tedu@) ~ subr_disk.c > Don't immediately try to checksum the GPT header using the size > field from the GPT header being checksum'd. First make sure the > size is in a valid range. In particular ensure it won't cause crc32() > to run off the end of the GPT header being checksum'd. Also check > GPT signature and version first. These checks were inadvertantly > moved after the checksumming. > This should fix the system crash reported by Ze Loff on bugs@. (krw@) ~ syscalls.master > unlock the mmap! reminded and ok kettenis (tedu@) ~ init_sysent.c ~ syscalls.c > regen (tedu@) miscfs/fuse ~ fuse_vnops.c > remove lockmgr_printinfo stubs. from Martin Natano (tedu@) msdosfs ~ msdosfs_vnops.c > remove lockmgr_printinfo stubs. from Martin Natano (tedu@) net ~ route.c > Set the correct priority for connected routes. > Found by benno@. > ok phessler@, claudio@, benno@ (mpi@) ~ rtsock.c > Pass the correct variable to free(9) and while here add the size. > From David Hill, ok sthen@ (mpi@) ~ route.c > When a connected route is deleted, pass the corresponding priority to > rtrequest1(9) otherwise the route will remain attached to a stale ifa. > Found by matthieu@ (mpi@) ~ pipex.c > Use the radix-tree API instead of function pointers. > ok yasuoka@ (mpi@) ~ pf.c ~ route.c > Always increment rt_use inside rtalloc(9) instead of doing it in some > specific places. > ok claudio@, benno@ (mpi@) ~ if_trunk.c ~ if_trunk.h > Remove trunk watchdog code since it doesn't do anything useful > and we want to limit the number of different places where we > access trunk port pointers. > trunk_watchdog should be never called as we don't set up it's > if_timer and trunk_port_watchdog just calls the if_watchdog > from the underlying interface. > It's possible that this is no longer needed due to if_slowtimo/ > if_watchdog changes done earlier. > ok mpi (mikeb@) ~ if_trunk.c > Keep track of an active port in the failover trunk to avoid list > iterations and additional locking protection in the future. > Suggested by and ok mpi (mikeb@) ~ trunklacp.h > Removes locking macros that we've inherited from NetBSD/FreeBSD. > ok dlg, mpi (mikeb@) ~ if_trunk.c > Serialize trunk changes with input handler insertion and removal. > This moves around calls to if_ih_insert and if_ih_remove to ensure > that we either have completed port initialization or are going to > tear the port configuration down and don't want any input processes > to get hold of the port. > When trunk_port_destroy is called from the ioctl this would wait for > all input processes to finish and release their references to be able > to disestablish the input handler and ensure full control of the port. > When switching trunkproto it is required for the ioctl context to > be able to touch all trunk ports and the protocol (tr_psc). The > easiest way do this is to disestablish all input handlers (while > making sure they all complete) and then reestablish them after the > trunk reconfiguration is completed. > This avoids getting trunk a separate locking protocol of its own. > ok mpi, suggested by and ok dlg (mikeb@) ~ if_trunk.c ~ trunklacp.c > Avoid a theoretical m_pullup(9) mishandling by delegating the mbuf > reclaiming to the PDU and marker input routines. > m_pullup may return a pointer to the newly allocated mbuf. In this > case m_freem is called by the trunk_input, not by the proto specific > code and pointer to the mbuf is not passed by reference. Therefore > m_freem will either be called on the middle element of the chain > (when the m_pullup call succeeds) or on the stale pointer (when it > frees the chain in the failure case). Fortunately we should never > hit this case as the receive path uniformly uses contiguous chunks > of memory. > Verified with and ok blambert, ok mpi (mikeb@) ~ if_trunk.c > add a comment explaining how we serialize when switching trunkproto; > requested by mpi@ (mikeb@) ~ route.c > Ensure that RTF_LOCAL route entries always stay UP. > Local route entries, being now attached to their corresponding interface, > are susceptible to be brought DOWN when a link state change occurs. When > this happens locally configured addresses are no longer reachable. > So keep the previous (original) behavior by forcing such route entries to > always be UP. > ok sthen@, claudio@ (mpi@) ~ hfsc.c ~ if_var.h > pull the m_freem calls out of hfsc_enqueue by having IFQ_ENQUEUE free > the mbuf in both the hfsc and priq error paths. > ok mikeb@ mpi@ claudio@ henning@ (dlg@) ~ if_ethersubr.c > Welcome etheranyaddr, cousin of etherbroadcastaddr. > Can be used to check if a MAC address is all zeros. > Will be used by iwm(4) soon. > ok kettenis@ (stsp@) ~ if.c ~ if.h > Add if_setlladdr(), factored out from ifioctl(). Will be used by iwm(4) > soon. > With suggestions from tedu@ and guenther@ > ok kettenis@ (stsp@) net80211 ~ ieee80211.c ~ ieee80211_var.h > Add ieee80211_channel_init(), factored out from ieee80211_ifattach(). > Will be used by iwm(4) soon. > ok kettenis@ (stsp@) netinet ~ in_pcb.c ~ in_pcb.h > Remove inpt_lastport from struct inpcbtable, use local variables > in in_pcbbind() and in6_pcbsetport() > ok claudio@, with input from David Hill (vgross@) ~ ip_icmp.c ~ ip_output.c > Always increment rt_use inside rtalloc(9) instead of doing it in some > specific places. > ok claudio@, benno@ (mpi@) ~ ip_input.c > Ensure that RTF_LOCAL route entries always stay UP. > Local route entries, being now attached to their corresponding interface, > are susceptible to be brought DOWN when a link state change occurs. When > this happens locally configured addresses are no longer reachable. > So keep the previous (original) behavior by forcing such route entries to > always be UP. > ok sthen@, claudio@ (mpi@) ~ ip_carp.c > make carp_input mpsafe. > there are three data structures involved here: > the list of carp interfaces on a parent interface (struct carp_if) > is now accessed via the if_ih cookie. its lifetime is managed by > the if_ih_insert and if_ih_remove calls. > the second is the interfaces (struct carp_softc) in the list above. > these has been moved from being access via a TAILQ to an SRPL. > modifications to the list are serialised by the kernel lock. > the third is the list of vhost entries (struct carp_vhost_entry). > these used to be in a LIST on each carp_softc, but have been moved > to being accessed vian an SRPL. modifications to the list are > serialised by the kernel lock. > written at l2k15 > tested by mpi@ and hrvoje popovski > ok mpi@ (dlg@) ~ if_ether.h > Welcome etheranyaddr, cousin of etherbroadcastaddr. > Can be used to check if a MAC address is all zeros. > Will be used by iwm(4) soon. > ok kettenis@ (stsp@) netinet6 ~ in6_pcb.c > Remove inpt_lastport from struct inpcbtable, use local variables > in in_pcbbind() and in6_pcbsetport() > ok claudio@, with input from David Hill (vgross@) ~ ip6_output.c > Always increment rt_use inside rtalloc(9) instead of doing it in some > specific places. > ok claudio@, benno@ (mpi@) netmpls ~ mpls_input.c ~ mpls_output.c > Always increment rt_use inside rtalloc(9) instead of doing it in some > specific places. > ok claudio@, benno@ (mpi@) sys ~ lock.h > remove lockmgr_printinfo stubs. from Martin Natano (tedu@) ~ disklabel.h > Move declaration of readdisksector() to disklabel.h. This makes it > available to other areas of the kernel suffering from an overburden > of buf tweaking to read a disk sector. > ok mpi@ (krw@) ~ syscall.h ~ syscallargs.h > regen (tedu@) ufs/ffs ~ ffs_alloc.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) ufs/ufs ~ ufs_vnops.c > remove lockmgr_printinfo stubs. from Martin Natano (tedu@) uvm ~ uvm_page.c > Drop a misleading XXX about PQ_AOBJ. Clear PQ_ANON unconditionally for > consistency with PQ_AOBJ. > Input kettenis@, ok beck@ (visa@) ~ uvm_mmap.c > Corect a kbind comment to describe the version that was settled on: no old > data, only new (guenther@) ~ uvm_mmap.c > matthew noticed there's a race where we are using the kernel lock to tie > together the unmap and map portions of a fixed mmap. make this explicit > by pulling the lock up higher. in preparation for unlocking the syscall. > there's still (always has been) a race where if the unmap sleeps, another > mmap may see partial results because the map lock isn't held througout. > another problem, another day. (tedu@) ~ uvm_km.c ~ uvm_map.c > Protect the list of free map entries with a mutex. This should fix the > crashes seen by sthen@ on i386. > ok visa@, guenther@, tedu@ (kettenis@) == usr.bin =========================================================== 12/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin arch ~ arch.c > No need for err.h, avoid excess fputs() calls and return from main > instead of calling exit(). From Michael Reed. (millert@) ~ arch.c > tidy up a bit more (tedu@) calendar ~ calendar.1 > drop useless quoting (schwarze@) diff ~ diffdir.c ~ diffreg.c ~ xmalloc.c > xmalloc/free wrappers don't need to support 20 year old non comformance > (tedu@) ftp ~ ftp.1 > Clean up SYNOPSIS formatting: > * Use .Cm for keywords rather than .No. > * Simplify by using .Op rather than .Oo where it's easily possible. > * Shorten code by using .Ns rather than .Sm where it's easily possible. > * Also mark up URIs in the description, not just in the synopsis. > (schwarze@) ~ ftp.1 > Tweak previous (suggested by and ok jmc@): > While .Cm isn't wrong markup for ftp:// and http://, > it simply looks better in this case to not mark them up at all. (schwarze@) ~ ftp.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) getcap ~ getcap.1 ~ getcap.c > add missing .Ar macro and simplify synopsis (schwarze@) indent ~ indent_globs.h ~ io.c > Mark diag() as printf-like > ok millert@ (guenther@) leave ~ leave.1 > drop useless quoting (schwarze@) lex ~ flex.1 > Mention lex and flex++, from Rob Pierce. ok jmc (nicm@) ~ flex.1 > remove an unsightly paragraph break; (jmc@) libtool ~ LT/Library.pm ~ LT/Mode/Link.pm > Fix a couple of libtool issues: > * when looking for a library, also look for an unversioned solib before > falling > back to using the static one (which may not even exist) > * when a library has no libtool file (.la) with a proper dependency_libs > entry, > libtool(1) falls back to using objdump to determine the depencencies; > however this works only if dependencies are in standard search paths; fix > it > by looking at the RPATH entry in objdump then add non standard dirs to > search_dirs and -rpath > inputs from and ok espie@, ok jasper@ (ajacoutot@) make ~ error.c ~ error.h ~ var.c > Mark all the error printing functions as printf-like; fix two format > mismatches this revealed > ok espie@ (guenther@) mandoc ~ man.1 > no more _subdir; Jan Stary <hans at stare dot cz> (schwarze@) ~ man_term.c ~ mdoc_term.c ~ term.c ~ term.h > Trailing whitespace is significant when determining the width of a tag > in mdoc(7) .Bl -tag and man(7) .TP, but not in man(7) .IP. > Quirk reported by Jan Stary <hans at stare dot cz> on ports@. (schwarze@) ~ mdoc_html.c > Fix multiple aspects of SYNOPSIS .Nm formatting: > * Don't break lines before non-block .Nm elements. > * Use proper <b> markup for the heads of .Nm blocks. > * Make the width measurements work by doing them on the head children. > (schwarze@) ~ mdoc_html.c > resolve code duplication and do style cleanup in mdoc_nm_pre(), > no functional change (schwarze@) ~ html.c ~ man_html.c ~ man_macro.c ~ mdoc_html.c ~ mdoc_macro.c ~ mdoc_term.c ~ mdoc_validate.c ~ out.c ~ roff.c ~ tbl_opts.c ~ tbl_term.c ~ term.c ~ term_ascii.c ~ tree.c > /* NOTREACHED */ after abort() is silly, delete it (schwarze@) ~ tree.c > Show the flags MDOC_DELIMO, MDOC_DELIMC, MDOC_EOS, and MAN_EOS. > Drop the "block-" prefixes from the node type names. (schwarze@) ~ mandoc.1 > briefly document -T tree output (schwarze@) ~ mandoc.1 > tweak previous; (jmc@) mg ~ dired.c > If you open the same directory twice in dired mode, mg does not behave > correctly. In effect what should happen is the existing dired buffer > is brought to the fore, and if the directory contents has changed > inform the user. > ok sunil@ (lum@) ~ dired.c > fix line number handling in dired delete functions. (lum@) ~ paragraph.c > Fix multiple iterations of kill-paragraph. ok jasper@ (lum@) ~ def.h ~ funmap.c ~ keymap.c ~ mg.1 ~ paragraph.c > Add mark-paragraph. ok jasper@ (lum@) ~ paragraph.c > Make comments more accurate. (lum@) ~ dired.c > Fix where the cursor is positioned after expunging files. ok jasper@ (lum@) ~ def.h ~ funmap.c ~ mg.1 ~ paragraph.c > Add transpose-paragraphs. ok jasper@ (lum@) ~ autoexec.c ~ basic.c ~ buffer.c ~ cmode.c ~ cscope.c ~ dired.c ~ kbd.c ~ keymap.c > whitespace (jasper@) mixerctl ~ mixerctl.1 > drop useless .Xo and .Bk, and shorten by avoiding some .Sm (schwarze@) nc ~ nc.1 > avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .Bk (schwarze@) openssl ~ speed.c > Pack the algorithm numbers, to avoid printing a useless (null) 0 0 0 0 > line in the summary. (miod@) ~ ca.c ~ openssl.1 ~ openssl.c ~ ts.c ~ x509.c > remove vestigial bits of sha-0 and md2 from openssl(1) > Noted by kinichiro on github. We probably need a better way to indicate the > list of message digests that are allowed, as the current ones are nowhere > near > exhaustive (sigh - guenther@) > OK guenther@ jmc@ (bcook@) ~ x509.c > add a missing NULL check > noted by Bill Parker (dogbert2) on github (bcook@) ~ ca.c > add a couple of missing NULL checks > noted by Bill Parker (dogbert2) on github (bcook@) rcs ~ rcs.1 > fix the spacing of -m in the SYNOPSIS (schwarze@) ssh ~ packet.c > fix possible hang on closed output; bz#2469 reported by Tomas Kuthan > ok markus@ (djm@) ~ ssh_config.5 > fix two typos. (sobrado@) ~ readconf.c ~ readconf.h ~ ssh.1 ~ ssh.c ~ ssh.h ~ ssh_config.5 ~ sshconnect2.c > add ssh_config CertificateFile option to explicitly list > a certificate; patch from Meghana Bhat on bz#2436; ok markus@ (djm@) ~ scp.1 ~ sftp.1 ~ ssh.1 > some certificatefile tweaks; ok djm (jmc@) tmux ~ alerts.c > Reset the alerts timer always on activity, from Thomas Adam. (nicm@) ~ cmd-switch-client.c > Don't update last session when the session is unchanged, from Sina Siadat. > (nicm@) ~ tty-term.c > Assign flag not number for flag types (we got away with it so far > because that are a union). From Filipe Brandenburger. (nicm@) ~ log.c > Do not leak log file descriptor. (nicm@) ~ client.c > Don't leak fd and path on failure. (nicm@) ~ grid.c ~ tmux.h ~ cmd-clear-history.c > Free the history when it is cleared, based on a diff from Carlo Cannas. > (nicm@) ~ tty.c > If the terminal has colors=256, only try to use setaf/setab if they > exist, reported by Filipe Brandenburger. (nicm@) ~ options-table.c > Adding colors=256 to *256color* was always pretty stupid and now it > won't work (without adding setaf@:setab@ too). (nicm@) touch ~ touch.1 > drop redundant .Ns and reduce quoting (schwarze@) == usr.sbin ========================================================== 13/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin bgpd ~ parse.y > Allow for empty blocks for peers. While this is bad style for permant > use, this is very nice to temporarily disable a peer option. > OK sthen@ benno@ (phessler@) ~ bgpd.conf.5 ~ bgpd.h ~ parse.y ~ printconf.c ~ rde.c > Let us log all updates sent from an individual peer. Since this can be > applied to a group, also let us disable logging on a sub-member of the > group. Very handy for debugging naughty peers on a router with multiple > peers. > OK benno@ (phessler@) ~ bgpd.conf.5 > sort; (jmc@) config ~ ukc.h ~ ukcutil.c > Make UKC handle device locators as longs > ok miod@ (guenther@) - exec.c ~ Makefile ~ exec_elf.c > exec.c provided indirection for multiple exec formats. ELF-only now, so... > (guenther@) dvmrpctl ~ dvmrpctl.c > As done for bgpd recently, rename if_mediatype to if_type in dvrmpd. > Remove unused function get_ifms_type(). No ifmedia in here anymore. > "move forward" deraadt@ (stsp@) dvmrpd ~ dvmrpd.h ~ interface.c ~ kroute.c > As done for bgpd recently, rename if_mediatype to if_type in dvrmpd. > Remove unused function get_ifms_type(). No ifmedia in here anymore. > "move forward" deraadt@ (stsp@) ifstated ~ ifstated.8 > drop useless .Xo and .Bk, and shorten by avoiding some .Sm (schwarze@) ldpctl ~ ldpctl.c > As done for bgpd recently, rename if_mediatype to if_type in ldpd. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) ldpd ~ interface.c ~ kroute.c ~ ldpd.h ~ parse.y > As done for bgpd recently, rename if_mediatype to if_type in ldpd. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) npppd ~ npppd/npppd.conf.5 > typo in documentation. (sobrado@) ospf6ctl ~ ospf6ctl.c > As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) ospf6d ~ interface.c ~ ospf6d.c ~ ospf6d.h ~ ospfe.c ~ rde.c > As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) ospfctl ~ ospfctl.c > As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) ospfd ~ interface.c ~ kroute.c ~ ospfd.c ~ ospfd.h ~ ospfe.c > As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) pkg_add ~ pkg_sign.1 > Use .Cm rather than .Ar for fixed strings on the command line > and remove invalid escaping of `@' characters. (schwarze@) radiusd ~ radiusd.conf.5 > typo. (sobrado@) relayd ~ ca.c ~ config.c ~ parse.y ~ pfe.c ~ relay.c ~ relay_http.c ~ relayd.c ~ relayd.h ~ ssl.c TAGGED OPENBSD_5_7 > maintainance diff for relayd > MFC the following changes > - Missing free(3) in error path (ssl.c,v 1.29) > - fix a memory leak. (pfe.c,v 1.80) > - allocate se_log evbuffer before loging errors with relay_close() > (relay.c,v 1.192) > - fix a file descriptor leak in http protocol handling > (relay.c,v 1.193 and relay_http.c,v 1.44) > - Fix obvious problems with relayd config reload > (ca.c,v 1.13; config.c,v 1.25; parse.y,v 1.204; > relayd.c,v 1.139; relayd.h,v 1.209) > - http protocol: you cannot append to the previous key-value before > line three of a request (relay_http.c,v 1.45) > - fix a crash / use after free (relay.c,v 1.194; relay_http.c,v 1.46) > - fix a non safe use of TAILQ_FOREACH with TAILQ_REMOVE > (relay_http.c,v 1.47) > - Plug a memory leak by simplifying kv_free() (relayd.c,v 1.141) > - Fix memory leak in error case (relay_http.c,v 1.48) > - track the connection state of a session and stops doing double > opens in certain situations (relay.c,v 1.195; relay_http.c,v 1.49; > relayd.h,v 1.210) > - coding style (relay.c,v 1.196; relay_http.c,v 1.50; relayd.h,v 1.212) > ok claudio@, sthen@ and feedback tedu@ (benno@) ~ relay_http.c TAGGED OPENBSD_5_7 > include <unistd.h> unconditionally > ok benno (deraadt@) ripctl ~ ripctl.c > As done for bgpd recently, rename if_mediatype to if_type in ripd. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) ripd ~ interface.c ~ kroute.c ~ ripd.h > As done for bgpd recently, rename if_mediatype to if_type in ripd. > And some ifmedia64 fixes. > "move forward" deraadt@ (stsp@) rmt ~ rmt.8 ~ rmt.c > Add a set of flags to rmt(8) to make it run in a restricted mode, > designed to work with rdump(8) to remote disk. > -d <directory> confines rmt to operate within a single directory. > -r enforces read-only mode. > -w enforces write-only mode. > This is quite usable with public ssh key setup, e.g. having the following > in .ssh/authorized/keys: > command="/etc/rmt -rd > /backups/machine.example.conf",no-agent-forwarding,... ssh-rsa AAAAB3... > ok semarie@ (halex@) slowcgi ~ slowcgi.c > Output the contents of the environment in debug mode which is > most helpful in debugging interactions between httpd and slowcgi. > OK florian@ (millert@) syslogd ~ evbuffer_tls.c > Misuse of libevent in TLS read and write might have caused strange > event loss in syslogd. The ev_read and ev_write event structures > were used for both EV_READ and EV_WRITE events intermixedly. The > correct way is to use each event for its read and write purpose and > instead switch the handler. Then libevent is no longer confused. > When doing TLS read and a TLS_WANT_POLLOUT occures, call event_set() > for the write event to change the callback to read. As there might > be an event scheduled on the event, call event_del() before > event_set(). After a successful TLS read, change back the write > event. Add analog code for TLS write and handshake. > OK beck@ (bluhm@) tcpdump ~ tcpdump.8 > avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .Bk (schwarze@) ~ util.c > lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */ > (others require more care) (guenther@) =============================================================================== _______________________________________________ owc mailing list [email protected] http://www.squish.net/mailman/listinfo/owc
