svn commit: r300360 - in head/sys: amd64/linux amd64/linux32 i386/linux

2016-05-21 Thread Dmitry Chagin
Author: dchagin Date: Sat May 21 08:03:13 2016 New Revision: 300360 URL: https://svnweb.freebsd.org/changeset/base/300360 Log: Regen after r300359 (struct l_sched_param removal). MFC after:1 week Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h

svn commit: r300359 - in head/sys: amd64/linux amd64/linux32 i386/linux

2016-05-21 Thread Dmitry Chagin
Author: dchagin Date: Sat May 21 08:01:14 2016 New Revision: 300359 URL: https://svnweb.freebsd.org/changeset/base/300359 Log: Correct an argument param of linux_sched_* system calls as a struct l_sched_param does not defined due to it's nature. MFC after:1 week Modified:

svn commit: r300366 - head/sys/ufs/ffs

2016-05-21 Thread Konstantin Belousov
Author: kib Date: Sat May 21 10:13:25 2016 New Revision: 300366 URL: https://svnweb.freebsd.org/changeset/base/300366 Log: Stop dropping and reacquiring Giant around geom calls in UFS. Sponsored by: The FreeBSD Foundation Modified: head/sys/ufs/ffs/ffs_vfsops.c Modified:

Re: svn commit: r300113 - in head/sys: conf kern net sys

2016-05-21 Thread Hans Petter Selasky
On 05/18/16 06:35, Scott Long wrote: Author: scottl Date: Wed May 18 04:35:58 2016 New Revision: 300113 URL: https://svnweb.freebsd.org/changeset/base/300113 Log: Import the 'iflib' API library for network drivers. From the author: "iflib is a library to eliminate the need for frequently

svn commit: r300368 - head/sys/dev/iscsi

2016-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Sat May 21 10:59:36 2016 New Revision: 300368 URL: https://svnweb.freebsd.org/changeset/base/300368 Log: Pass maxtags value to the ICL module. iSER needs it. MFC after:1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iscsi/icl.h

svn commit: r300372 - in head/sys: kern sys

2016-05-21 Thread Andriy Gapon
Author: avg Date: Sat May 21 14:51:49 2016 New Revision: 300372 URL: https://svnweb.freebsd.org/changeset/base/300372 Log: fix loss of taskqueue wakeups (introduced in r300113) Submitted by: kmacy Tested by:dchagin Modified: head/sys/kern/subr_taskqueue.c head/sys/sys/_task.h

svn commit: r300365 - head/sys/fs/devfs

2016-05-21 Thread Konstantin Belousov
Author: kib Date: Sat May 21 09:55:32 2016 New Revision: 300365 URL: https://svnweb.freebsd.org/changeset/base/300365 Log: Remove zero assignments in the cdev allocator. cdp memory is requested with M_ZERO. Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified:

svn commit: r300369 - in head/sys/dev: cxgbe/cxgbei iscsi

2016-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Sat May 21 11:10:48 2016 New Revision: 300369 URL: https://svnweb.freebsd.org/changeset/base/300369 Log: Provide a way for ICL modules to declare they support PIM_UNMAPPED. MFC after:1 month Sponsored by: The FreeBSD Foundation Modified:

svn commit: r300370 - head/sys/dev/iscsi

2016-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Sat May 21 11:26:03 2016 New Revision: 300370 URL: https://svnweb.freebsd.org/changeset/base/300370 Log: Properly reset session state when using proxy and fail_on_disconnection=1. Without it the reconnection would fail due to mismatched sequence numbers. MFC after:

svn commit: r300371 - head/sys/fs/msdosfs

2016-05-21 Thread Konstantin Belousov
Author: kib Date: Sat May 21 11:40:41 2016 New Revision: 300371 URL: https://svnweb.freebsd.org/changeset/base/300371 Log: Same as for UFS, remove drop/reacquire of Giant, and use si_mountpt as the mount semaphore. Sponsored by: The FreeBSD Foundation MFC after:2 weeks Modified:

