svn commit: r286307 - in head: lib/libc/sys sys/kern sys/sys

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 07:34:29 2015 New Revision: 286307 URL: https://svnweb.freebsd.org/changeset/base/286307 Log: Make it possible to implement poll(2) on top of kqueue(2). It looks like EVFILT_READ and EVFILT_WRITE trigger under the same conditions as poll()'s POLLRDNORM and POLL

svn commit: r286309 - in head/sys: compat/linux kern sys

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 07:36:50 2015 New Revision: 286309 URL: https://svnweb.freebsd.org/changeset/base/286309 Log: Allow the creation of kqueues with a restricted set of Capsicum rights. On CloudABI we want to create file descriptors with just the minimal set of Capsicum rights in

svn commit: r286310 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 07:37:06 2015 New Revision: 286310 URL: https://svnweb.freebsd.org/changeset/base/286310 Log: Allow the creation of polling descriptors (kqueues) on CloudABI. Modified: head/sys/compat/cloudabi/cloudabi_fd.c Modified: head/sys/compat/cloudabi/cloudabi_fd.c ===

svn commit: r286312 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 08:18:05 2015 New Revision: 286312 URL: https://svnweb.freebsd.org/changeset/base/286312 Log: Add the remaining pointer size independent CloudABI socket system calls. CloudABI uses a structure called cloudabi_sockstat_t. Think of it as 'struct stat' for sockets

svn commit: r286313 - head/sys/vm

2015-08-05 Thread Jason A. Harmening
Author: jah Date: Wed Aug 5 10:48:32 2015 New Revision: 286313 URL: https://svnweb.freebsd.org/changeset/base/286313 Log: Properly sort the function declarations added in r286296 Submitted by: alc Approved by: kib (mentor) Modified: head/sys/vm/pmap.h Modified: head/sys/vm/pmap.h ==

svn commit: r286314 - head/sys/i386/i386

2015-08-05 Thread Konstantin Belousov
Author: kib Date: Wed Aug 5 10:50:33 2015 New Revision: 286314 URL: https://svnweb.freebsd.org/changeset/base/286314 Log: Fix UP build after r286296, ensure that CPU_FOREACH() is defined. Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i

Re: svn commit: r286223 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Steven Hartland
On 04/08/2015 21:24, Slawa Olhovchenkov wrote: On Tue, Aug 04, 2015 at 09:06:55PM +0100, Steven Hartland wrote: On 04/08/2015 17:14, Slawa Olhovchenkov wrote: On Tue, Aug 04, 2015 at 09:30:30AM +0100, Steven Hartland wrote: On 03/08/2015 21:48, Warner Losh wrote: On Aug 3, 2015, at 1:44

Re: svn commit: r286223 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Slawa Olhovchenkov
On Wed, Aug 05, 2015 at 12:10:23PM +0100, Steven Hartland wrote: > >> Just in case you didn't notice kib committed a fix for i386 thread0 in > >> r286288 so this may not be needed at all any more which is good news :) > > If I understund kib fix (and you about ZFS stack requirements) you > > need

svn commit: r286317 - in head: lib/libthr/arch/amd64 lib/libthr/arch/i386 libexec/rtld-elf/amd64 libexec/rtld-elf/i386 share/mk

2015-08-05 Thread Eric van Gyzen
Author: vangyzen Date: Wed Aug 5 12:53:55 2015 New Revision: 286317 URL: https://svnweb.freebsd.org/changeset/base/286317 Log: Disable SSE in libthr Clang emits SSE instructions on amd64 in the common path of pthread_mutex_unlock. If the thread does not otherwise use SSE, this usage i

svn commit: r286318 - in head/sys: compat/cloudabi64 contrib/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 13:09:46 2015 New Revision: 286318 URL: https://svnweb.freebsd.org/changeset/base/286318 Log: Import the latest CloudABI system call definitions and table. We're going to need these for next code I'm going to send out for review: support for poll() and kqueue()

svn commit: r286319 - head/sys/compat/cloudabi64

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 13:10:13 2015 New Revision: 286319 URL: https://svnweb.freebsd.org/changeset/base/286319 Log: Regenerate the system call table. Modified: head/sys/compat/cloudabi64/cloudabi64_proto.h head/sys/compat/cloudabi64/cloudabi64_syscall.h head/sys/compat/cloudabi64/cl

svn commit: r286320 - head/sys/cam/ctl

2015-08-05 Thread Alexander Motin
Author: mav Date: Wed Aug 5 13:46:15 2015 New Revision: 286320 URL: https://svnweb.freebsd.org/changeset/base/286320 Log: Issue all reads of single XCOPY segment simultaneously. During vMotion and Clone VMware by default runs multiple sequential 4MB XCOPY requests same time. If CTL issu

Re: svn commit: r286320 - head/sys/cam/ctl

2015-08-05 Thread Steven Hartland
Nice!! On 05/08/2015 14:46, Alexander Motin wrote: Author: mav Date: Wed Aug 5 13:46:15 2015 New Revision: 286320 URL: https://svnweb.freebsd.org/changeset/base/286320 Log: Issue all reads of single XCOPY segment simultaneously. During vMotion and Clone VMware by default runs multipl

svn commit: r286321 - head/sys/modules/zfs

2015-08-05 Thread Li-Wen Hsu
Author: lwhsu (ports committer) Date: Wed Aug 5 14:45:52 2015 New Revision: 286321 URL: https://svnweb.freebsd.org/changeset/base/286321 Log: Fix `make depend` in sys/modules Reviewed by: delphij Differential Revision:https://reviews.freebsd.org/D3291 Modified: head/sys/modul

svn commit: r286323 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 16:15:43 2015 New Revision: 286323 URL: https://svnweb.freebsd.org/changeset/base/286323 Log: Make fcntl(F_SETFL) work. The stat_put() system call can be used to modify file descriptor attributes, such as flags, but also Capsicum permission bits. Support for

svn commit: r286324 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 16:45:47 2015 New Revision: 286324 URL: https://svnweb.freebsd.org/changeset/base/286324 Log: Add DECLARE_MODULE() to the "cloudabi" kernel module. This kernel module does not require any explicit initialization, but a module declaration is needed to let the "c

Re: svn commit: r286323 - head/sys/compat/cloudabi

2015-08-05 Thread Pedro Giffuni
Hi Ed; This just reminded me: Clang has support for type-safety attributes[1] for fcntl and ioctls. I gave them a try[2] but they broke compatibility. For a clean ABI you should consider them. Best regards, Pedro. [1] http://clang.llvm.org/docs/AttributeReference.html#type-safety-checking [

svn commit: r286325 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Wed Aug 5 16:53:49 2015 New Revision: 286325 URL: https://svnweb.freebsd.org/changeset/base/286325 Log: Correct the previous commit: remove the DECLARE_MODULE(). It looks like a MODULE_VERSION() can also appear on its own -- there is no need to use explicitly use DECLARE

svn commit: r286327 - in head/sys: arm/include arm64/include mips/include powerpc/include sparc64/include x86/include

2015-08-05 Thread Ed Maste
Author: emaste Date: Wed Aug 5 17:05:35 2015 New Revision: 286327 URL: https://svnweb.freebsd.org/changeset/base/286327 Log: Rationalize BSD license on sys/*/include/float.h Remove the advertising clause from the Regents of the University of California's license, per the letter dated Jul

svn commit: r286328 - head/sys/x86/include

2015-08-05 Thread Jung-uk Kim
Author: jkim Date: Wed Aug 5 17:21:42 2015 New Revision: 286328 URL: https://svnweb.freebsd.org/changeset/base/286328 Log: Fix more style issues. Submitted by: bde Modified: head/sys/x86/include/_types.h Modified: head/sys/x86/include/_types.h ==

Re: svn commit: r286328 - head/sys/x86/include

2015-08-05 Thread Ian Lepore
On Wed, 2015-08-05 at 17:21 +, Jung-uk Kim wrote: > Author: jkim > Date: Wed Aug 5 17:21:42 2015 > New Revision: 286328 > URL: https://svnweb.freebsd.org/changeset/base/286328 > > Log: > Fix more style issues. > > Submitted by: bde > > Modified: > head/sys/x86/include/_types.h

svn commit: r286329 - in head/etc: defaults rc.d

2015-08-05 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Aug 5 17:38:02 2015 New Revision: 286329 URL: https://svnweb.freebsd.org/changeset/base/286329 Log: Make rctl_enable rc variable actually work. To avoid breaking existing setups that worked before, flip the default to "YES". Most people don't have /etc/rctl.conf, s

svn commit: r286330 - head/usr.bin/truss

2015-08-05 Thread John Baldwin
Author: jhb Date: Wed Aug 5 18:10:46 2015 New Revision: 286330 URL: https://svnweb.freebsd.org/changeset/base/286330 Log: Whitespace fix: remove some spurious spaces before commas. Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c ==

svn commit: r286331 - head/usr.bin/truss

2015-08-05 Thread John Baldwin
Author: jhb Date: Wed Aug 5 18:14:01 2015 New Revision: 286331 URL: https://svnweb.freebsd.org/changeset/base/286331 Log: Rework get_string() to make it more robust when fetching strings of unknown length. In particular, instead of blinding fetching 1k blocks, do an initial fetch up to the

svn commit: r286332 - in head: . gnu/usr.bin/binutils gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/ar gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/ranlib gnu/usr.bin/binutils/readelf gnu/usr...

2015-08-05 Thread Ed Maste
:00 2015(r286332) @@ -31,6 +31,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11 disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20150805: + GNU Binutils versions of addr2line, c++fil

Re: svn commit: r286332 - in head: . gnu/usr.bin/binutils gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/ar gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/ranlib gnu/usr.bin/binutils/readelf gnu/us

2015-08-05 Thread Renato Botelho
> On Aug 5, 2015, at 15:30, Ed Maste wrote: > > Author: emaste > Date: Wed Aug 5 18:30:00 2015 > New Revision: 286332 > URL: https://svnweb.freebsd.org/changeset/base/286332 > > Log: > Remove old GNU Binutils tools now provided by ELF Tool Chain > > Reviewed by: bapt, brooks > Sponsored by:

svn commit: r286335 - in head/gnu/usr.bin/binutils: addr2line ar nm ranlib readelf size strings strip

2015-08-05 Thread Ed Maste
Author: emaste Date: Wed Aug 5 18:55:40 2015 New Revision: 286335 URL: https://svnweb.freebsd.org/changeset/base/286335 Log: Remove empty directories left by r286332 Reported by: garga Deleted: head/gnu/usr.bin/binutils/addr2line/ head/gnu/usr.bin/binutils/ar/ head/gnu/usr.bin/binu

Re: svn commit: r286332 - in head: . gnu/usr.bin/binutils gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/ar gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/ranlib gnu/usr.bin/binutils/readelf gnu/us

2015-08-05 Thread Ed Maste
On 5 August 2015 at 14:36, Renato Botelho wrote: > > I noted empty directories were left, was that intentional? No, thanks for catching that -- cleaned up in r286335. ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/sv

svn commit: r286336 - in head/sys: amd64/include arm64/include i386/include mips/include powerpc/include sparc64/include

2015-08-05 Thread Ed Maste
Author: emaste Date: Wed Aug 5 19:05:12 2015 New Revision: 286336 URL: https://svnweb.freebsd.org/changeset/base/286336 Log: Rationalize BSD license on sys/*/include/in_cksum.h Remove the advertising clause from the Regents of the University of California's license, per the letter dated

svn commit: r286337 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-08-05 Thread Adrian Chadd
Author: adrian Date: Wed Aug 5 19:32:35 2015 New Revision: 286337 URL: https://svnweb.freebsd.org/changeset/base/286337 Log: Add TXOP enforce support to the AR9300 HAL. This is required for (more) correct TDMA support. Without it, the code tries to calculate the required guard interval

Re: svn commit: r286337 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-08-05 Thread Shawn Webb
On Wed, 2015-08-05 at 19:32 +, Adrian Chadd wrote: > Author: adrian > Date: Wed Aug 5 19:32:35 2015 > New Revision: 286337 > URL: https://svnweb.freebsd.org/changeset/base/286337 > > Log: > Add TXOP enforce support to the AR9300 HAL. > > This is required for (more) correct TDMA support

svn commit: r286338 - in head/sys: conf dev/cxgbe/firmware modules/cxgbe/t4_firmware modules/cxgbe/t5_firmware

2015-08-05 Thread Navdeep Parhar
Author: np Date: Wed Aug 5 19:45:11 2015 New Revision: 286338 URL: https://svnweb.freebsd.org/changeset/base/286338 Log: cxgbe(4): Update T5 and T4 firmwares bundled with the driver to 1.14.4.0. The changes in the firmwares since 1.11.27.0 are listed here (straight copy-paste from the "R

svn commit: r286341 - head/usr.sbin/pw/tests

2015-08-05 Thread Baptiste Daroussin
Author: bapt Date: Wed Aug 5 21:11:32 2015 New Revision: 286341 URL: https://svnweb.freebsd.org/changeset/base/286341 Log: Add regression tests for a bug reported in stable/10 While pw(8) on head is not affected it is worth adding more regression tests ensuring this bug will not happen u

svn commit: r286342 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-08-05 Thread Adrian Chadd
Author: adrian Date: Wed Aug 5 21:16:12 2015 New Revision: 286342 URL: https://svnweb.freebsd.org/changeset/base/286342 Log: Add a missing method - ath_hal_settsf64(). This is required for TDMA slave mode. Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c Modified: hea

svn commit: r286343 - head/sys/dev/ath

2015-08-05 Thread Adrian Chadd
Author: adrian Date: Wed Aug 5 21:22:25 2015 New Revision: 286343 URL: https://svnweb.freebsd.org/changeset/base/286343 Log: Add a hack-around to this fatal taskqueue running whilst the NIC is detaching. This mostly fixes a panic - the reset path shouldn't run whilst the NIC is being t

Re: svn commit: r286337 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-08-05 Thread Adrian Chadd
The whole wifi stack / drivers need backporting. :) -a On 5 August 2015 at 12:41, Shawn Webb wrote: > On Wed, 2015-08-05 at 19:32 +, Adrian Chadd wrote: >> Author: adrian >> Date: Wed Aug 5 19:32:35 2015 >> New Revision: 286337 >> URL: https://svnweb.freebsd.org/changeset/base/286337 >>

svn commit: r286344 - head/usr.bin/find

2015-08-05 Thread Jilles Tjoelker
Author: jilles Date: Wed Aug 5 21:33:30 2015 New Revision: 286344 URL: https://svnweb.freebsd.org/changeset/base/286344 Log: find: Fix segfault with very long path in -exec/-ok ... {} \;. If the resulting argument is longer than MAXPATHLEN, realloc() was called to extend the space, but t

Re: svn commit: r286337 - head/sys/contrib/dev/ath/ath_hal/ar9300

2015-08-05 Thread Oliver Pinter
Yup. :) If you need testers with the backport, then ping me. ;) On Wed, Aug 5, 2015 at 11:23 PM, Adrian Chadd wrote: > The whole wifi stack / drivers need backporting. :) > > > > -a > > > On 5 August 2015 at 12:41, Shawn Webb wrote: >> On Wed, 2015-08-05 at 19:32 +, Adrian Chadd wrote: >>> A

svn commit: r286345 - head/sys/cam/ctl

2015-08-05 Thread Alexander Motin
Author: mav Date: Wed Aug 5 21:58:32 2015 New Revision: 286345 URL: https://svnweb.freebsd.org/changeset/base/286345 Log: Relax serialization of SYNCHRONIZE CACHE commands. Before this change SYNCHRONIZE CACHE commands were executed exclusively, as if they had ORDERED tag. But looking t

svn commit: r286347 - head/sbin/routed

2015-08-05 Thread Xin LI
Author: delphij Date: Wed Aug 5 22:04:56 2015 New Revision: 286347 URL: https://svnweb.freebsd.org/changeset/base/286347 Log: Fix a bug which could make routed(8) daemon exit by sending a special RIP query from a remote machine, similar to SA-14:21.routed. Submitted by: hrs Modified:

svn commit: r286346 - head/usr.bin/patch

2015-08-05 Thread Xin LI
Author: delphij Date: Wed Aug 5 22:04:54 2015 New Revision: 286346 URL: https://svnweb.freebsd.org/changeset/base/286346 Log: Fix shell injection vulnerability in patch(1) via ed(1) by tightening sanity check of the input. [1] While I'm there also replace ed(1) with red(1) because we do

svn commit: r286353 - head/sys/cam/ctl

2015-08-05 Thread Alexander Motin
Author: mav Date: Wed Aug 5 22:24:49 2015 New Revision: 286353 URL: https://svnweb.freebsd.org/changeset/base/286353 Log: Pass SYNCHRONIZE CACHE command parameters to backends. At this point IMMED flag is translated to MNT_NOWAIT flag of VOP_FSYNC(), hoping that file system implements th

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

2015-08-05 Thread Conrad E. Meyer
Author: cem Date: Wed Aug 5 22:27:30 2015 New Revision: 286354 URL: https://svnweb.freebsd.org/changeset/base/286354 Log: nfsclient: Protest loudly when GETATTR responses are invalid BROKEN NFS SERVER OR MIDDLEWARE: Certain WAN "accelerators" attempt to cache NFS GETATTR traffic, but act

