svn commit: r285321 - head/sys/kern

2015-07-09 Thread Mateusz Guzik
Author: mjg Date: Thu Jul 9 15:19:45 2015 New Revision: 285321 URL: https://svnweb.freebsd.org/changeset/base/285321 Log: fd: prepare do_dup for being exported - rename it to kern_dup. - prefix flags with FD - assert that correct flags were passed Modified:

svn commit: r285318 - in head/usr.sbin/pw: . tests

2015-07-09 Thread Baptiste Daroussin
Author: bapt Date: Thu Jul 9 14:14:44 2015 New Revision: 285318 URL: https://svnweb.freebsd.org/changeset/base/285318 Log: Do not try to set password on group if the group is added as a consequence of of creating a user (regression from r285136) Reported by: Fabian Keil

svn commit: r285319 - head/sys/kern

2015-07-09 Thread Mateusz Guzik
Author: mjg Date: Thu Jul 9 15:06:24 2015 New Revision: 285319 URL: https://svnweb.freebsd.org/changeset/base/285319 Log: vfs: plug a use-after-free of fd_rdir in namei fd_rdir vnode was stored in ni_rootdir without refing it in any way, after which the filedsc lock was being dropped.

svn commit: r285320 - head/sys/kern

2015-07-09 Thread Mateusz Guzik
Author: mjg Date: Thu Jul 9 15:06:58 2015 New Revision: 285320 URL: https://svnweb.freebsd.org/changeset/base/285320 Log: vfs: avoid spurious vref/vrele for absolute lookups namei used to vref fd_cdir, which was immediatley vrele'd on entry to the loop. Check for absolute lookup

svn commit: r285329 - in head: crypto/openssl crypto/openssl/crypto crypto/openssl/crypto/bio crypto/openssl/crypto/evp crypto/openssl/crypto/pkcs12 crypto/openssl/crypto/threads crypto/openssl/cry...

2015-07-09 Thread Jung-uk Kim
Author: jkim Date: Thu Jul 9 17:07:45 2015 New Revision: 285329 URL: https://svnweb.freebsd.org/changeset/base/285329 Log: Merge OpenSSL 1.0.1p. Added: head/crypto/openssl/crypto/x509/verify_extra_test.c - copied unchanged from r285327,

Re: svn commit: r285307 - in head/sys: compat/cloudabi compat/cloudabi64 conf contrib/cloudabi kern

2015-07-09 Thread Adrian Chadd
Hi, So this isn't at all included in a system by default? Or is it disable-able? All I see in options is COMPAT_CLOUDABI64. -adrian On 9 July 2015 at 00:20, Ed Schouten e...@freebsd.org wrote: Author: ed Date: Thu Jul 9 07:20:15 2015 New Revision: 285307 URL:

svn commit: r285323 - in head/sys: compat/cloudabi kern sys

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 16:07:01 2015 New Revision: 285323 URL: https://svnweb.freebsd.org/changeset/base/285323 Log: Add implementations for some of the CloudABI file descriptor system calls. All of the CloudABI system calls that operate on file descriptors of an arbitrary type are

svn commit: r285324 - head/lib/libmd

2015-07-09 Thread John-Mark Gurney
Author: jmg Date: Thu Jul 9 16:13:05 2015 New Revision: 285324 URL: https://svnweb.freebsd.org/changeset/base/285324 Log: increase buffer size to significantly increase performance... see: https://docs.freebsd.org/cgi/mid.cgi?20150513080342.ge37...@funkthat.com for benchmarks...

svn commit: r285332 - head/release/doc/en_US.ISO8859-1/relnotes

2015-07-09 Thread Glen Barber
Author: gjb Date: Thu Jul 9 17:24:54 2015 New Revision: 285332 URL: https://svnweb.freebsd.org/changeset/base/285332 Log: Document r285329, OpenSSL update to 1.0.1p. Sponsored by: The FreeBSD Foundation Modified: head/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified:

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

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 17:26:56 2015 New Revision: 285334 URL: https://svnweb.freebsd.org/changeset/base/285334 Log: Clear the carry bit on the saved program state register when asked to clear the return value, it's used to indicate an error. Obtained from:ABT Systems

svn commit: r285325 - head/sys/netinet

2015-07-09 Thread Ermal Luçi
Author: eri Date: Thu Jul 9 16:28:36 2015 New Revision: 285325 URL: https://svnweb.freebsd.org/changeset/base/285325 Log: Correct issue presented in r285051, apparently neither clang nor gcc complain about this. But clang intis the var to NULL correctly while gcc on at least mips does not.

svn commit: r285331 - head/sys/kern

2015-07-09 Thread Mateusz Guzik
Author: mjg Date: Thu Jul 9 17:17:26 2015 New Revision: 285331 URL: https://svnweb.freebsd.org/changeset/base/285331 Log: vfs: cosmetic changes to namei and namei_handle_root - don't initialize cnp during declaration - don't test error/!error, compare to 0 instead Modified:

Re: svn commit: r285307 - in head/sys: compat/cloudabi compat/cloudabi64 conf contrib/cloudabi kern

2015-07-09 Thread Ed Schouten
Hi Adrian, 2015-07-09 19:11 GMT+02:00 Adrian Chadd adrian.ch...@gmail.com: So this isn't at all included in a system by default? Or is it disable-able? All I see in options is COMPAT_CLOUDABI64. Even though a kernel configuration with COMPAT_CLOUDABI64 passes the build on all architectures

svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread George V. Neville-Neil
Author: gnn Date: Thu Jul 9 18:16:35 2015 New Revision: 285336 URL: https://svnweb.freebsd.org/changeset/base/285336 Log: Add support for AES modes to IPSec. These modes work both in software only mode and with hardware support on systems that have AESNI instructions. Differential

svn commit: r285349 - in head/sys: dev/cxgbe dev/e1000 dev/ixgbe dev/netmap dev/re net

2015-07-09 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 05:51:36 2015 New Revision: 285349 URL: https://svnweb.freebsd.org/changeset/base/285349 Log: Sync netmap sources with the version in our private tree. This commit contains large contributions from Giuseppe Lettieri and Stefano Garzarella, is partly supported

svn commit: r285348 - head/release/picobsd/build

2015-07-09 Thread Luigi Rizzo
Author: luigi Date: Fri Jul 10 05:07:18 2015 New Revision: 285348 URL: https://svnweb.freebsd.org/changeset/base/285348 Log: rev.284898 removed _SHLIBDIRPREFIX so we need to reconstruct its value to properly locate libraries created in the buildworld phase. Modified:

Re: svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread Patrick Kelsey
On Thu, Jul 9, 2015 at 10:45 PM, Warner Losh i...@bsdimp.com wrote: On Jul 9, 2015, at 8:27 PM, George Neville-Neil g...@freebsd.org wrote: On 9 Jul 2015, at 18:26, Peter Wemm wrote: On Thursday, July 09, 2015 06:16:36 PM George V. Neville-Neil wrote: Author: gnn Date: Thu Jul

Re: svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread Warner Losh
On Jul 9, 2015, at 8:27 PM, George Neville-Neil g...@freebsd.org wrote: On 9 Jul 2015, at 18:26, Peter Wemm wrote: On Thursday, July 09, 2015 06:16:36 PM George V. Neville-Neil wrote: Author: gnn Date: Thu Jul 9 18:16:35 2015 New Revision: 285336 URL:

svn commit: r285347 - head/sys/netipsec

2015-07-09 Thread George V. Neville-Neil
Author: gnn Date: Fri Jul 10 02:23:50 2015 New Revision: 285347 URL: https://svnweb.freebsd.org/changeset/base/285347 Log: Summary: Fix LINT build. The names of the new AES modes were not correctly used under the REGRESSION kernel option. Modified: head/sys/netipsec/xform_esp.c Modified:

Re: svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread George Neville-Neil
On 9 Jul 2015, at 18:26, Peter Wemm wrote: On Thursday, July 09, 2015 06:16:36 PM George V. Neville-Neil wrote: Author: gnn Date: Thu Jul 9 18:16:35 2015 New Revision: 285336 URL: https://svnweb.freebsd.org/changeset/base/285336 Log: Add support for AES modes to IPSec. These modes

Re: svn commit: r285284 - head/lib/liblzma

2015-07-09 Thread David Chisnall
On 9 Jul 2015, at 03:53, NGie Cooper yaneurab...@gmail.com wrote: $ cat ~/has_immintrin.c #include sys/cdefs.h #if __has_include(immintrin.h) #error I have immintrin.h #else #error I don't have immintrin.h #endif $ clang -c ~/has_immintrin.c /home/ngie/has_immintrin.c:4:2: error: I

svn commit: r285307 - in head/sys: compat/cloudabi compat/cloudabi64 conf contrib/cloudabi kern

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:20:15 2015 New Revision: 285307 URL: https://svnweb.freebsd.org/changeset/base/285307 Log: Import the CloudABI datatypes and create a system call table. CloudABI is a pure capability-based runtime environment for UNIX. It works similar to Capsicum, except

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

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:21:33 2015 New Revision: 285308 URL: https://svnweb.freebsd.org/changeset/base/285308 Log: Generate CloudABI system call table with proper $FreeBSD$ tags. Added: head/sys/compat/cloudabi64/cloudabi64_proto.h (contents, props changed)

svn commit: r285309 - head/sys/sys

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:31:40 2015 New Revision: 285309 URL: https://svnweb.freebsd.org/changeset/base/285309 Log: Add forward declaration of struct thread. This structure is used in some of the functions in this header, but we don't depend on any header that pulls it i.

svn commit: r285311 - in head/sys/arm64: arm64 include

2015-07-09 Thread Zbigniew Bodek
Author: zbb Date: Thu Jul 9 11:32:29 2015 New Revision: 285311 URL: https://svnweb.freebsd.org/changeset/base/285311 Log: Rework CPU identification on ARM64 This commit reworks the code responsible for identification of the CPUs during runtime. It is necessary to provide a way for

svn commit: r285312 - head/sys/kern

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 12:04:45 2015 New Revision: 285312 URL: https://svnweb.freebsd.org/changeset/base/285312 Log: Don't clobber td-td_retval[0] in proc_reap(). While writing tests for CloudABI, I noticed that close() on process descriptors returns the process ID of the child

Re: svn commit: r285284 - head/lib/liblzma

2015-07-09 Thread NGie Cooper
On Thu, Jul 9, 2015 at 2:23 AM, David Chisnall thera...@freebsd.org wrote: On 9 Jul 2015, at 10:19, NGie Cooper yaneurab...@gmail.com wrote: Yes, but this case will fail for gcc 4.3 ~ 4.4 through 5.x if you use my recommended method... I think that’s probably fine. We basically have four

Re: svn commit: r285284 - head/lib/liblzma

2015-07-09 Thread NGie Cooper
On Thu, Jul 9, 2015 at 1:44 AM, David Chisnall thera...@freebsd.org wrote: On 9 Jul 2015, at 03:53, NGie Cooper yaneurab...@gmail.com wrote: $ cat ~/has_immintrin.c #include sys/cdefs.h #if __has_include(immintrin.h) #error I have immintrin.h #else #error I don't have immintrin.h #endif

Re: svn commit: r285284 - head/lib/liblzma

2015-07-09 Thread David Chisnall
On 9 Jul 2015, at 10:19, NGie Cooper yaneurab...@gmail.com wrote: Yes, but this case will fail for gcc 4.3 ~ 4.4 through 5.x if you use my recommended method... I think that’s probably fine. We basically have four cases that we care about: - People who are using clang because it’s the

svn commit: r285310 - head/sys/kern

2015-07-09 Thread Konstantin Belousov
Author: kib Date: Thu Jul 9 09:22:21 2015 New Revision: 285310 URL: https://svnweb.freebsd.org/changeset/base/285310 Log: Cover a race between doselwakeup() and selfdfree(). If doselwakeup() loop finds the selfd entry and clears its sf_si pointer, which is handled by selfdfree() in

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

2015-07-09 Thread Mateusz Guzik
On Thu, Jul 09, 2015 at 09:22:22AM +, Konstantin Belousov wrote: Author: kib Date: Thu Jul 9 09:22:21 2015 New Revision: 285310 URL: https://svnweb.freebsd.org/changeset/base/285310 Log: Cover a race between doselwakeup() and selfdfree(). If doselwakeup() loop finds the selfd

svn commit: r285313 - head/sys/arm64/include

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 12:51:50 2015 New Revision: 285313 URL: https://svnweb.freebsd.org/changeset/base/285313 Log: Clean up the types used in machine/ucontext.h on arm64. As some ports include this file without first including the headers needed for uint32_t and the like use the

svn commit: r285314 - head/sys/arm64/include

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 12:56:09 2015 New Revision: 285314 URL: https://svnweb.freebsd.org/changeset/base/285314 Log: Add the definition of the shareable bits in the pagetables Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified:

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

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 13:07:12 2015 New Revision: 285315 URL: https://svnweb.freebsd.org/changeset/base/285315 Log: Add logging of synchronous exceptions. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/trap.c

svn commit: r285316 - in head/sys: arm64/arm64 arm64/conf arm64/include conf

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 13:23:29 2015 New Revision: 285316 URL: https://svnweb.freebsd.org/changeset/base/285316 Log: Add support for SMP. This uses the FDT data to find the CPUs to start on, and psci to start them. I expect ACPI support to be added later. This has been tested on

svn commit: r285337 - in head/sys: conf libkern/arm

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 20:54:38 2015 New Revision: 285337 URL: https://svnweb.freebsd.org/changeset/base/285337 Log: Add support for __aeabi_memclr4, clang 3.7 calls it. Sponsored by: ABT Systems Ltd Added: head/sys/libkern/arm/memclr.S (contents, props changed) Modified:

svn commit: r285338 - head/sys/libkern/arm

2015-07-09 Thread Andrew Turner
Author: andrew Date: Thu Jul 9 21:02:40 2015 New Revision: 285338 URL: https://svnweb.freebsd.org/changeset/base/285338 Log: Remove checks for __ARM_EABI__, we only build for EABI now. Sponsored by: ABT Systems Ltd Modified: head/sys/libkern/arm/aeabi_unwind.c

Re: svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread George Neville-Neil
Should have also pointed out that the original version of this patch comes from pfsense and Ermal (eri@). Best, George On 9 Jul 2015, at 14:16, George V. Neville-Neil wrote: Author: gnn Date: Thu Jul 9 18:16:35 2015 New Revision: 285336 URL: https://svnweb.freebsd.org/changeset/base/285336

Re: svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-09 Thread Baptiste Daroussin
On Thu, Jul 09, 2015 at 01:29:54PM -0700, Peter Wemm wrote: On Saturday, July 04, 2015 04:33:38 PM Mariusz Zaborski wrote: Author: oshogbo Date: Sat Jul 4 16:33:37 2015 New Revision: 285139 URL: https://svnweb.freebsd.org/changeset/base/285139 Log: Move the nvlist source and

Re: svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-09 Thread Peter Wemm
On Saturday, July 04, 2015 04:33:38 PM Mariusz Zaborski wrote: Author: oshogbo Date: Sat Jul 4 16:33:37 2015 New Revision: 285139 URL: https://svnweb.freebsd.org/changeset/base/285139 Log: Move the nvlist source and private includes from sys/kern to seperate directory

Re: svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-09 Thread Larry Rosenman
On 2015-07-09 15:31, Baptiste Daroussin wrote: On Thu, Jul 09, 2015 at 01:29:54PM -0700, Peter Wemm wrote: On Saturday, July 04, 2015 04:33:38 PM Mariusz Zaborski wrote: Author: oshogbo Date: Sat Jul 4 16:33:37 2015 New Revision: 285139 URL: https://svnweb.freebsd.org/changeset/base/285139

svn commit: r285326 - head/sys/kern

2015-07-09 Thread Mateusz Guzik
Author: mjg Date: Thu Jul 9 16:32:58 2015 New Revision: 285326 URL: https://svnweb.freebsd.org/changeset/base/285326 Log: vfs: simplify error handling in namei The logic is reorganised so that there is one exit point prior to the lookup loop. This is an intermediate step to making audit

svn commit: r285340 - head/sys/dev/cxgb/ulp/iw_cxgb

2015-07-09 Thread Dimitry Andric
Author: dim Date: Thu Jul 9 22:13:23 2015 New Revision: 285340 URL: https://svnweb.freebsd.org/changeset/base/285340 Log: Fix swapped copyin(9) arguments in cxgb's iwch_arm_cq() function. Detected by clang 3.7.0 with the warning: sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c:309:18:

svn commit: r285339 - in head: cddl/lib/libnvpair sys/cddl/contrib/opensolaris/common/nvpair sys/conf sys/modules/zfs

2015-07-09 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Jul 9 21:53:40 2015 New Revision: 285339 URL: https://svnweb.freebsd.org/changeset/base/285339 Log: Rename zfs nvpair files to not colidate with our nvlist. PR: 201356 Approved by: pjd (mentor) Added:

Re: svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-09 Thread Mariusz Zaborski
On Thu, Jul 09, 2015 at 01:29:54PM -0700, Peter Wemm wrote: You have broken kernel builds for the freebsd.org cluster. By renaming subr_nvlist.o to nvlist.o you now cause: Please check if everything is working after 285339. Sorry for troubles. Cheers, Mariusz pgpDXunp6UyMR.pgp

Re: svn commit: r285336 - in head/sys: netipsec opencrypto

2015-07-09 Thread Peter Wemm
On Thursday, July 09, 2015 06:16:36 PM George V. Neville-Neil wrote: Author: gnn Date: Thu Jul 9 18:16:35 2015 New Revision: 285336 URL: https://svnweb.freebsd.org/changeset/base/285336 Log: Add support for AES modes to IPSec. These modes work both in software only mode and with

Re: svn commit: r285282 - head/sys/vm

2015-07-09 Thread Alan Cox
On Jul 8, 2015, at 1:29 PM, hiren panchasara hi...@freebsd.org wrote: On 07/08/15 at 05:46P, Alan Cox wrote: Author: alc Date: Wed Jul 8 17:45:59 2015 New Revision: 285282 URL: https://svnweb.freebsd.org/changeset/base/285282 Log: The intention of r254304 was to scan the active queue