Re: svn commit: r300375 - head/sys/arm/include

2016-05-21 Thread Joerg Sonnenberger
On Sat, May 21, 2016 at 04:52:38PM +, Ian Lepore wrote: > Author: ian > Date: Sat May 21 16:52:38 2016 > New Revision: 300375 > URL: https://svnweb.freebsd.org/changeset/base/300375 > > Log: > Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern > compilers can emit

svn commit: r300376 - head/sys/compat/ndis

2016-05-21 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 21 17:38:43 2016 New Revision: 300376 URL: https://svnweb.freebsd.org/changeset/base/300376 Log: ndis(4): Better mimic the behavior of rand() on Windows. In ndis(4) we expose a rand() function that was constantly reseeding with a time depending function every

svn commit: r300378 - head/lib/libc/regex

2016-05-21 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 21 19:54:10 2016 New Revision: 300378 URL: https://svnweb.freebsd.org/changeset/base/300378 Log: libc/regex: fix two buffer underruns. Fix some rather complex regex issues found on OpenBSD as part of some ongoing work to fix a sed(1) bug. Curiously the

svn commit: r300374 - in head/contrib/elftoolchain: brandelf elfcopy readelf

2016-05-21 Thread Ed Maste
Author: emaste Date: Sat May 21 15:38:40 2016 New Revision: 300374 URL: https://svnweb.freebsd.org/changeset/base/300374 Log: elftoolchain: backwards compatability for ELFOSABI_CLOUDABI definition It is not provided by sys/elf_common.h on older releases or -current before March 2015.

Re: svn commit: r300113 - in head/sys: conf kern net sys

2016-05-21 Thread K. Macy
On Sat, May 21, 2016 at 3:36 AM, Hans Petter Selasky wrote: > On 05/18/16 06:35, Scott Long wrote: >> >> Author: scottl >> Date: Wed May 18 04:35:58 2016 >> New Revision: 300113 >> URL: https://svnweb.freebsd.org/changeset/base/300113 >> >> Log: >> Import the 'iflib' API

Re: svn commit: r300375 - head/sys/arm/include

2016-05-21 Thread Ian Lepore
freebsd-arm@ added to cc list. On Sat, 2016-05-21 at 19:01 +0200, Joerg Sonnenberger wrote: > On Sat, May 21, 2016 at 04:52:38PM +, Ian Lepore wrote: > > Author: ian > > Date: Sat May 21 16:52:38 2016 > > New Revision: 300375 > > URL: https://svnweb.freebsd.org/changeset/base/300375 > > > >

svn commit: r300375 - head/sys/arm/include

2016-05-21 Thread Ian Lepore
Author: ian Date: Sat May 21 16:52:38 2016 New Revision: 300375 URL: https://svnweb.freebsd.org/changeset/base/300375 Log: Adjust _ALIGNBYTES to the proper value for arm and armv6 arches. Modern compilers can emit arm instructions that require 8-byte alignment. The alignment-sensitive

svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 21 17:52:44 2016 New Revision: 300377 URL: https://svnweb.freebsd.org/changeset/base/300377 Log: ndis(4): Avoid overflow. This is a long standing problem: our random() function returns an unsigned integer but the rand provided by ndis(4) returns an int. Scale

svn commit: r300364 - head/sys/ufs/ffs

2016-05-21 Thread Konstantin Belousov
Author: kib Date: Sat May 21 09:49:35 2016 New Revision: 300364 URL: https://svnweb.freebsd.org/changeset/base/300364 Log: Improve handling of rdev->si_mountpt on mount and unmount of FFS volumes. Treat the field as a semaphore protecting availability of the device for mounting. Do no

svn commit: r300383 - head/sys/net80211

2016-05-21 Thread Andriy Voskoboinyk
Author: avos Date: Sat May 21 23:21:42 2016 New Revision: 300383 URL: https://svnweb.freebsd.org/changeset/base/300383 Log: net80211: send RTM_IEEE80211_SCAN event when scan was cancelled. wpa_supplicant(8) expects to see 'scan complete' event after every scan command; in case, when

Re: svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Bruce Evans
On Sat, 21 May 2016, Pedro Giffuni wrote: On 05/21/16 16:55, Conrad Meyer wrote: On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote: On 05/21/16 14:05, Conrad Meyer wrote: Won't this still return a negative integer in many cases? random(9) returns u_long, whereas this

svn commit: r300384 - head/sys/compat/ndis

2016-05-21 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 22 00:29:25 2016 New Revision: 300384 URL: https://svnweb.freebsd.org/changeset/base/300384 Log: ndis(4): adjustments for our random() specific implementation. - Revert r300377: The implementation claims to return a value within the range. [1] - Adjust the

svn commit: r300385 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 01:45:15 2016 New Revision: 300385 URL: https://svnweb.freebsd.org/changeset/base/300385 Log: Don't leak `tmp` if `p->nc_lookups` can't be malloced MFC after: 1 week Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division Modified:

Re: svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Conrad Meyer
On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote: > > > On 05/21/16 14:05, Conrad Meyer wrote: >> Won't this still return a negative integer in many cases? >> >> random(9) returns u_long, whereas this rand() routine returns 'int'. >> >> Even on architectures where long is

Re: svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Pedro Giffuni
On 05/21/16 16:55, Conrad Meyer wrote: On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote: On 05/21/16 14:05, Conrad Meyer wrote: Won't this still return a negative integer in many cases? random(9) returns u_long, whereas this rand() routine returns 'int'. Even on

svn commit: r300382 - head/sys/vm

2016-05-21 Thread Alan Cox
Author: alc Date: Sat May 21 23:18:23 2016 New Revision: 300382 URL: https://svnweb.freebsd.org/changeset/base/300382 Log: When descending a shadow chain of objects, it makes no sense to update the current offset (spelled: "fs.pindex") until it is known whether a backing object exists. In

svn commit: r300386 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 02:02:18 2016 New Revision: 300386 URL: https://svnweb.freebsd.org/changeset/base/300386 Log: Don't leak `handle` if svc_tp_create(..) succeeds and allocating a new struct xlist object fails MFC after: 1 week Reported by: Coverity CID: 978277 Sponsored

Re: svn commit: r300384 - head/sys/compat/ndis

2016-05-21 Thread Bruce Evans
On Sun, 22 May 2016, Pedro F. Giffuni wrote: Log: ndis(4): adjustments for our random() specific implementation. - Revert r300377: The implementation claims to return a value within the range. [1] - Adjust the value for the case of a zero seed, whihc according to standards should be

Re: svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Andrey Chernov
On 22.05.2016 3:06, Bruce Evans wrote: > On Sat, 21 May 2016, Pedro Giffuni wrote: > >> On 05/21/16 16:55, Conrad Meyer wrote: >>> On Sat, May 21, 2016 at 1:40 PM, Pedro Giffuni wrote: On 05/21/16 14:05, Conrad Meyer wrote: > Won't this still return a

Re: svn commit: r300377 - head/sys/compat/ndis

2016-05-21 Thread Bruce Evans
On Sun, 22 May 2016, Andrey Chernov wrote: On 22.05.2016 3:06, Bruce Evans wrote: ... FreeBSD still has the ACM version in libkern, and has a fixed copy of that in libc, with the bad old version under an ifdef. The libc version now adjusts the range from [0, 0x7fff] to 0, 0x7ffd] and

svn commit: r300392 - head/sys/dev/gpio

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:55:57 2016 New Revision: 300392 URL: https://svnweb.freebsd.org/changeset/base/300392 Log: Get rid of two consumers of gpiobus acquire/release. The GPIO hardware should not be owned by a single device, this defeats any chance of use of the GPIO controller

svn commit: r300393 - head/sys/dev/gpio

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 04:02:34 2016 New Revision: 300393 URL: https://svnweb.freebsd.org/changeset/base/300393 Log: Sort and remove a couple of unnecessary headers. Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c

