svn commit: r238092 - in head/sys: net netinet netinet6

2012-07-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Jul 4 07:37:53 2012 New Revision: 238092 URL: http://svn.freebsd.org/changeset/base/238092 Log: When ip_output()/ip6_output() is supplied a struct route *ro argument, it skips FLOWTABLE lookup. However, the non-NULL ro has dual meaning here: it may be supplied to

svn commit: r238093 - head/share/man/man9

2012-07-04 Thread Gleb Smirnoff
Author: glebius Date: Wed Jul 4 07:42:12 2012 New Revision: 238093 URL: http://svn.freebsd.org/changeset/base/238093 Log: Document RO_RTFREE() macro. Modified: head/share/man/man9/rtalloc.9 Modified: head/share/man/man9/rtalloc.9

svn commit: r238094 - head/usr.sbin/nscd

2012-07-04 Thread Stefan Esser
Author: se Date: Wed Jul 4 09:02:12 2012 New Revision: 238094 URL: http://svn.freebsd.org/changeset/base/238094 Log: Add the possibility to specify a threshold for the number of negative cache results required to have the cache return lookup failure. A new configuration parameter is

svn commit: r238095 - head/usr.sbin/nscd

2012-07-04 Thread Joel Dahl
Author: joel (doc committer) Date: Wed Jul 4 10:17:02 2012 New Revision: 238095 URL: http://svn.freebsd.org/changeset/base/238095 Log: Remove end of line whitespace. Modified: head/usr.sbin/nscd/nscd.conf.5 Modified: head/usr.sbin/nscd/nscd.conf.5

svn commit: r238102 - head/etc/rc.d

2012-07-04 Thread Dag-Erling Smorgrav
Author: des Date: Wed Jul 4 13:37:44 2012 New Revision: 238102 URL: http://svn.freebsd.org/changeset/base/238102 Log: Name jails automatically. MFC after:1 week Modified: head/etc/rc.d/jail Modified: head/etc/rc.d/jail

svn commit: r238108 - head/usr.bin/sort

2012-07-04 Thread Gabor Kovesdan
Author: gabor Date: Wed Jul 4 16:25:11 2012 New Revision: 238108 URL: http://svn.freebsd.org/changeset/base/238108 Log: - Change --nthreads parameter to --parallel for GNU compatibility - Change default sort method to mergesort, which has a better worst case performance than qsort

svn commit: r238109 - head/sys/amd64/amd64

2012-07-04 Thread John Baldwin
Author: jhb Date: Wed Jul 4 16:47:39 2012 New Revision: 238109 URL: http://svn.freebsd.org/changeset/base/238109 Log: Decode the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', 'xsetbv', and 'rdtscp' instructions. MFC after:1 month Modified: head/sys/amd64/amd64/db_disasm.c Modified:

svn commit: r238110 - head/tools/regression/pjdfstest

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:31:53 2012 New Revision: 238110 URL: http://svn.freebsd.org/changeset/base/238110 Log: Recognize 'none' or '0' as no flags. Modified: head/tools/regression/pjdfstest/pjdfstest.c Modified: head/tools/regression/pjdfstest/pjdfstest.c

svn commit: r238111 - in head: include lib/libc/stdio

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:35:07 2012 New Revision: 238111 URL: http://svn.freebsd.org/changeset/base/238111 Log: The register_printf_render_std() function expects regular string. Change argument type from 'const unsigned char *' to 'const char *'. MFC after:2 weeks Modified:

svn commit: r238112 - head/cddl/compat/opensolaris/misc

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:36:26 2012 New Revision: 238112 URL: http://svn.freebsd.org/changeset/base/238112 Log: Fix an obvious typo. MFC after:3 days Modified: head/cddl/compat/opensolaris/misc/deviceid.c Modified: head/cddl/compat/opensolaris/misc/deviceid.c

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:39:29 2012 New Revision: 238113 URL: http://svn.freebsd.org/changeset/base/238113 Log: vdev_io_done stage is not used for ioctls. MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio_impl.h Modified:

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:43:25 2012 New Revision: 238114 URL: http://svn.freebsd.org/changeset/base/238114 Log: Correct a comment and correct style of a flag check. MFC after:3 days Modified: head/sys/geom/eli/g_eli_key.c Modified: head/sys/geom/eli/g_eli_key.c

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:44:39 2012 New Revision: 238115 URL: http://svn.freebsd.org/changeset/base/238115 Log: Correct comment. MFC after:3 days Modified: head/sys/geom/eli/g_eli_key_cache.c Modified: head/sys/geom/eli/g_eli_key_cache.c

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

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:54:17 2012 New Revision: 238116 URL: http://svn.freebsd.org/changeset/base/238116 Log: Use correct part of the Master-Key for generating encryption keys. Before this change the IV-Key was used to generate encryption keys, which was incorrect, but safe - for

svn commit: r238117 - head/sbin/geom/class/eli

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 17:59:26 2012 New Revision: 238117 URL: http://svn.freebsd.org/changeset/base/238117 Log: Improve description of various key used by GELI. PR: docs/169089 Submitted by: John W. O'Brien j...@saltant.com MFC after:3 days Modified:

svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 19:51:25 2012 New Revision: 238118 URL: http://svn.freebsd.org/changeset/base/238118 Log: Prefer sysctl to open/read/close for obtaining random data. This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three.

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Konstantin Belousov
On Wed, Jul 04, 2012 at 07:51:25PM +, Pawel Jakub Dawidek wrote: Author: pjd Date: Wed Jul 4 19:51:25 2012 New Revision: 238118 URL: http://svn.freebsd.org/changeset/base/238118 Log: Prefer sysctl to open/read/close for obtaining random data. This method is more sandbox-friendly

svn commit: r238119 - head/sys/geom/gate

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 20:16:28 2012 New Revision: 238119 URL: http://svn.freebsd.org/changeset/base/238119 Log: Extend GEOM Gate class to handle read I/O requests directly within the kernel. This will allow HAST to read directly from the local component without even communicating

svn commit: r238120 - head/sbin/hastd

2012-07-04 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 4 20:20:48 2012 New Revision: 238120 URL: http://svn.freebsd.org/changeset/base/238120 Log: Make use of GEOM Gate direct reads feature. This allows HAST to serve reads with native speed of the underlying provider. There are three situations when direct reads are

svn commit: r238121 - head/sys/netinet

2012-07-04 Thread Michael Tuexen
Author: tuexen Date: Wed Jul 4 20:29:16 2012 New Revision: 238121 URL: http://svn.freebsd.org/changeset/base/238121 Log: Use CSUM_SCTP_IPV6 for IPv6. MFC after: 3 days Modified: head/sys/netinet/sctp_output.c Modified: head/sys/netinet/sctp_output.c

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Andrey Chernov
On Wed, Jul 04, 2012 at 11:02:20PM +0300, Konstantin Belousov wrote: On Wed, Jul 04, 2012 at 07:51:25PM +, Pawel Jakub Dawidek wrote: Author: pjd Date: Wed Jul 4 19:51:25 2012 New Revision: 238118 URL: http://svn.freebsd.org/changeset/base/238118 Log: Prefer sysctl to

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread David Chisnall
On 4 Jul 2012, at 21:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes while sysctls (or old way initialization) always exists. From the perspective of Capsicum sandboxes, a device node is better than a sysctl. The kernel must hard-code policy about which sysctls

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Attilio Rao
2012/7/4 David Chisnall thera...@freebsd.org: On 4 Jul 2012, at 21:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes while sysctls (or old way initialization) always exists. From the perspective of Capsicum sandboxes, a device node is better than a sysctl. The

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Doug Barton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/04/2012 13:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes That would be a pretty serious configuration error. - -- This .signature sanitized for your protection -BEGIN PGP SIGNATURE- Version:

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Konstantin Belousov
On Wed, Jul 04, 2012 at 09:45:54PM +0100, Attilio Rao wrote: 2012/7/4 David Chisnall thera...@freebsd.org: On 4 Jul 2012, at 21:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes while sysctls (or old way initialization) always exists. From the perspective of

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Andrey Chernov
On Wed, Jul 04, 2012 at 01:49:01PM -0700, Doug Barton wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 07/04/2012 13:32, Andrey Chernov wrote: 1) /dev/urandom may not exist in jails/sandboxes That would be a pretty serious configuration error. It may be true, but old POLA is

svn commit: r238122 - head/sys/netinet

2012-07-04 Thread Michael Tuexen
Author: tuexen Date: Wed Jul 4 20:59:30 2012 New Revision: 238122 URL: http://svn.freebsd.org/changeset/base/238122 Log: Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT. MFC after: 3 days Modified: head/sys/netinet/sctp_output.c Modified: head/sys/netinet/sctp_output.c

Re: svn commit: r238118 - head/lib/libc/gen

2012-07-04 Thread Colin Percival
On 07/04/12 13:45, Attilio Rao wrote: I recall that at some point /dev/random was introducing some scalability penalty on php [...] ... thus reinforcing the stereotype that PHP Does Stuff Wrong. Userland processes should get entropy from the kernel *once* at launch time and place it into an

svn commit: r238123 - in head/contrib/binutils: gas/config opcodes

2012-07-04 Thread John Baldwin
Author: jhb Date: Wed Jul 4 22:12:10 2012 New Revision: 238123 URL: http://svn.freebsd.org/changeset/base/238123 Log: Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv' instructions. I reimplemented this from scratch based on the Intel manuals and the existing

svn commit: r238124 - head/sys/amd64/amd64

2012-07-04 Thread Alan Cox
Author: alc Date: Thu Jul 5 00:08:47 2012 New Revision: 238124 URL: http://svn.freebsd.org/changeset/base/238124 Log: Correct an error in r237513. The call to reserve_pv_entries() must come before pmap_demote_pde() updates the PDE. Otherwise, pmap_pv_demote_pde() can crash. Crash

svn commit: r238125 - head/cddl/contrib/dtracetoolkit

2012-07-04 Thread Ed Maste
Author: emaste Date: Thu Jul 5 00:52:23 2012 New Revision: 238125 URL: http://svn.freebsd.org/changeset/base/238125 Log: Restore r211786 by rpaulo: Port dtruss to FreeBSD. Sponsored by: The FreeBSD Foundation It appears the change was reverted by r235380. Modified: