OpenBSD src changes summary for 2016-02-28 to 2016-03-06 inclusive ==================================================================
bin/df bin/ksh bin/systrace distrib/miniroot distrib/sets distrib/special etc/etc.i386/sysctl.conf etc/examples/printcap etc/group etc/mail/aliases etc/master.passwd etc/moduli etc/mtree/4.4BSD.dist games/canfield games/fortune games/hangman games/worms gnu gnu/usr.bin/perl lib/libarch lib/libc lib/libedit lib/libssl libexec/ftpd regress/bin regress/lib regress/sys regress/usr.bin sbin/ifconfig sbin/isakmpd sbin/mknod sbin/ping sbin/ping6 sbin/sysctl share/locale share/man sys/arch/alpha/include sys/arch/amd64/amd64 sys/arch/amd64/stand/libsa sys/arch/arm/arm sys/arch/arm/include sys/arch/armv7/omap sys/arch/hppa/hppa sys/arch/hppa64/hppa64 sys/arch/i386/conf sys/arch/i386/i386 sys/arch/i386/include sys/arch/landisk/landisk sys/arch/loongson/dev sys/arch/loongson/include sys/arch/loongson/loongson sys/arch/m88k/m88k sys/arch/macppc/conf sys/arch/macppc/include sys/arch/macppc/macppc sys/arch/mips64/include sys/arch/mips64/mips64 sys/arch/octeon/dev sys/arch/octeon/include sys/arch/octeon/octeon sys/arch/powerpc/conf sys/arch/powerpc/ddb sys/arch/powerpc/include sys/arch/sgi/include sys/arch/sgi/localbus sys/arch/sgi/sgi sys/arch/sgi/xbow sys/arch/sh/dev sys/arch/sh/sh sys/arch/socppc/conf sys/arch/socppc/include sys/arch/socppc/socppc sys/arch/sparc64/sparc64 sys/arch/zaurus/stand/zboot sys/compat/common sys/compat/linux sys/conf sys/ddb sys/dev sys/dev/acpi sys/dev/ofw sys/dev/pci sys/dev/usb sys/dev/wscons sys/kern sys/net sys/net80211 sys/netinet sys/netinet6 sys/ntfs sys/sys sys/ufs/ext2fs sys/ufs/ffs sys/uvm usr.bin/diff usr.bin/file usr.bin/kdump usr.bin/ktrace usr.bin/make usr.bin/ssh usr.bin/tmux usr.bin/units usr.sbin/ikectl usr.sbin/lpr usr.sbin/ntpd usr.sbin/pkg_add usr.sbin/rtadvd usr.sbin/snmpd usr.sbin/unbound usr.sbin/vmd usr.sbin/ypldap == bin =============================================================== 01/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin df ~ ext2fs_df.c ~ ffs_df.c > remove unneeded includes > from Michal Mazurek, ok tb@ (mmcc@) ~ df.c > tidy up function declarations and definitions > from Michal Mazurek, ok tb@ (mmcc@) ksh ~ lex.c > don't parse (...|...) patterns in variable substitution inside double > quotes > fixes posix compatibility issue > OK millert@, nicm@, otto@ (czarkoff@) - mknod.c ~ Makefile ~ c_sh.c ~ ksh.1 ~ main.c ~ sh.h > remove CSRG BSD-licensed mknod builtin code which was previously used to > accelerate install/upgrade time MAKEDEV runs. That allows ramdisk ksh > to be pledged, without needing "dpath". We'll solve the performance issues > a different way (soon). > ok otto espie natano tb tobiasu rpe (deraadt@) ~ ksh.1 > Fix a typo. The command is to get the default system PATH value > is "getconf PATH" not "getconf CS_PATH". (millert@) ~ eval.c > POSIX-compliant behavior of "set -u" regarding "$*" and "$@" specials > All work done by Martijn Dekker > OK millert@ (czarkoff@) ~ ksh.1 ~ misc.c > Make set +o conform with POSIX. > It should be possible to use set +o to save the current shell options, > then modify them at will and later restore them to the saved value. > Therefore the output must not only contain the options which are > currently set, but also the ones that are _not_ set, so a restore > disables them if they are enabled. > from Martijn Dekker (martijn (at) inlv (dot) org) > ok sthen@, tb@ (natano@) ~ ksh.1 > tweak previous a little; (jmc@) systrace - linux-translate.c - linux-translate.h - linux_socketcall.h ~ Makefile ~ openbsd-syscalls.c ~ register.c ~ systrace-translate.c ~ systrace.h > drop Linux emulation support; ok sthen@ visa@ (naddy@) == distrib =========================================================== 02/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib miniroot ~ install.sub > missed 'sed -i' > OK halex@ (rpe@) sets ~ lists/man/mi > sync (sthen@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ 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.i386 ~ lists/comp/md.i386 > syn (deraadt@) ~ lists/base/md.alpha ~ lists/base/md.amd64 ~ lists/base/md.armish ~ lists/base/md.armv7 ~ 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.vax > Correct OpenBSD::Pledge in set list to allow vax release to build > from Sigi Rudzio <sigirudzio gmail.com> (afresh1@) ~ lists/base/mi > sync (deraadt@) special ~ ksh/Makefile > remove CSRG BSD-licensed mknod builtin code which was previously used to > accelerate install/upgrade time MAKEDEV runs. That allows ramdisk ksh > to be pledged, without needing "dpath". We'll solve the performance issues > a different way (soon). > ok otto espie natano tb tobiasu rpe (deraadt@) == etc =============================================================== 03/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc etc.i386/sysctl.conf ~ etc.i386/sysctl.conf > delete the kern.emul/KERN_EMUL sysctl bits since there are no > emulations left; ok millert@ deraadt@, jmc@ (man pages) (naddy@) ~ etc.i386/sysctl.conf > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) examples/printcap ~ examples/printcap > Change default lpd spool directory to match the code; from Chris Bennett > Add /var/spool/output/lpd to mtree(1). > This removes the ability for the daemon group to write directly under > /var/spool/output; though no breakage is expected since this directory was > only > supposed to contain line printer spooling directories. > ok sthen@ (ajacoutot@) group ~ group > add proper entries for pkg_add privsep, instead of piggy-backing on _pfetch > which was a "better than nothing" measure for 5.9. > Another user to come. Approved by deraadt@ on principle. > thanks sthen@ for checking my lines over. (espie@) mail/aliases ~ mail/aliases > add proper entries for pkg_add privsep, instead of piggy-backing on _pfetch > which was a "better than nothing" measure for 5.9. > Another user to come. Approved by deraadt@ on principle. > thanks sthen@ for checking my lines over. (espie@) master.passwd ~ master.passwd > add proper entries for pkg_add privsep, instead of piggy-backing on _pfetch > which was a "better than nothing" measure for 5.9. > Another user to come. Approved by deraadt@ on principle. > thanks sthen@ for checking my lines over. (espie@) moduli ~ moduli > Update moduli file. (dtucker@) mtree/4.4BSD.dist ~ mtree/4.4BSD.dist > Change default lpd spool directory to match the code; from Chris Bennett > Add /var/spool/output/lpd to mtree(1). > This removes the ability for the daemon group to write directly under > /var/spool/output; though no breakage is expected since this directory was > only > supposed to contain line printer spooling directories. > ok sthen@ (ajacoutot@) == games ============================================================= 04/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/games canfield ~ canfield/canfield.6 > Fix score file name (tim@) fortune ~ fortune/fortune.c > Convert a hand-rolled strtonum to a call to strtonum(3). This prevents > integer overflow on bogus input and bizarre error messages. Moreover, > fortune files can now be named anything except names matching the regex > ^[0-9][0-9.]*%$ > ok mestre@ (tb@) hangman ~ main.c > Add back undocumented -h switch defaulting to usage(). > pjanzen@ correctly pointed out that a majority of games do > this, so no need to deviate here. (tb@) worms ~ worms.c > - Convert atoi(3) to strtonum(3) > - Replace hardcoded program string by getprogname(3) > - Remove '?' from getopt(3)'s switch default case (but still keep 'h') > OK tb@ after his suggestions (mestre@) ~ worms.c > KNF: wrap three overly long lines. No binary change. (tb@) == gnu =============================================================== 05/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/gnu gnu ~ gcc/gcc/config/alpha/alpha.c > In emit_insxl() force the first operand of the insbl or inswl pattern > into a register. Fixes an ICE when building Mesa with __sync builtins. > From Roger Sayle in gcc svn rev 121779 in Feb 2007 before the license > change. > Tested by miod and matthieu. (jsg@) usr.bin/perl ~ perl.c ~ vms/vms.c TAGGED OPENBSD_5_8 > Fix for perl CVE-2016-2381 > Prior to this patch, when an environment variable "X" appears multiple > times in > envp, perl could return different values for $ENV{"X"} than that provided > by > getenv("X"). Further, subprocessses could inherit surprising environment > variables because of this. > from Ricardo Signes <rjbs cpan.org> > This problem was originally reported by Stephane Chazelas. > http://perl5.git.perl.org/perl.git/commit/7098efff946437a2db6013d12c4fc3193 > fc328ce > http://perl5.git.perl.org/perl.git/commit/2c2d7ae2ec598bff43f056060e4a83656 > 066a4c4 (afresh1@) ~ perl.c ~ vms/vms.c TAGGED OPENBSD_5_7 > Fix for perl CVE-2016-2381 > Prior to this patch, when an environment variable "X" appears multiple > times in > envp, perl could return different values for $ENV{"X"} than that provided > by > getenv("X"). Further, subprocessses could inherit surprising environment > variables because of this. > from Ricardo Signes <rjbs cpan.org> > This problem was originally reported by Stephane Chazelas. > http://perl5.git.perl.org/perl.git/commit/7098efff946437a2db6013d12c4fc3193 > fc328ce > http://perl5.git.perl.org/perl.git/commit/2c2d7ae2ec598bff43f056060e4a83656 > 066a4c4 (afresh1@) == lib =============================================================== 06/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib libarch - i386/i386_get_ldt.2 - i386/i386_get_ldt.c - i386/i386_set_ldt.c ~ i386/Makefile > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) libc ~ sys/truncate.2 > fruncate() returns EFBIG when length exceeds the max file size. > ok mpi@ (natano@) ~ gen/sysctl.3 > delete the kern.emul/KERN_EMUL sysctl bits since there are no > emulations left; ok millert@ deraadt@, jmc@ (man pages) (naddy@) ~ gen/sysctl.3 > __tfork is section 3, not 2; (jmc@) ~ gen/sysctl.3 > Add NET_RT_IFNAMES; OK deraadt@ (tim@) ~ gen/fnmatch.c > KNF this file; OK stsp@ (millert@) ~ sys/ptrace.2 > Document the PT_GET_THREAD_{FIRST,NEXT} requests > From Michal Mazurek (akfaew (at) jasminek.net) (guenther@) ~ sys/ktrace.2 > No more compat emulations, so remove ktrace EMUL records and the baggage > for generating and parsing them. > ok mpi@ naddy@ millert@ deraadt@ (guenther@) ~ sys/intro.2 > The range of PIDs has changed, and always included zero. > Based on diff from Michal Mazurek (akfaew (at) jasminek.net) (guenther@) libedit ~ chared.c > Fix a segfault and functional error in c_gets(), > which is used for extended command input and for vi search mode. > It could be triggered by typing one or more characters, then pressing > backspace once (functional error: the character was deleted from > the screen, but not from the edit buffer) or a few more times than > characters had been entered (segfault). > OK czarkoff@. Also checked by Christos Zoulas. (schwarze@) libssl ~ src/ssl/d1_lib.c > remove NULL checks for pqueue_free() > ok doug@ (mmcc@) ~ src/crypto/dsa/dsa_ameth.c > Remove support for ancient, broken DSA implementations. > Based on a few OpenSSL commits: > Remove ancient DSA workarounds > commit ab4a81f69ec88d06c9d8de15326b9296d7f498ed > Remove workaround for broken DSA implementations using negative integers > commit dfb10af92e9663ce4eefaa1d6b678817fa85344d > Typo in error name (EVP_R_DECODE_ERROR -> DSA_R_DECODE_ERROR) > commit f6fb7f1856d443185c23f1a5968c08b4269dd37d > ok beck@ (doug@) ~ src/crypto/pem/pvkfmt.c > bound lengths coming out of a pem file to something like reality > ok deraadt@ (beck@) ~ src/crypto/bn/bn.h ~ src/crypto/bn/bn_print.c > Add bounds checking for BN_hex2bn/BN_dec2bn. > Need to make sure i * 4 won't overflow. Based on OpenSSL: > commit 99ba9fd02fd481eb971023a3a0a251a37eb87e4c > input + ok bcook@ > ok beck@ (doug@) ~ src/crypto/pem/pvkfmt.c > fix the rest of the read_ledword() calls used as lengths to be bounded. > inspired by guido vranken > https://guidovranken.wordpress.com/2016/03/01/public-disclosure-malformed-p > rivate-keys-lead-to-heap-corruption-in-b2i_pvk_bio/ > ok doug@ (beck@) ~ src/crypto/bn/bn.h > Revert bn_expand until there's consensus on a fix. (doug@) ~ src/crypto/bn/bn.h ~ src/crypto/bn/bn_lib.c > graduate bn_expand() to a real function. the openssl version of this > uses a macro with multiple-evaluations of arguments (different amount > than the previous version..), but doug/bcook's inline version makes > BIGNUM not opaque [problem spotted by naddy] > ok doug (deraadt@) ~ src/ssl/d1_both.c ~ src/ssl/d1_enc.c ~ src/ssl/t1_enc.c ~ ssl/Makefile > Make sure stdio functions don't end up in the library, from miod@ > ok doug@ bcook@ (beck@) ~ src/crypto/asn1/a_object.c ~ src/crypto/asn1/asn1_lib.c > explict_bzero for some asn1 free's - ok miod@ (beck@) == libexec =========================================================== 07/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/libexec ftpd ~ popen.c > Kill unused variable. (jca@) ~ monitor_fdpass.c > Print ssize_t with %zd; ok deraadt@ mmcc@ (jca@) == regress =========================================================== 08/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/regress bin ~ ksh/unclass1.t > rename xxx-what-do-you-call-this-1 to qouted-brace-expansion-1 > suggestion from beck@, OK millert@, otto@ (czarkoff@) ~ ksh/unclass1.t > don't parse (...|...) patterns in variable substitution inside double > quotes > fixes posix compatibility issue > OK millert@, nicm@, otto@ (czarkoff@) ~ ksh/obsd-regress.t > POSIX-compliant behavior of "set -u" regarding "$*" and "$@" specials > All work done by Martijn Dekker > OK millert@ (czarkoff@) lib ~ libedit/read/Makefile ~ libedit/read/test_read_char.c + libedit/Makefile + libedit/chared/Makefile + libedit/chared/exp_gets.ascii + libedit/chared/exp_gets.utf8 + libedit/chared/inp_gets.txt + libedit/chared/test_gets.c + libedit/keymacro/Makefile + libedit/keymacro/test_get.c + libedit/read/exp_getcmd.txt + libedit/read/glue.c + libedit/read/test_getcmd.c > More unit tests for libedit. > Those that still fail are commented out in the Makefiles for now; > i have patches for them. (schwarze@) ~ Makefile > Enter libedit directory by default. > A few tests are enabled and work, so this starts being useful. (schwarze@) ~ libedit/Makefile > After the bugfix in libedit/chared.c rev. 1.17, > chared unit tests now work, so enable them. (schwarze@) sys ~ ffs/run > Repair the namegen function to make ffs regress useful again. > openssl md5 adds a "(stdin)= " prefix to the output, but all we need is > the actual md5 sum itself. This caused most of the ffs regress tests to > fail. > ok mpi@ (natano@) - arch/i386/Makefile - arch/i386/ldt/Makefile - arch/i386/ldt/testldt.c > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) ~ Makefile > be more careful determining which regress/sys/arch/XXX directory to > enter; issue came up a dir was deleted containing a obj@ link > ok millert (deraadt@) usr.bin ~ ssh/integrity.sh > Look back 3 lines for possible error messages. Changes to the code mean > that "Bad packet length" errors are 3 lines back instead of the previous > two, which meant we didn't skip some offsets that we intended to. > (dtucker@) ~ ssh/Makefile + ssh/misc/Makefile + ssh/misc/kexfuzz/Makefile + ssh/misc/kexfuzz/README + ssh/misc/kexfuzz/kexfuzz.c > add KEX fuzzer harness; ok deraadt@ (djm@) ~ ssh/integrity.sh > Filter debug messages out of log before picking the last two lines. > Should prevent problems if any more debug output is added late in the > connection. (dtucker@) ~ file/t1.out > Update file(1) regress for new description of ar(1) file. (nicm@) == sbin ============================================================== 09/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin ifconfig ~ ifconfig.8 > Add a missing Ns macro (tim@) ~ ifconfig.c > provide generic ioctls for managing an interfaces parent > in the future this will subsume the individual vlandev, carpdev, > pppoedev, foodev options for things like vlan, carp, pppoe, etc. > inspired by vnetid > ok mpi@ jmatthew@ (dlg@) ~ ifconfig.c > repair for ramdisk builds (deraadt@) isakmpd ~ monitor_fdpass.c > Print ssize_t with %zd; ok deraadt@ mmcc@ (jca@) ~ isakmpd.8 > fix steps for cert creation; > issue reported by igor.kos > (temporary) fix entirely provided by sthen (jmc@) mknod ~ mknod.c > Invert the pledge() condition. > The only case where we don't want to pledge() is when a mode containing > the suid, sgid or sticky is is passed on the command line. mknod() in a > pledged binary would always strip those bits. > discussion and ok espie@ > ok deraadt@ semarie@ tb@ (natano@) ~ mknod.8 > Now that the ksh built-in mknod is gone, don't mention it here. > ok deraadt@, jmc@ (tb@) ~ mknod.8 ~ mknod.c > Almost complete rewrite of mknod. > With this, none of the original code survives, so the Copyright notice > can be changed accordingly. > This does pledge upfront, because having fifos or devices with > setuid/gid/sticky makes no sense anyway. > The reorganization was done to allow a "create multiple devices" at once > mode, in order to speed up MAKEDEV (eventually) now that the ksh builtin > is gone. The code is picky and checks all parameters before doing > anything. > Inputs from natano, deraadt, rpe, millert, tb, jmc... > okay tb@, deraadt@ (espie@) ~ mknod.c > Use mknod(2) to create FIFOs by setting S_IFIFO in the mode. > Simplifies the logic in domakenodes() slightly. OK espie@ (millert@) ~ mknod.c > Remove debugging code, extra whitespace and a lint annotation. > "just clean it", deraadt@; ok sha256 (tb@) ~ mknod.c > Remove unused node type; ok espie@ (natano@) ~ mknod.c > better error messages, common work with natano@ (espie@) ~ mknod.c > Tighten mknod pledge(). > The wpath, cpath and fattr promises are not required for calling mknod(2), > dpath is enough. > ok semarie@ > testing and ok tb@ (natano@) ~ mknod.c > my bad. thought it was setlocale "C". (espie@) ~ mknod.c > Drop "rpath" promise. Now that pledge() is called after setlocale(), > this is no longer needed. > ok beck@, natano@ (tb@) ping ~ ping.c > ping(8) and ping6(8) use different types for packet counters. In > preparation of a merge just use int64_t and be done with it. > OK deraadt (florian@) ping6 ~ ping6.c > ping(8) and ping6(8) use different types for packet counters. In > preparation of a merge just use int64_t and be done with it. > OK deraadt (florian@) sysctl ~ sysctl.8 ~ sysctl.c > delete the kern.emul/KERN_EMUL sysctl bits since there are no > emulations left; ok millert@ deraadt@, jmc@ (man pages) (naddy@) ~ sysctl.8 > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) == share ============================================================= 10/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share locale ~ ctype/en_US.UTF-8.src ~ ctype/gen_ctype_utf8.pl > Improve SWIDTH of some unicode characters > ok schwarze@ (afresh1@) man ~ man4/options.4 ~ man8/Makefile > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ man4/wscons.4 > remove mention of Linux and FreeBSD binary emulation; pointed out by jmc@ > (naddy@) ~ man4/uhid.4 > Remove USB_SET_IMMED ioctl and corresponding code and manpage bits. > Nothing uses it. > suggested by and ok mpi@ (stefan@) ~ man8/autoinstall.8 > Tweak info about using subdirectories. > feedback from and OK jmc@ (rpe@) - man8/compat_linux.8 > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ man7/hier.7 > Stop mentioning /emul/ in hier(7), naddy@ agrees. (sthen@) ~ man5/files.conf.5 ~ man9/syscall.9 > remove the remaining mentions of sys/compat/*; ok deraadt@ millert@ jmc@ > (naddy@) ~ man3/intro.3 ~ man4/options.4 > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) ~ man4/wscons.4 > Remove WSDISPLAY_COMPAT_SYSCONS. We no longer run FreeBSD binary X11 > servers. Pointed out by jmc@, ok deraadt@ millert@ (naddy@) == sys =============================================================== 11/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys arch/alpha/include ~ cpu.h > guard macro args with parens > from Michal Mazurek, ok deraadt@ (mmcc@) arch/amd64/amd64 ~ db_trace.c > Kill never called db_find_trace_symbols(). > ok mikeb@ (mpi@) ~ db_trace.c > db_sym_numargs() has always been defined to FALSE so nuke it with all > its associated dead code. > ok mikeb@ (mpi@) ~ vector.S > Kill BPTTRAP() and reduce some differences betwen i386 and amd64 trap > handlers. > No functionnal change. > ok mlarkin@, mikeb@ (mpi@) ~ db_trace.c > Kill db_x86_64_regop() to unify how db_regs[] is defined between archs. > No objection from mlarkin@ (mpi@) ~ db_trace.c > Unwind the trapframe correctly when a breakpoint is set on `syscall'. > Prevent a fault in DDB on amd64. > ok mlarkin@ (mpi@) ~ vmm.c > Re-introduce computation of memory used by a VM. > This got accidently removed by me in r1.31. > noticed by and ok mlarkin@ (stefan@) ~ vmm.c > VM guest memory is allocated via an uvm anon memory range. > Allocate management data structures (amap) lazily by specifying > the UVM_FLAG_COPYONW flag instead of UVM_FLAG_OVERLAY when > creating the anon. > ok mlarkin@ (stefan@) ~ consinit.c ~ est.c ~ lapic.c ~ nvram.c ~ wscons_machdep.c > Sync no-argument function declaration and definition by adding (void). > ok kettenis@ mpi@ (naddy@) arch/amd64/stand/libsa ~ pxe.c > Sync no-argument function declaration and definition by adding (void). > ok kettenis@ mpi@ (naddy@) arch/arm/arm ~ cpufunc.c > set armv7 callbacks for cortex a53/a52/a72 > from Patrick Wildt who tested this on cortex a53 (jsg@) ~ pmap7.c > When a physical address is needed to flush the secondary cache use > VM_PAGE_TO_PHYS() instead of unnecessarily calling pmap_extract(). > From Patrick Wildt. (jsg@) arch/arm/include ~ armreg.h > fix the name of the define for the a72 mask > from Patrick Wildt (jsg@) arch/armv7/omap ~ if_cpsw.c ~ if_cpswreg.h > Detect and only enable the port that is actually used. > The unused port, if enabled, fills up and triggers flow > control, blocking transmit and causing device timeouts. > Also enable interrupt pacing to limit interrupts at 2K/s. > Reported and fix tested by Anthony Eden. > ok dlg@ (canacar@) arch/hppa/hppa ~ db_interface.c > db_sym_numargs() has always been defined to FALSE so nuke it with all > its associated dead code. > ok mikeb@ (mpi@) arch/hppa64/hppa64 ~ db_interface.c > db_sym_numargs() has always been defined to FALSE so nuke it with all > its associated dead code. > ok mikeb@ (mpi@) arch/i386/conf ~ GENERIC ~ files.i386 > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ GENERIC > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) arch/i386/i386 ~ genassym.cf ~ locore.s ~ trap.c > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) - linux_machdep.c > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ db_trace.c > Kill never called db_find_trace_symbols(). > ok mikeb@ (mpi@) ~ db_trace.c > db_sym_numargs() has always been defined to FALSE so nuke it with all > its associated dead code. > ok mikeb@ (mpi@) ~ locore.s > Kill BPTTRAP() and reduce some differences betwen i386 and amd64 trap > handlers. > No functionnal change. > ok mlarkin@, mikeb@ (mpi@) ~ gdt.c ~ machdep.c ~ pmap.c ~ sys_machdep.c > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) ~ db_trace.c > Unwind the trapframe correctly when a breakpoint is set on `syscall'. > Prevent a fault in DDB on amd64. > ok mlarkin@ (mpi@) arch/i386/include - linux_machdep.h > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ cpu.h ~ gdt.h ~ pmap.h ~ sysarch.h > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) arch/landisk/landisk ~ conf.c ~ machdep.c > Sync no-argument function declaration and definition by adding (void). > Covers all of landisk/sh, per naddy's suggestion. > ok on previous diff deraadt@ naddy@ (tobiasu@) arch/loongson/dev ~ bonito.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/loongson/include ~ intr.h > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/loongson/loongson ~ generic2e_machdep.c ~ machdep.c ~ yeeloong_machdep.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/m88k/m88k ~ db_trace.c > DB_SYM_NULL -> NULL. (mpi@) arch/macppc/conf ~ files.macppc > One ddb interface is enough for ppc. (mpi@) arch/macppc/include ~ db_machdep.h > One ddb interface is enough for ppc. (mpi@) arch/macppc/macppc ~ db_interface.c ~ locore.S > Rename ddb_trap_glue() to db_trap_glue(). > Let's keep the 'db_' prefix for all ddb(4) functions that should not be > instrumented. (mpi@) ~ db_interface.c > Define db_reg_t like the other archs by typedef'ing "struct trapframe". > This will allow us to use some of the DDB macros on trapframe which are > not DDB_REGS. (mpi@) - db_interface.c > One ddb interface is enough for ppc. (mpi@) arch/mips64/include ~ cpu.h > guard macro args with parens > from Michal Mazurek, ok deraadt@ (mmcc@) ~ cpu.h ~ db_machdep.h ~ frame.h ~ pcb.h ~ proc.h ~ rm7000.h > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/mips64/mips64 ~ trap.c > DB_SYM_NULL -> NULL. (mpi@) ~ clock.c ~ db_machdep.c ~ fp_emulate.c ~ interrupt.c ~ mips64_machdep.c ~ process_machdep.c ~ r4000_errata.c ~ sendsig.c ~ trap.c ~ vm_machdep.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/octeon/dev ~ octeon_intr.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/octeon/include ~ intr.h > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/octeon/octeon ~ machdep.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/powerpc/conf ~ files.powerpc > One ddb interface is enough for ppc. (mpi@) arch/powerpc/ddb ~ db_trace.c > DDB_REGS -> ddb_regs in db_regs[], no reason to be different. (mpi@) ~ db_trace.c > Define db_reg_t like the other archs by typedef'ing "struct trapframe". > This will allow us to use some of the DDB macros on trapframe which are > not DDB_REGS. (mpi@) + db_interface.c > One ddb interface is enough for ppc. (mpi@) ~ db_interface.c > DDB_REGS -> ddb_regs (mpi@) arch/powerpc/include ~ db_machdep.h > Define db_reg_t like the other archs by typedef'ing "struct trapframe". > This will allow us to use some of the DDB macros on trapframe which are > not DDB_REGS. (mpi@) ~ db_machdep.h > One ddb interface is enough for ppc. (mpi@) arch/sgi/include ~ intr.h > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/sgi/localbus ~ imc.c ~ int.c ~ macebus.c ~ tcc.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/sgi/sgi ~ intr_template.c ~ ip27_machdep.c ~ ip30_machdep.c ~ machdep.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/sgi/xbow ~ xheart.c > Rename mips64's trap_frame into trapframe. > For coherency with other archs and in order to use it in MI code. > ok visa@, tobiasu@ (mpi@) arch/sh/dev ~ scif.c > Sync no-argument function declaration and definition by adding (void). > Covers all of landisk/sh, per naddy's suggestion. > ok on previous diff deraadt@ naddy@ (tobiasu@) arch/sh/sh ~ cache.c ~ cache_sh3.c ~ clock.c ~ db_interface.c ~ devreg.c ~ mmu_sh3.c ~ mmu_sh4.c ~ pmap.c ~ sh_machdep.c > Sync no-argument function declaration and definition by adding (void). > Covers all of landisk/sh, per naddy's suggestion. > ok on previous diff deraadt@ naddy@ (tobiasu@) arch/socppc/conf ~ files.socppc > Move fdt to a more centralized location so it can be used by arm as well. > Diff from Patrick Wildt. Tested and OK dlg@. (bmercer@) ~ files.socppc > One ddb interface is enough for ppc. (mpi@) arch/socppc/include - fdt.h > Move fdt to a more centralized location so it can be used by arm as well. > Diff from Patrick Wildt. Tested and OK dlg@. (bmercer@) arch/socppc/socppc ~ db_interface.c ~ locore.S > Rename ddb_trap_glue() to db_trap_glue(). > Let's keep the 'db_' prefix for all ddb(4) functions that should not be > instrumented. (mpi@) ~ fdt.c > Remove useless code, from Patrick Wildt. (mpi@) ~ fdt.c > Convert FDT values from big endian to host endian. > This is a no-op on socppc but will allows ARM ports (little-endian) > to make use of this code. > From Patrick Wildt. (mpi@) - fdt.c ~ machdep.c > Move fdt to a more centralized location so it can be used by arm as well. > Diff from Patrick Wildt. Tested and OK dlg@. (bmercer@) ~ db_interface.c > Define db_reg_t like the other archs by typedef'ing "struct trapframe". > This will allow us to use some of the DDB macros on trapframe which are > not DDB_REGS. (mpi@) - db_interface.c > One ddb interface is enough for ppc. (mpi@) arch/sparc64/sparc64 ~ openfirm.c > DB_SYM_NULL -> NULL. (mpi@) arch/zaurus/stand/zboot ~ compat_linux.h > fix a typoed ioctl name; ok millert@ deraadt@ (naddy@) ~ compat_linux.h ~ termios.c > Disentangle the Zaurus bootstrap from compat/linux and move the > syscall definitions directly into compat_linux.h. > For consistency, always use the termios defines without LINUX_ > prefix. > ok visa@, help in getting this right from jsg@ (naddy@) compat/common - compat_dir.c - compat_dir.h - compat_util.c - compat_util.h > remove the Linux emulation code, no longer referenced by anything (naddy@) compat/linux - Makefile - files.linux - linux_blkio.c - linux_blkio.h - linux_cdrom.c - linux_cdrom.h - linux_dirent.h - linux_dummy.c - linux_emuldata.h - linux_errno.h - linux_error.c - linux_exec.c - linux_exec.h - linux_fcntl.h - linux_fdio.c - linux_fdio.h - linux_file.c - linux_file64.c - linux_futex.c - linux_futex.h - linux_hdio.c - linux_hdio.h - linux_ioctl.c - linux_ioctl.h - linux_ipc.c - linux_ipc.h - linux_ipccall.h - linux_misc.c - linux_misc.h - linux_mmap.h - linux_mount.c - linux_msg.h - linux_resource.c - linux_resource.h - linux_sched.c - linux_sched.h - linux_sem.h - linux_shm.h - linux_signal.c - linux_signal.h - linux_socket.c - linux_socket.h - linux_socketcall.h - linux_sockio.h - linux_syscall.h - linux_syscallargs.h - linux_syscalls.c - linux_sysent.c - linux_termios.c - linux_termios.h - linux_time.c - linux_time.h - linux_types.h - linux_util.h - syscalls.conf - syscalls.master > remove the Linux emulation code, no longer referenced by anything (naddy@) conf ~ files > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ files > Copy the stackgap_init() and stackgap_alloc() functions from > compat/common/compat_util.c to dev/systrace.c, the one place they > are used, and remove the remaining kernel references to compat/*. > ok visa@ (naddy@) ddb ~ db_sym.c > Remove leftovers from mutliple symbol tables support. (mpi@) ~ db_elf.c ~ db_sym.c ~ db_sym.h > DB_SYM_NULL -> NULL. (mpi@) ~ db_elf.c ~ db_sym.c ~ db_sym.h > Make db_value_of_name() call db_elf_sym_lookup() in order to kill > db_lookup() as requested by mlarkin@ > While here move the function to db_elf.c do keep db_elf_sym_lookup() > private. > ok mikeb@ appart from the move the function (mpi@) ~ db_sym.h > db_sym_numargs() has always been defined to FALSE so nuke it with all > its associated dead code. > ok mikeb@ (mpi@) ~ db_trap.c ~ db_print.c > DDB_REGS -> &ddb_regs. > All our archs use the same define. (mpi@) ~ db_elf.c ~ db_sym.c ~ db_sym.h > Merge db_elf_sym_values() into db_symbol_values(). > ok stefan@ (mpi@) dev ~ systrace.c ~ systrace.h > Copy the stackgap_init() and stackgap_alloc() functions from > compat/common/compat_util.c to dev/systrace.c, the one place they > are used, and remove the remaining kernel references to compat/*. > ok visa@ (naddy@) dev/acpi ~ dsdt.c > Claim to be more versions of windows for _OSI checks. > 2001.1 SP1 Windows Server 2003 SP1 > 2006.1 Windows Server 2008 > 2006 SP1 Windows Vista SP1 > 2006 SP2 Windows Vista SP2 > 2015 Windows 10 > ok kettenis@ (jsg@) dev/ofw + fdt.c + fdt.h > Move fdt to a more centralized location so it can be used by arm as well. > Diff from Patrick Wildt. Tested and OK dlg@. (bmercer@) dev/pci ~ if_oce.c > extra ) not needed, spotted by tiago silva (deraadt@) dev/usb ~ uhid.c ~ usb.h > Remove USB_SET_IMMED ioctl and corresponding code and manpage bits. > Nothing uses it. > suggested by and ok mpi@ (stefan@) ~ ugen.c ~ uhid.c ~ ulpt.c ~ usb.c ~ usb_subr.c ~ usbdi.h > Convert uiomovei to uiomove. Fixes a few integer truncations along the > way. > ok natano@ (stefan@) dev/wscons ~ wsdisplay_compat_usl.c ~ wsdisplay_usl_io.h > Remove WSDISPLAY_COMPAT_SYSCONS. We no longer run FreeBSD binary X11 > servers. Pointed out by jmc@, ok deraadt@ millert@ (naddy@) kern ~ exec_conf.c ~ exec_elf.c > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ kern_sysctl.c > delete the kern.emul/KERN_EMUL sysctl bits since there are no > emulations left; ok millert@ deraadt@, jmc@ (man pages) (naddy@) ~ Makefile > Copy the stackgap_init() and stackgap_alloc() functions from > compat/common/compat_util.c to dev/systrace.c, the one place they > are used, and remove the remaining kernel references to compat/*. > ok visa@ (naddy@) ~ uipc_domain.c > bump link_maxhdr up from 16 to 64 > link_maxhdr is best explained as the space reserved before an ip > packet payload for link headers, the most common of which is ethernet. > 16 was a good choice when the only traffic we really did was ip > over ethernet, but now there are commonly used transports that are > bigger, specifically 802.11 traffic and vlan/vlan encapsulations, > that justify bumping it up. > i chose 64 because it would also allow enough space for encapsulations > like etherip or gif. > this reduces the size of the smallest packet that can fit into an > mbuf before more storage needs to be suffixed, but because most > traffic is either full sized (ie, already bigger than a single mbuf) > or tiny packets (think tcp ACKS, keystrokes over ssh, or dns requests) > the impact is negligible. > ok stsp@ mpi@ sthen@ mikeb@ (dlg@) ~ uipc_domain.c > replace the XXX next to setting link_maxhdr with an explanation > the XXX has been there since 1.1, even back in netbsd, and im too > lazy to go back further to try and see why it is there. either way > it is meaningless. > suggested by mikeb@ and mpi@ (dlg@) ~ kern_proc.c > repair documentation for inferior(); from Michal Mazurek (deraadt@) ~ kern_exit.c > Localize some declarations to kern_exit.c: the last good reason to put > them in sys/proc.h has been removed with compat_linux > diff from Michal Mazurek (akfaew (at) jasminek.net) (guenther@) ~ vfs_bio.c > Do not fetch the same block multiple times if it is already present > in the buffer cache. > When the Dynamic Buffer Cache has been introduced bread_cluster() > became the replacement of cluster_read(). However this function > did not consider the B_CACHE flag of the first buffer of a cluster > like its predecessor did. > This improves a lot read operations on MSDOSFS while reducing the > number of DMA operations. > ok beck@ (mpi@) ~ kern_exec.c ~ kern_ktrace.c > No more compat emulations, so remove ktrace EMUL records and the baggage > for generating and parsing them. > ok mpi@ naddy@ millert@ deraadt@ (guenther@) net ~ if.c > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ if_ethersubr.c > enm_ac in ether_multi is set but never used. so we dont need it. (dlg@) ~ if_tun.c > Set IFF_MULTICAST flag on tun(4) interfaces so IPv6 addresses can be > assigned. > ok millert@ mpi@ (stsp@) ~ if.c ~ if.h > provide generic ioctls for managing an interfaces parent > in the future this will subsume the individual vlandev, carpdev, > pppoedev, foodev options for things like vlan, carp, pppoe, etc. > inspired by vnetid > ok mpi@ jmatthew@ (dlg@) ~ if_vlan.c > factor out the injection of a vlan shim into an ethernet frame > vlan_inject() will be reused by mpw(4) in the future. > ok mpi@ (dlg@) ~ if_vlan_var.h > prototype vlan_inject() > this should have been committed as part of src/sys/net/if_vlan.c r1.152 > tree breakage discovered by benoit lecocq > sorry (dlg@) ~ if_etherip.c ~ pf.c ~ pipex.c > - putting back KASSERT(), which I've backed out on Jan 31 > We don't expect inbound packets to come to PF with statekey attached. > - I've also found missing call to pf_pkt_addr_changed() at various > places, which needs to get fixed to prevent KASSERT() from firing. > OK mpi@, sthen@ (sashan@) net80211 ~ ieee80211_node.c > Restore assignment of ic_curmode that was accidentally removed when > moving the ERP code to post-assoc phase. Fixes iwi(4) fatal firmware > errors. > ok stsp@, sobrado@ (gerhard@) netinet ~ ipsec_output.c > When IPsec UDP encapsulation is used for IPv6, the stack should > construct an IPv6 packet instead of an IPv4. > Diff from Patrick Wildt <patrick at blueri ! se> with input from > bluhm@; ok mpi, bluhm (mikeb@) ~ if_ether.h > enm_ac in ether_multi is set but never used. so we dont need it. (dlg@) ~ ip_gre.c > - putting back KASSERT(), which I've backed out on Jan 31 > We don't expect inbound packets to come to PF with statekey attached. > - I've also found missing call to pf_pkt_addr_changed() at various > places, which needs to get fixed to prevent KASSERT() from firing. > OK mpi@, sthen@ (sashan@) netinet6 ~ in6.c ~ in6_var.h > Remove SIOCSIFALIFETIME_IN6 ioctl, as NetBSD did. > As described in NetBSD kern/35897 PR, the parameters > this ioctl needs overlay each other in a union. The ioctl > cannot have worked properly. > Discovered while discussing overflow checks with mmcc@ and mpi@ > The checks were part of the removed code. > ok deraadt@ (stefan@) ~ in6.c ~ in6_var.h > Delete all traces of SIOCSIF(ADDR|DSTADDR|NETMASK)_IN6 > Those ioctls never made sense, IPv6 was designed right from the start > with support for multiple addresses by interface. > ok mikeb@ mpi@ (jca@) ~ in6.c ~ in6_var.h ~ nd6.h > Kill IPv6 prefix and router renumbering ioctls. > Router renumbering was never supported, prefix ioctls were deprecated > ~15 years ago. Move some items in netinet6/nd6.h where they are still > used. > ok mikeb@ mpi@ (jca@) ntfs ~ ntfs_vfsops.c > ntfs populates ntfs_args, not msdosfs_args; ok espie@ (natano@) sys ~ ioctl.h > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ sysctl.h > delete the kern.emul/KERN_EMUL sysctl bits since there are no > emulations left; ok millert@ deraadt@, jmc@ (man pages) (naddy@) - ioctl_compat.h > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ sockio.h > provide generic ioctls for managing an interfaces parent > in the future this will subsume the individual vlandev, carpdev, > pppoedev, foodev options for things like vlan, carp, pppoe, etc. > inspired by vnetid > ok mpi@ jmatthew@ (dlg@) ~ proc.h > fix a typo; from Michal Mazurek (deraadt@) ~ select.h > The FD_SET/FD_CLR/FD_ISSET macros have always multi-evaluated the fd > argument. > Wrap them around a static inline function which avoids the problem. > ok kettenis mikeb (deraadt@) ~ proc.h > Increase PID_MAX to 99999: the compats that constrained it to SHRT_MAX-1 > are > long gone. > reminded by comment suggestion from Michal Mazurek (akfaew (at) > jasminek.net) > ok natano@ (guenther@) ~ proc.h > Localize some declarations to kern_exit.c: the last good reason to put > them in sys/proc.h has been removed with compat_linux > diff from Michal Mazurek (akfaew (at) jasminek.net) (guenther@) ~ ktrace.h > No more compat emulations, so remove ktrace EMUL records and the baggage > for generating and parsing them. > ok mpi@ naddy@ millert@ deraadt@ (guenther@) ufs/ext2fs ~ ext2fs_readwrite.c > (natano@) ufs/ffs ~ ffs_vnops.c > (natano@) uvm ~ uvm_map.c ~ uvm_pmap.h > Remove option USER_LDT and everything depending on it. > Remove machdep.userldt sysctl. > Remove i386_[gs]et_ldt syscall stub from libi386. > Remove i386_[gs]et_ldt regression test. > ok mlarkin@ millert@ guenther@ (naddy@) ~ uvm_map.c > Tweak uvm assertions to avoid locking in some cases. > When only one thread can access a map, there's no need > to lock it. Tweak the assertion instead of appeasing it > by acquiring a lock when it's not necessary. > ok kettenis@ (stefan@) ~ uvm_amap.c ~ uvm_amap.h > Remove unused amap_share_protect(). > ok mpi@ visa@ (stefan@) == usr.bin =========================================================== 12/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin diff ~ diffreg.c > Rectify line numbers for s/.// commands in ed-style diffs. > When diff encounters a line that consists of a single dot, it emits two > dots instead, stops the current command and emits a substitute command > to replace the double dot with a single one. Then it restarts the > (original) command if necessary and inserts further lines. This is done > because a single dot on a line does have special meaning in ed. (It > stops text insertion.) > Following issues are fixed by this commit. > - The line number for the substitute command should be the number of the > most recently inserted line. diff instead uses the number of the first > inserted line of the current hunk. The first character of that line is > removed when applying the diff, while the superfluous dot is not. > - The line number of the restarted command is not adjusted for the > number of lines already inserted, resulting in the reordering of lines.. > - When there is a bare dot in the replacement text of a change command, > too many lines are deleted, because a second change command is emitted. > An append command should be emitted instead, because the target lines > have already been removed by the first change command. > tweaks and ok stefan@ (natano@) file ~ magic.5 > fix typo (czarkoff@) ~ magic.5 > fix broken list (czarkoff@) ~ magdir/archive > Sync 'archive' magic from file 5.25. Various improvements including > epub detection which jirib at devio dot us reported as not working. > nicm says "The only thing I see that we do not support is the indirect > on the last line, I suggest just commenting it" (done). (sthen@) kdump ~ Makefile > Support for running Linux binaries under emulation is going away. > Remove "option COMPAT_LINUX" and everything directly tied to it from the > kernel and the corresponding man page documentation. > ok visa@ guenther@ (naddy@) ~ kdump.1 ~ kdump.c > drop the support for Linux emulation; ok guenther@ visa@ (naddy@) ~ ktrstruct.c > Make the fd_set* passed to FD_ISSET() non-const: the non-macro version is > stricter (per POSIX, dang it) (guenther@) ~ kdump.1 ~ kdump.c > No more compat emulations, so remove ktrace EMUL records and the baggage > for generating and parsing them. > ok mpi@ naddy@ millert@ deraadt@ (guenther@) ~ kdump.c > Improve display of unknown and KTR_START records > request and ok naddy@ (guenther@) ktrace ~ ktrace.1 ~ ktrace.h ~ ltrace.1 ~ subr.c > No more compat emulations, so remove ktrace EMUL records and the baggage > for generating and parsing them. > ok mpi@ naddy@ millert@ deraadt@ (guenther@) make ~ cmd_exec.c > safer pattern: if you're interested in one child, get THAT one, don't steal > children from other parts of the program. > In that case, there's no reason to try to catch other process. > 1/ they don't exist > 2/ if they did, stealing their status would be bad. > okay deraadt@ (espie@) ssh ~ dh.c > rearrange DH public value tests to be a little more clear > rearrange DH private value generation to explain rationale more > clearly and include an extra sanity check. > ok deraadt (djm@) ~ monitor_fdpass.c > Print ssize_t with %zd; ok deraadt@ mmcc@ (jca@) ~ moduli-gen/moduli.2048 ~ moduli-gen/moduli.3072 ~ moduli-gen/moduli.4096 ~ moduli-gen/moduli.6144 ~ moduli-gen/moduli.7680 ~ moduli-gen/moduli.8192 > Update moduli file. (dtucker@) ~ misc.c ~ misc.h ~ progressmeter.c > Improve precision of progressmeter for sftp and scp by storing sub-second > timestamps. Pointed out by mmcc@, ok deraadt@ markus@ (dtucker@) ~ scp.c > Improve accuracy of reported transfer speeds by waiting for the ack from > the other end. Pointed out by mmcc@, ok deraadt@ markus@ (dtucker@) ~ serverloop.c > fix ClientAliveInterval when a time-based RekeyLimit is set; > previously keepalive packets were not being sent. > bz#2252 report and analysis by Christian Wittenhorst and Garrett Lee > feedback and ok dtucker@ (djm@) tmux ~ cmd-break-pane.c ~ tmux.1 > Fix break-pane synopsis and some other tmux.1 bits. (nicm@) ~ input-keys.c ~ tmux.c ~ tmux.h ~ utf8.c > Use system wcwidth() instead of carrying around UTF-8 width tables. (nicm@) ~ mode-key.c ~ server-client.c ~ window-copy.c > When a mouse drag is finished, fire a MouseUp key press, instead of > doing the drag end in code. From Stephen Coakley. (nicm@) ~ cmd-swap-pane.c ~ tmux.c > Remove unused variables, from Michal Mazurek. (nicm@) ~ cmd-if-shell.c ~ cmd-resize-pane.c ~ cmd.c ~ key-bindings.c > Remove some more unused variables, and use RB_FOREACH_SAFE in > key_bindings_unref_table. (nicm@) ~ window.c > Redraw status on mode entry and exit. (nicm@) ~ input-keys.c > Limit x, y and b to 0x7ff for UTF-8 mouse input, suggested by schwarze@. > (nicm@) ~ input.c ~ key-string.c ~ tmux.h ~ tty-keys.c ~ utf8.c > Handle wcwidth() and mbtowc() failures in better style and drop > characters where we can't find the width (wcwidth() fails) on input, the > same as we drop invalid UTF-8. Suggested by schwarze@. (nicm@) ~ tty.c > RGB colours shouldn't be mixed up with aixterm colours, return before > that happens when working out if they are supported. (nicm@) ~ cmd-find.c > Accept clients as sessions in cmd_find_get_session. (nicm@) ~ cmd-set-environment.c ~ cmd-set-option.c ~ cmd-show-environment.c ~ cmd-show-options.c > show-* and set-* need to handle a missing target. (nicm@) ~ tmux.c > Although we always have en_US.UTF-8 on OpenBSD, some platforms do not, > so fall back to setlocale(LC_CTYPE, ""). tmux requires a UTF-8 locale, > so check with wcwidth() on a UTF-8 character after setlocale(). (nicm@) ~ cmd-load-buffer.c ~ cmd-new-session.c ~ cmd-save-buffer.c > Do not use c->cwd or s->cwd if it is NULL, found by Ben Boeckel. (nicm@) ~ tmux.c > If setlocale("en_US.UTF-8") succeeds, then don't do the check for UTF-8 > locale since if it isn't UTF-8 the system is broken anyway. If it fails, > try "" and check for UTF-8 with nl_langinfo(CODESET) rather than > wcwidth(). Based on a diff from schwarze@, nl_langinfo also suggested by > stsp@. (nicm@) units ~ units.lib > update currency exchange rates; (jmc@) == usr.sbin ========================================================== 13/13 == http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin ikectl ~ Makefile > add LIBCRYPTO to DPADD > OK deraadt@ mikeb@ (gsoares@) lpr ~ lpd/lpdchar.c > Fix ghastly whitespace. From Chris Bennett (tb@) ~ common_source/common.c ~ common_source/lp.h ~ lpd/lpd.c ~ lpq/lpq.c > Move ckqueue() to common_source/common.c > Patch from Chris Bennett, ok tb@ (jca@) ntpd ~ constraint.c > According to RFC7231, section 7.1.1.1, the HTTP date header supports > no other timezone than the fixed string "GMT". Avoid using strptime %Z, > which is nonstandard and can give surprising results on other operating > systems. ok deraadt@ giovanni@ bcook@ (naddy@) pkg_add ~ pkg_info.1 > correct return values for -e; from patrik lundin > ok sthen espie (jmc@) rtadvd ~ config.c > init_prefix() is now trivial, merge it with its caller. > Suggested by and ok bluhm@ (jca@) ~ config.c > Merge add/make_prefix() and kill last use of struct in6_prefixreq in > userland. > ok florian@ (jca@) ~ rtadvd.h > Kill unused #defines > No functional change (jca@) ~ config.c ~ if.c ~ rtadvd.c > Pointless 'return;' in void functions (jca@) ~ config.c ~ if.c ~ rtadvd.c ~ timer.c > fatal("malloc") -> fatal(NULL) (jca@) snmpd ~ ber.c > mirror memset changes to ber.c made in ldapd (these 3 daemons > have subtly modified copies of the file) > from rob pierce (deraadt@) unbound ~ Makefile.in ~ aclocal.m4 ~ acx_nlnetlabs.m4 ~ ax_pthread.m4 ~ config.h.in ~ configure ~ configure.ac ~ install-sh ~ ltmain.sh ~ daemon/remote.c ~ daemon/unbound.c ~ daemon/worker.c ~ dnstap/dnstap.c ~ doc/Changelog ~ doc/README ~ doc/example.conf.in ~ doc/libunbound.3.in ~ doc/unbound-anchor.8.in ~ doc/unbound-checkconf.8.in ~ doc/unbound-control.8.in ~ doc/unbound-host.1.in ~ doc/unbound.8.in ~ doc/unbound.conf.5.in ~ libunbound/libunbound.c ~ libunbound/libworker.c ~ libunbound/ubsyms.def ~ libunbound/unbound.h ~ services/listen_dnsport.c ~ services/listen_dnsport.h ~ services/localzone.c ~ services/outside_network.c ~ services/outside_network.h ~ sldns/rrdef.c ~ sldns/rrdef.h ~ sldns/str2wire.c ~ smallapp/unbound-control-setup.sh.in ~ util/config_file.c ~ util/config_file.h ~ util/configlexer.lex ~ util/configparser.y ~ util/iana_ports.inc ~ util/mini_event.c ~ util/netevent.c ~ util/random.c ~ util/tube.c ~ util/winsock_event.c ~ util/data/packed_rrset.c ~ validator/val_anchor.c ~ validator/val_neg.c ~ validator/val_secalgo.c ~ validator/val_utils.c + util/as112.c + util/as112.h > update to unbound 1.5.8, ok florian@ jung@ (sthen@) vmd ~ loadfile_elf.c > Set root device to sd0a, instead of wd0a. Virtio devices show up > as sd. Original diff from Patrick Wildt. > In addition, using the MAKEBOOTDEV macro no longer makes bsd > ask for the root disk on VM boot. > ok mlarkin@ (stefan@) ypldap ~ ber.c > mirror memset changes to ber.c made in ldapd (these 3 daemons > have subtly modified copies of the file) > from rob pierce (deraadt@) =============================================================================== _______________________________________________ owc mailing list [email protected] http://www.squish.net/mailman/listinfo/owc