svn commit: r286358 - head/usr.bin/truss

2015-08-05 Thread John Baldwin
Author: jhb Date: Thu Aug 6 01:49:18 2015 New Revision: 286358 URL: https://svnweb.freebsd.org/changeset/base/286358 Log: Add recently added values of various flags and enumerations including kevent filters, kevent flags, flags to mmap, seek locations, fcntl operations, file flags, socket d

Re: svn commit: r285021 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Pawel Jakub Dawidek
On Mon, Aug 03, 2015 at 04:20:04PM +0300, Andriy Gapon wrote: > On 30/07/2015 10:24, K. Macy wrote: > > Just FYI this change introduces a deadlock with with the > > spa_namespace_lock. Mount will be holding this lock while trying to > > acquire the spa_namespace_lock. zfskern on the other hand hold

Re: svn commit: r285021 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Glen Barber
On Thu, Aug 06, 2015 at 04:17:23AM +0200, Pawel Jakub Dawidek wrote: > On Mon, Aug 03, 2015 at 04:20:04PM +0300, Andriy Gapon wrote: > > On 30/07/2015 10:24, K. Macy wrote: > > > Just FYI this change introduces a deadlock with with the > > > spa_namespace_lock. Mount will be holding this lock while

Re: svn commit: r285021 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread K. Macy
His proposed solution looks fine to me. Why don't we commit that? -K On Wed, Aug 5, 2015 at 7:22 PM, Glen Barber wrote: > On Thu, Aug 06, 2015 at 04:17:23AM +0200, Pawel Jakub Dawidek wrote: >> On Mon, Aug 03, 2015 at 04:20:04PM +0300, Andriy Gapon wrote: >> > On 30/07/2015 10:24, K. Macy wrote:

Re: svn commit: r285021 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Glen Barber
On Wed, Aug 05, 2015 at 08:04:55PM -0700, K. Macy wrote: > On Wed, Aug 5, 2015 at 7:22 PM, Glen Barber wrote: > > On Thu, Aug 06, 2015 at 04:17:23AM +0200, Pawel Jakub Dawidek wrote: > >> On Mon, Aug 03, 2015 at 04:20:04PM +0300, Andriy Gapon wrote: > >> > On 30/07/2015 10:24, K. Macy wrote: > >>

Re: svn commit: r286341 - head/usr.sbin/pw/tests

2015-08-05 Thread NGie Cooper
On Wed, Aug 5, 2015 at 2:11 PM, Baptiste Daroussin wrote: > Author: bapt > Date: Wed Aug 5 21:11:32 2015 > New Revision: 286341 > URL: https://svnweb.freebsd.org/changeset/base/286341 > > Log: > Add regression tests for a bug reported in stable/10 > > While pw(8) on head is not affected it is

Re: svn commit: r286341 - head/usr.sbin/pw/tests

2015-08-05 Thread Baptiste Daroussin
On Wed, Aug 05, 2015 at 10:11:05PM -0700, NGie Cooper wrote: > On Wed, Aug 5, 2015 at 2:11 PM, Baptiste Daroussin wrote: > > Author: bapt > > Date: Wed Aug 5 21:11:32 2015 > > New Revision: 286341 > > URL: https://svnweb.freebsd.org/changeset/base/286341 > > > > Log: > > Add regression tests fo

Re: svn commit: r285021 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-08-05 Thread Andriy Gapon
On 06/08/2015 06:07, Glen Barber wrote: > On Wed, Aug 05, 2015 at 08:04:55PM -0700, K. Macy wrote: >> On Wed, Aug 5, 2015 at 7:22 PM, Glen Barber wrote: >>> On Thu, Aug 06, 2015 at 04:17:23AM +0200, Pawel Jakub Dawidek wrote: On Mon, Aug 03, 2015 at 04:20:04PM +0300, Andriy Gapon wrote: >

svn commit: r286359 - head/sys/compat/cloudabi

2015-08-05 Thread Ed Schouten
Author: ed Date: Thu Aug 6 06:47:28 2015 New Revision: 286359 URL: https://svnweb.freebsd.org/changeset/base/286359 Log: Add file_open(): the underlying system call of openat(). CloudABI purely operates on file descriptor rights (CAP_*). File descriptor access modes (O_ACCMODE) are emula