svn commit: r300388 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 02:53:11 2016 New Revision: 300388 URL: https://svnweb.freebsd.org/changeset/base/300388 Log: Call endnetconfig on nc_handle sooner to avoid leaking nc_handle if tmpnconf was NULL This would theoretically happen if the netconfig protocol family and protocol

Re: svn commit: r300384 - head/sys/compat/ndis

2016-05-21 Thread Andrey Chernov
On 22.05.2016 3:29, Pedro F. Giffuni wrote: > static void > srand(unsigned int seed) > { > > + if (seed == 0) > + seed = 1; > srandom(seed); > } IMHO it is not needed. srandom() already handles seed == 0 case, there is no point to remap it to another constant.

Re: svn commit: r300384 - head/sys/compat/ndis

2016-05-21 Thread Pedro Giffuni
> Il giorno 21/mag/2016, alle ore 21:15, Bruce Evans ha > scritto: > > On Sun, 22 May 2016, Pedro F. Giffuni wrote: > >> Log: >> ndis(4): adjustments for our random() specific implementation. >> >> - Revert r300377: The implementation claims to return a value >>

svn commit: r300389 - head/lib/libc/rpc

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 03:05:27 2016 New Revision: 300389 URL: https://svnweb.freebsd.org/changeset/base/300389 Log: nis_rpcent: don't leak resultbuf from yp_first(..)/yp_next(..) If the buffer couldn't be adequately resized to accomodate an additional "\n", it would leak

svn commit: r300390 - head/sys/dev/gpio

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:12:49 2016 New Revision: 300390 URL: https://svnweb.freebsd.org/changeset/base/300390 Log: Fix probe routine to return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC. While here fix a few style(9) issues. Modified: head/sys/dev/gpio/gpioled.c Modified:

svn commit: r300391 - head/sys/dev/gpio

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 03:34:18 2016 New Revision: 300391 URL: https://svnweb.freebsd.org/changeset/base/300391 Log: Use a better prefix for defines, return BUS_PROBE_DEFAULT for probe routine. Refuse to attach if the number of given pins is not enough for our needs. Modified:

svn commit: r300394 - head/sys/dev/iicbus

2016-05-21 Thread Luiz Otavio O Souza
Author: loos Date: Sun May 22 04:09:05 2016 New Revision: 300394 URL: https://svnweb.freebsd.org/changeset/base/300394 Log: Remove a couple of extra blank lines. Modified: head/sys/dev/iicbus/iicbb_if.m head/sys/dev/iicbus/iiconf.c Modified: head/sys/dev/iicbus/iicbb_if.m

svn commit: r300395 - head/contrib/top

2016-05-21 Thread Garrett Cooper
Author: ngie Date: Sun May 22 04:17:00 2016 New Revision: 300395 URL: https://svnweb.freebsd.org/changeset/base/300395 Log: Silence top(1) compiler warnings The contrib/top code is no longer maintained upstream (last pulled 16 years ago). The K followed by the code spews -Wimplicit-int

Re: svn commit: r300395 - head/contrib/top

2016-05-21 Thread Joel Dahl
On Sun, May 22, 2016 at 04:17:01AM +, Garrett Cooper wrote: > Author: ngie > Date: Sun May 22 04:17:00 2016 > New Revision: 300395 > URL: https://svnweb.freebsd.org/changeset/base/300395 > > Log: > Silence top(1) compiler warnings > > The contrib/top code is no longer maintained

Re: svn commit: r300395 - head/contrib/top

2016-05-21 Thread Ngie Cooper (yaneurabeya)
> On May 21, 2016, at 22:36, Joel Dahl wrote: > > On Sun, May 22, 2016 at 04:17:01AM +, Garrett Cooper wrote: >> Author: ngie >> Date: Sun May 22 04:17:00 2016 >> New Revision: 300395 >> URL: https://svnweb.freebsd.org/changeset/base/300395 >> >> Log: >> Silence top(1)