svn commit: r317246 - in head: sbin/geom/class/eli sys/geom/eli

2017-04-21 Thread Alexander Motin
Author: mav Date: Fri Apr 21 07:16:07 2017 New Revision: 317246 URL: https://svnweb.freebsd.org/changeset/base/317246 Log: Always allow setting number of iterations for the first time. Before this change it was impossible to set number of PKCS#5v2 iterations, required to set passphrase,

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Michael Tuexen wrote: On 21. Apr 2017, at 05:16, Bruce Evans wrote: On Thu, 20 Apr 2017, Cy Schubert wrote: Please trim quotes. In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen write s: [>> ... 5 lines trimmed] Log:

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Hans Petter Selasky
On 04/21/17 10:10, Bruce Evans wrote: On Fri, 21 Apr 2017, Michael Tuexen wrote: On 21. Apr 2017, at 05:16, Bruce Evans wrote: On Thu, 20 Apr 2017, Cy Schubert wrote: Please trim quotes. In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen write

svn commit: r317245 - head/sys/dev/syscons

2017-04-21 Thread Bruce Evans
Author: bde Date: Fri Apr 21 06:55:17 2017 New Revision: 317245 URL: https://svnweb.freebsd.org/changeset/base/317245 Log: Oops, the previous commit swapped the main ega method with the main vga planar method (for testing that was supposed to be local that the former still works). The ega

svn commit: r317247 - head/sys/geom/eli

2017-04-21 Thread Alexander Motin
Author: mav Date: Fri Apr 21 07:43:44 2017 New Revision: 317247 URL: https://svnweb.freebsd.org/changeset/base/317247 Log: Dump md_iterations as signed, which it really is. PR: 208305 PR: 196834 MFC after:2 weeks Modified: head/sys/geom/eli/g_eli.h Modified:

svn commit: r317244 - head/sys/netinet

2017-04-21 Thread Michael Tuexen
Author: tuexen Date: Fri Apr 21 06:05:34 2017 New Revision: 317244 URL: https://svnweb.freebsd.org/changeset/base/317244 Log: Represent "a syncache overflow hasn't happend yet" by using -(SYNCOOKIE_LIFETIME + 1) instead of INT64_MIN, since it is good enough and works when time_t is int32 or

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Michael Tuexen
> On 21. Apr 2017, at 03:43, Cy Schubert wrote: > > In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen > writes: > [...] > Hi Michael, > > This line produced the following on i386: > > /opt/src/svn-current/sys/netinet/tcp_syncache.c:263:50:

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Michael Tuexen
> On 21. Apr 2017, at 05:16, Bruce Evans wrote: > > On Thu, 20 Apr 2017, Cy Schubert wrote: > > Please trim quotes. > >> In message <201704201919.v3kjjyko052...@repo.freebsd.org>, Michael Tuexen >> write >> s: > > [>> ... 5 lines trimmed] > >>> Log: >>> Syncoockies

Re: svn commit: r317240 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Yes, I agree that hardcoded values are bad. Thanks for pointing out the constants in sys/conf.h, I can use those instead. sys/conf.h does not have an entry for "nogroup", which is what has been used by nfsuserd since it was written. Is adding an entry to sys/conf.h for GID_NOGROUP ok to do? rick

