svn commit: r322042 - stable/11/lib/libc/x86/sys

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:12:19 2017 New Revision: 322042 URL: https://svnweb.freebsd.org/changeset/base/322042 Log: MFC r321652: Simplify flow control. Modified: stable/11/lib/libc/x86/sys/__vdso_gettc.c Directory Properties: stable/11/ (props changed) Modified:

Re: svn commit: r321985 - head/sys/ofed/drivers/infiniband/core

2017-08-04 Thread Colin Percival
On 08/03/17 23:28, Hans Petter Selasky wrote: > On 08/03/17 16:37, Conrad Meyer wrote: >> Is it not important that the subtraction and result are evaluated >> without truncation? > > ticks is a circular counter. Assuming time = 0 and jiffies = -1U, then "delay" > becomes a very large negative

Re: svn commit: r321985 - head/sys/ofed/drivers/infiniband/core

2017-08-04 Thread Hans Petter Selasky
On 08/04/17 08:40, Colin Percival wrote: Casting to "int" or truncating is the right thing to do in this case. Signed integer overflow is undefined. Using 'int' is liable to cause problems after 2^32 ticks. Hi, If you check the code how this function is used, you'll see that the argument

Re: svn commit: r321985 - head/sys/ofed/drivers/infiniband/core

2017-08-04 Thread Hans Petter Selasky
On 08/03/17 16:37, Conrad Meyer wrote: Hey Hans, Is it not important that the subtraction and result are evaluated without truncation? Hi, ticks is a circular counter. Assuming time = 0 and jiffies = -1U, then "delay" becomes a very large negative value, because long is used, and the delay

Re: svn commit: r322041 - head/sys/kern

2017-08-04 Thread Oliver Pinter
On Friday, August 4, 2017, Alan Cox wrote: > Author: alc > Date: Fri Aug 4 04:23:23 2017 > New Revision: 322041 > URL: https://svnweb.freebsd.org/changeset/base/322041 > > Log: > In case readers are misled by expressions that combine multiplication and > division, add

svn commit: r322043 - stable/11/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:16:05 2017 New Revision: 322043 URL: https://svnweb.freebsd.org/changeset/base/322043 Log: MFC r321347: Account for lock recursion when transfering snaplock to the vnode lock in ffs_snapremove(). Modified: stable/11/sys/ufs/ffs/ffs_snapshot.c Directory

svn commit: r322051 - head/sys/arm64/arm64

2017-08-04 Thread Andrew Turner
Author: andrew Date: Fri Aug 4 10:33:22 2017 New Revision: 322051 URL: https://svnweb.freebsd.org/changeset/base/322051 Log: Read the numa-node-id property from each CPU node. This will initially be used to support the dual package ThunderX where we need to send MSI/MSI-X interrupts to the

svn commit: r322045 - stable/11/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:20:26 2017 New Revision: 322045 URL: https://svnweb.freebsd.org/changeset/base/322045 Log: MFC r321349: Improve publication of the newly allocated snapdata. Modified: stable/11/sys/ufs/ffs/ffs_snapshot.c Directory Properties: stable/11/ (props changed)

svn commit: r322047 - stable/10/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:26:19 2017 New Revision: 322047 URL: https://svnweb.freebsd.org/changeset/base/322047 Log: MFC r321348: Unlock correct lock in ffs_snapblkfree(). Modified: stable/10/sys/ufs/ffs/ffs_snapshot.c Directory Properties: stable/10/ (props changed) Modified:

svn commit: r322050 - head/sys/sys

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 09:45:40 2017 New Revision: 322050 URL: https://svnweb.freebsd.org/changeset/base/322050 Log: Relax visibility for some termios symbols. They are defined by XSI or newer SUS. This is a follow-up to r318780. Reported by: jbeich Obtained from:

svn commit: r322044 - stable/11/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:18:17 2017 New Revision: 322044 URL: https://svnweb.freebsd.org/changeset/base/322044 Log: MFC r321348: Unlock correct lock in ffs_snapblkfree(). Modified: stable/11/sys/ufs/ffs/ffs_snapshot.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r322046 - stable/10/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:25:03 2017 New Revision: 322046 URL: https://svnweb.freebsd.org/changeset/base/322046 Log: MFC r321347: Account for lock recursion when transfering snaplock to the vnode lock in ffs_snapremove(). Modified: stable/10/sys/ufs/ffs/ffs_snapshot.c Directory

svn commit: r322048 - stable/10/sys/ufs/ffs

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 08:27:34 2017 New Revision: 322048 URL: https://svnweb.freebsd.org/changeset/base/322048 Log: MFC r321349: Improve publication of the newly allocated snapdata. Modified: stable/10/sys/ufs/ffs/ffs_snapshot.c Directory Properties: stable/10/ (props changed)

svn commit: r322049 - head/share/man/man4

2017-08-04 Thread Brad Davis
Author: brd (doc,ports committer) Date: Fri Aug 4 08:56:31 2017 New Revision: 322049 URL: https://svnweb.freebsd.org/changeset/base/322049 Log: Document usb verbosity levels Submitted by: Tom Jones Approved by: hselasky MFC after:2 weeks Differential Revision:

svn commit: r322059 - head/usr.sbin/pmcstat

2017-08-04 Thread Konstantin Belousov
Author: kib Date: Fri Aug 4 18:02:54 2017 New Revision: 322059 URL: https://svnweb.freebsd.org/changeset/base/322059 Log: Fix off by one in calculation of the number of buckets for the pc addresses. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after:1 week

svn commit: r322061 - stable/10/sys/net80211

2017-08-04 Thread Pedro F. Giffuni
Author: pfg Date: Fri Aug 4 20:24:23 2017 New Revision: 322061 URL: https://svnweb.freebsd.org/changeset/base/322061 Log: MFC r321838: sys/net8021: Add missing braces in setcurchan(). Also fix some indentation. Obtained from:DragonFlyBSD (git c69e37d6) Modified:

svn commit: r322060 - stable/11/sys/net80211

2017-08-04 Thread Pedro F. Giffuni
Author: pfg Date: Fri Aug 4 20:22:43 2017 New Revision: 322060 URL: https://svnweb.freebsd.org/changeset/base/322060 Log: MFC r321838: sys/net8021: Add missing braces in setcurchan(). Also fix some indentation. Obtained from:DragonFlyBSD (git c69e37d6) Modified:

svn commit: r322063 - stable/10/sys/amd64/amd64

2017-08-04 Thread Marius Strobl
Author: marius Date: Fri Aug 4 21:38:34 2017 New Revision: 322063 URL: https://svnweb.freebsd.org/changeset/base/322063 Log: MFC: r290156, r318354 pmap_change_attr: Only fixup DMAP for DMAPed ranges Modified: stable/10/sys/amd64/amd64/pmap.c Directory Properties: stable/10/ (props

svn commit: r322062 - head/sbin/ifconfig

2017-08-04 Thread Matt Joras
Author: mjoras Date: Fri Aug 4 21:06:47 2017 New Revision: 322062 URL: https://svnweb.freebsd.org/changeset/base/322062 Log: Selectively print "hwaddr" from ifconfig(8). ifconfig(8) printing the hwaddr is only really useful if it differs from the link layer address. Reported by:

Re: svn commit: r321369 - in head: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/asan contrib/compiler-rt/lib/builtins contrib/compiler-rt/lib/builti

2017-08-04 Thread Ngie Cooper (yaneurabeya)
> On Jul 22, 2017, at 04:08, Dimitry Andric wrote: > > Author: dim > Date: Sat Jul 22 11:08:25 2017 > New Revision: 321369 > URL: https://svnweb.freebsd.org/changeset/base/321369 > > Log: > Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to > 5.0.0

Re: svn commit: r322029 - in head: usr.bin usr.sbin

2017-08-04 Thread John Baldwin
On Thursday, August 03, 2017 09:30:12 PM Jeremie Le Hen wrote: > Author: jlh > Date: Thu Aug 3 21:30:12 2017 > New Revision: 322029 > URL: https://svnweb.freebsd.org/changeset/base/322029 > > Log: > rwho/ruptime/rwhod shouldn't be gated by RCMDS. > > PR: 220953 > Reported by:

Re: svn commit: r321369 - in head: . contrib/compiler-rt/include/sanitizer contrib/compiler-rt/include/xray contrib/compiler-rt/lib/asan contrib/compiler-rt/lib/builtins contrib/compiler-rt/lib/builti

2017-08-04 Thread Dimitry Andric
On 4 Aug 2017, at 19:46, Ngie Cooper (yaneurabeya) wrote: > >> On Jul 22, 2017, at 04:08, Dimitry Andric wrote: >> >> Author: dim >> Date: Sat Jul 22 11:08:25 2017 >> New Revision: 321369 >> URL: https://svnweb.freebsd.org/changeset/base/321369 >> >>

svn commit: r322073 - head/sys/contrib/ipfilter/netinet

2017-08-04 Thread Cy Schubert
Author: cy Date: Sat Aug 5 00:28:42 2017 New Revision: 322073 URL: https://svnweb.freebsd.org/changeset/base/322073 Log: Fix matchcing of NATed ICMP queries (resolving NATed MTU discovery). MFC after:1 month Modified: head/sys/contrib/ipfilter/netinet/ip_nat.c Modified:

Re: svn commit: r321920 - head/sys/sys

2017-08-04 Thread Bruce Evans
On Thu, 3 Aug 2017, Konstantin Belousov wrote: On Thu, Aug 03, 2017 at 07:34:56PM +1000, Bruce Evans wrote: I see another problem. Masking with 0xf and casting to unsigned are gratuitously different spellings for extracting the low 32 bits. I prefer the cast. Below is one more

Re: svn commit: r322073 - head/sys/contrib/ipfilter/netinet

2017-08-04 Thread Cy Schubert
In message <201708050028.v750sgsj015...@repo.freebsd.org>, Cy Schubert writes: > Author: cy > Date: Sat Aug 5 00:28:42 2017 > New Revision: 322073 > URL: https://svnweb.freebsd.org/changeset/base/322073 > > Log: > Fix matchcing of NATed ICMP queries (resolving NATed MTU discovery). > >

Re: svn commit: r321985 - head/sys/ofed/drivers/infiniband/core

2017-08-04 Thread Bruce Evans
On Fri, 4 Aug 2017, Colin Percival wrote: On 08/03/17 23:28, Hans Petter Selasky wrote: On 08/03/17 16:37, Conrad Meyer wrote: Is it not important that the subtraction and result are evaluated without truncation? ticks is a circular counter. Assuming time = 0 and jiffies = -1U, then "delay"

Re: svn commit: r322041 - head/sys/kern

2017-08-04 Thread Bruce Evans
On Fri, 4 Aug 2017, Alan Cox wrote: Log: In case readers are misled by expressions that combine multiplication and division, add parentheses to make the precedence explicit. Submitted by: Doug Moore Requested by: imp Reviewed by: imp MFC after: 1 week X-MFC

svn commit: r322071 - stable/11/contrib/libarchive/libarchive

2017-08-04 Thread Martin Matuska
Author: mm Date: Fri Aug 4 23:34:25 2017 New Revision: 322071 URL: https://svnweb.freebsd.org/changeset/base/322071 Log: MFH r321674: Sync libarchive with vendor. Relevant vendor changes: PR #926: ensure ar strtab is null terminated PR: 220462 Modified:

svn commit: r322072 - stable/10/contrib/libarchive/libarchive

2017-08-04 Thread Martin Matuska
Author: mm Date: Fri Aug 4 23:34:39 2017 New Revision: 322072 URL: https://svnweb.freebsd.org/changeset/base/322072 Log: MFH r321674: Sync libarchive with vendor. Relevant vendor changes: PR #926: ensure ar strtab is null terminated PR: 220462 Modified:

Re: svn commit: r322041 - head/sys/kern

2017-08-04 Thread Warner Losh
On Fri, Aug 4, 2017 at 9:22 PM, Bruce Evans wrote: > On Fri, 4 Aug 2017, Alan Cox wrote: > > Log: >> In case readers are misled by expressions that combine multiplication and >> division, add parentheses to make the precedence explicit. >> >> Submitted by: Doug Moore