svn commit: r317251 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 11:48:12 2017 New Revision: 317251 URL: https://svnweb.freebsd.org/changeset/base/317251 Log: Revert r317240. I didn't realize there were defined constants for uid/gid values in sys/conf.h. I will do another commit using those. Modified:

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Hans Petter Selasky wrote: On 04/21/17 10:10, Bruce Evans wrote: ... i386 should use time_t = uint32_t to fully support years 2038-2106 instead of time_t = int32_t to partially support years 1902-1970 (even time 0 (the Epoch) and other early hours in 1970 are not fully

Re: svn commit: r317240 - head/sys/fs/nfs

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Rick Macklem wrote: Yes, I agree that hardcoded values are bad. Thanks for pointing out the constants in sys/conf.h, I can use those instead. sys/conf.h does not have an entry for "nogroup", which is what has been used by nfsuserd since it was written. Is adding an entry

svn commit: r317252 - head/gnu/usr.bin

2017-04-21 Thread Ed Maste
Author: emaste Date: Fri Apr 21 13:39:14 2017 New Revision: 317252 URL: https://svnweb.freebsd.org/changeset/base/317252 Log: Simplify gnu/usr.bin Makefile conditions After r307655 MK_GDB is forced to no if MK_BINUTILS is no, and similarly MK_GROFF is forced to no if MK_CXX is no, so we

svn commit: r317253 - head/sys/net

2017-04-21 Thread Alexander Motin
Author: mav Date: Fri Apr 21 13:45:01 2017 New Revision: 317253 URL: https://svnweb.freebsd.org/changeset/base/317253 Log: Add interface reference counting to if_lagg. Using plain ifunit() looks like request for troubles. MFC after:2 weeks Modified: head/sys/net/if_lagg.c

svn commit: r317254 - in head: share/man/man5 share/mk tools/build/options usr.bin/grep

2017-04-21 Thread Ed Maste
Author: emaste Date: Fri Apr 21 14:36:09 2017 New Revision: 317254 URL: https://svnweb.freebsd.org/changeset/base/317254 Log: bsdgrep: add BSD_GREP_FASTMATCH knob for built-in fastmatch Bugs have been found in the fastmatch implementation as used in bsdgrep. Some have been fixed

svn commit: r317256 - head/sys/dev/syscons

2017-04-21 Thread Bruce Evans
Author: bde Date: Fri Apr 21 15:12:43 2017 New Revision: 317256 URL: https://svnweb.freebsd.org/changeset/base/317256 Log: Merge the main ega drawing method into the main vga planar method and remove the former. All other EGA/VGA methods were already shared, with VGA-only features

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Justin Hibbits
On Fri, Apr 21, 2017 at 9:39 AM, Ian Lepore wrote: > On Fri, 2017-04-21 at 21:53 +1000, Bruce Evans wrote: >> On Fri, 21 Apr 2017, Hans Petter Selasky wrote: >> >> > On 04/21/17 10:10, Bruce Evans wrote: >> >> ... >> >> [...] >> >> With another hat on, I lecture about the error

Re: svn commit: r317231 - head/usr.bin/systat

2017-04-21 Thread Bruce Evans
On Fri, 21 Apr 2017, Bruce Evans wrote: On Thu, 20 Apr 2017, Jung-uk Kim wrote: Log: Fix systat(1) regression. It was broken by r317061. It is more broken than before. Now it fails when the kernel is older than the utility instead of vice versa. When it fails, the failures are more

svn commit: r317255 - in head: share/man/man5 share/mk tools/build/options

2017-04-21 Thread Ed Maste
Author: emaste Date: Fri Apr 21 14:50:29 2017 New Revision: 317255 URL: https://svnweb.freebsd.org/changeset/base/317255 Log: bsdgrep: disable GNU_GREP_COMPAT by default The GNU extension bits in the base system are old, no longer faithful to upstream, and surprising in some regards.

Re: svn commit: r317208 - head/sys/netinet

2017-04-21 Thread Ian Lepore
On Fri, 2017-04-21 at 21:53 +1000, Bruce Evans wrote: > On Fri, 21 Apr 2017, Hans Petter Selasky wrote: > > > On 04/21/17 10:10, Bruce Evans wrote: > >> ... > >> [...] > > With another hat on, I lecture about the error of using unsigned types > except in emergency.  int32_t time_t rollover in

svn commit: r317264 - head/sys/dev/syscons

2017-04-21 Thread Bruce Evans
Author: bde Date: Fri Apr 21 17:57:23 2017 New Revision: 317264 URL: https://svnweb.freebsd.org/changeset/base/317264 Log: Optimize setting of the foreground color in the main planar method much like for the background color. This is a about 5% faster for output that actually reaches the

svn commit: r317270 - head/usr.sbin/nfsuserd

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 20:53:51 2017 New Revision: 317270 URL: https://svnweb.freebsd.org/changeset/base/317270 Log: Get rid of bogus statement in the nfsuserd.8 man page. The nfsuserd.8 man page stated that a usertimeout of 0 would disable the cache timeout. This was simply

svn commit: r317272 - head/sys/fs/nfsclient

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 21:43:00 2017 New Revision: 317272 URL: https://svnweb.freebsd.org/changeset/base/317272 Log: Add checks for failed operations to the NFSv4 client function nfscl_mtofh(). The nfscl_mtofh() function didn't check for failed operations and, as such, would

svn commit: r317269 - in head/sys: fs/nfs sys

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 20:08:10 2017 New Revision: 317269 URL: https://svnweb.freebsd.org/changeset/base/317269 Log: Set default uid/gid to nobody/nogroup for NFSv4 mapping. The default uid/gid for NFSv4 are set by the nfsuserd(8) daemon. However, they were 0 until the

svn commit: r317265 - in head/lib: libgssapi libiconv_modules/ISO2022 libutil

2017-04-21 Thread Pedro F. Giffuni
Author: pfg Date: Fri Apr 21 19:27:33 2017 New Revision: 317265 URL: https://svnweb.freebsd.org/changeset/base/317265 Log: lib: initial use of reallocarray(3). Make some use of reallocarray, attempting to limit it to cases where the parameters are unsigned and there is some theoretical

svn commit: r317267 - in head: cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs

2017-04-21 Thread Josh Paetzel
Author: jpaetzel Date: Fri Apr 21 19:53:52 2017 New Revision: 317267 URL: https://svnweb.freebsd.org/changeset/base/317267 Log: MFV 316891 7386 zfs get does not work properly with bookmarks illumos/illumos-gate@edb901aab9c738b5eb15aa55933e82b0f2f9d9a2

svn commit: r317277 - head/sys/crypto/chacha20

2017-04-21 Thread Dag-Erling Smørgrav
Author: des Date: Sat Apr 22 01:06:23 2017 New Revision: 317277 URL: https://svnweb.freebsd.org/changeset/base/317277 Log: Fix counter increment in Salsa and ChaCha. In my eagerness to eliminate a branch which is taken once per 2^38 bytes of keystream, I forgot that the state words are

Re: svn commit: r317277 - head/sys/crypto/chacha20

2017-04-21 Thread Colin Percival
On 04/21/17 19:33, Rui Paulo wrote: > On Apr 21, 2017, at 18:06, Dag-Erling Smørgrav wrote: >> Author: des >> Date: Sat Apr 22 01:06:23 2017 >> New Revision: 317277 >> URL: https://svnweb.freebsd.org/changeset/base/317277 >> >> Log: >> Fix counter increment in Salsa and ChaCha.

svn commit: r317273 - head/sys/fs/fuse

2017-04-21 Thread Conrad Meyer
Author: cem Date: Fri Apr 21 22:00:22 2017 New Revision: 317273 URL: https://svnweb.freebsd.org/changeset/base/317273 Log: fuse: Implement FOPEN_KEEP_CACHE flag Implement FUSE open flag FOPEN_KEEP_CACHE. Without this flag, cached file contents should be invalidated on open. Apparently,

svn commit: r317274 - in head/contrib/bmake: . unit-tests

2017-04-21 Thread Simon J. Gerraty
Author: sjg Date: Fri Apr 21 22:19:13 2017 New Revision: 317274 URL: https://svnweb.freebsd.org/changeset/base/317274 Log: Str_Match: fix closure tests for [^] and add unit-test. Modified: head/contrib/bmake/str.c head/contrib/bmake/unit-tests/modmatch.exp

svn commit: r317275 - head/sys/fs/nfs

2017-04-21 Thread Rick Macklem
Author: rmacklem Date: Fri Apr 21 22:38:26 2017 New Revision: 317275 URL: https://svnweb.freebsd.org/changeset/base/317275 Log: Don't create a backchannel for a DS connection. An NFSv4.1 client connection to a Data Server (DS) should not have a backchannel. This patch fixes the

svn commit: r317278 - head/sys/net80211

2017-04-21 Thread Adrian Chadd
Author: adrian Date: Sat Apr 22 02:12:07 2017 New Revision: 317278 URL: https://svnweb.freebsd.org/changeset/base/317278 Log: [net80211] add methods to fetch the global and per-VAP WME parameters. For now there isn't any per-VAP WME state. The eventual aim is to migrate the driver

Re: svn commit: r317277 - head/sys/crypto/chacha20

2017-04-21 Thread Rui Paulo
On Apr 21, 2017, at 18:06, Dag-Erling Smørgrav wrote: > > Author: des > Date: Sat Apr 22 01:06:23 2017 > New Revision: 317277 > URL: https://svnweb.freebsd.org/changeset/base/317277 > > Log: > Fix counter increment in Salsa and ChaCha. > > In my eagerness to eliminate a

Re: svn commit: r317269 - in head/sys: fs/nfs sys

2017-04-21 Thread Slawa Olhovchenkov
On Fri, Apr 21, 2017 at 08:08:10PM +, Rick Macklem wrote: > Author: rmacklem > Date: Fri Apr 21 20:08:10 2017 > New Revision: 317269 > URL: https://svnweb.freebsd.org/changeset/base/317269 > > Log: > Set default uid/gid to nobody/nogroup for NFSv4 mapping. > > The default uid/gid for