svn commit: r322074 - head/sys/boot/efi/libefi

2017-08-04 Thread Toomas Soome
Author: tsoome Date: Sat Aug 5 05:20:03 2017 New Revision: 322074 URL: https://svnweb.freebsd.org/changeset/base/322074 Log: libefi/time.c cstyle cleanup libefi/time.c is mix of different styles, this update does cleanup. Also fix 0 versus NULL, and zero the tv structure for case we get

svn commit: r322052 - in head/crypto/openssh: . contrib/cygwin contrib/redhat contrib/suse openbsd-compat regress regress/unittests regress/unittests/conversion regress/unittests/match regress/unit...

2017-08-04 Thread Dag-Erling Smørgrav
Author: des Date: Fri Aug 4 12:57:24 2017 New Revision: 322052 URL: https://svnweb.freebsd.org/changeset/base/322052 Log: Upgrade to OpenSSH 7.5p1. Added: head/crypto/openssh/regress/unittests/conversion/ - copied from r321987, vendor-crypto/openssh/dist/regress/unittests/conversion/

svn commit: r322053 - head/sys/arm64/arm64

2017-08-04 Thread Andrew Turner
Author: andrew Date: Fri Aug 4 13:08:45 2017 New Revision: 322053 URL: https://svnweb.freebsd.org/changeset/base/322053 Log: Start to teach the GICv3 driver about NUMA. On ThunderX we may have multiple ITS devices, however we only want a single ITS device to be configured on each CPU. To

svn commit: r322055 - in head/sys/dev/cxgbe: . common

2017-08-04 Thread Navdeep Parhar
Author: np Date: Fri Aug 4 15:57:10 2017 New Revision: 322055 URL: https://svnweb.freebsd.org/changeset/base/322055 Log: cxgbe(4): Allow the TOE timer tunables to be set with microsecond precision. These timers are already displayed in microseconds in the sysctl MIB. Add variables to

svn commit: r322056 - in head/sys/boot/efi: include libefi loader

2017-08-04 Thread Warner Losh
Author: imp Date: Fri Aug 4 16:33:36 2017 New Revision: 322056 URL: https://svnweb.freebsd.org/changeset/base/322056 Log: Move EFI fmtdev functionality to libefi This patch moves code necessary for the fmtdev functionality from loader to libefi, allowing other applications to make use

Re: svn commit: r321985 - head/sys/ofed/drivers/infiniband/core

2017-08-04 Thread Conrad Meyer
On Thu, Aug 3, 2017 at 11:40 PM, Colin Percival wrote: > On 08/03/17 23:28, Hans Petter Selasky wrote: >> On 08/03/17 16:37, Conrad Meyer wrote: >>> Is it not important that the subtraction and result are evaluated >>> without truncation? >> >> ticks is a circular counter.

Re: svn commit: r322029 - in head: usr.bin usr.sbin

2017-08-04 Thread Jeremie Le Hen
On Fri, Aug 4, 2017 at 12:42 AM, Ngie Cooper (yaneurabeya) wrote: > >> On Aug 3, 2017, at 14:30, Jeremie Le Hen wrote: >> >> Author: jlh >> Date: Thu Aug 3 21:30:12 2017 >> New Revision: 322029 >> URL: https://svnweb.freebsd.org/changeset/base/322029 >>

Re: svn commit: r322041 - head/sys/kern

2017-08-04 Thread Alan Cox
On 08/04/2017 02:57, Oliver Pinter wrote: > > > On Friday, August 4, 2017, Alan Cox > wrote: > > Author: alc > Date: Fri Aug 4 04:23:23 2017 > New Revision: 322041 > URL: https://svnweb.freebsd.org/changeset/base/322041 >

svn commit: r322054 - head/lib/libutil

2017-08-04 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Aug 4 14:24:24 2017 New Revision: 322054 URL: https://svnweb.freebsd.org/changeset/base/322054 Log: Introduce the flopenat(3) function. Reviewed by: des, emaste Differential Revision:https://reviews.freebsd.org/D11690 Modified: