svn commit: r244385 - head/sys/kern

2012-12-17 Thread Andrey Zonov
Author: zont Date: Tue Dec 18 07:36:45 2012 New Revision: 244385 URL: http://svnweb.freebsd.org/changeset/base/244385 Log: - Add sysctl to allow unprivileged users to call mlock(2)-family system calls and turn it on. - Do not allow to call them inside jail. [1] Pointed out by: t

svn commit: r244384 - head/sys/vm

2012-12-17 Thread Andrey Zonov
Author: zont Date: Tue Dec 18 07:35:01 2012 New Revision: 244384 URL: http://svnweb.freebsd.org/changeset/base/244384 Log: - Fix locked memory accounting for maps with MAP_WIREFUTURE flag. - Add sysctl vm.old_mlock which may turn such accounting off. Reviewed by: avg, trasz Approved by

svn commit: r244383 - head/etc

2012-12-17 Thread Andrey Zonov
Author: zont Date: Tue Dec 18 07:27:50 2012 New Revision: 244383 URL: http://svnweb.freebsd.org/changeset/base/244383 Log: - Set memorylocked limit to 64Kb for default login class. This prevents unprivileged users to lock too much memory. - Set memorylocked limit to 64Mb for daemon login c

svn commit: r244382 - in head: gnu/lib/libgcc lib/libcompiler_rt

2012-12-17 Thread Andrew Turner
Author: andrew Date: Tue Dec 18 07:26:55 2012 New Revision: 244382 URL: http://svnweb.freebsd.org/changeset/base/244382 Log: Get libcompiler-rt and libgcc building on ARM with clang. * Don't provide clear_cache or the __sync_* functions on ARM with clang as they are provided by clang as

svn commit: r244378 - head/sys/net

2012-12-17 Thread Kevin Lo
Author: kevlo Date: Tue Dec 18 06:37:23 2012 New Revision: 244378 URL: http://svnweb.freebsd.org/changeset/base/244378 Log: Fix typo in comment. Reviewed by: thompsa Modified: head/sys/net/if_bridge.c Modified: head/sys/net/if_bridge.c ==

Re: svn commit: r244154 - head/bin/ps

2012-12-17 Thread Konstantin Belousov
On Mon, Dec 17, 2012 at 02:18:35PM +0100, Pawel Jakub Dawidek wrote: > On Sat, Dec 15, 2012 at 03:13:00AM +0200, Konstantin Belousov wrote: > > On Fri, Dec 14, 2012 at 10:42:47PM +0100, Pawel Jakub Dawidek wrote: > > > In that case I'd prefer to make existing kern.pid_max sysctl read-only > > > and

Re: svn commit: r243631 - in head/sys: kern sys

2012-12-17 Thread Oleksandr Tymoshenko
On 2012-12-08, at 1:21 PM, Alan Cox wrote: > On 12/08/2012 14:32, Andre Oppermann wrote: >>> .. skipped .. >> >> The trouble seems to come from NSFBUFS which is (512 + maxusers * 16) >> resulting in a kernel map of (512 + 400 * 16) * PAGE_SIZE = 27MB. This >> seem to be pushing it with the

svn commit: r244377 - head/gnu/usr.bin/binutils/as

2012-12-17 Thread Andrey A. Chernov
Author: ache Date: Tue Dec 18 04:44:36 2012 New Revision: 244377 URL: http://svnweb.freebsd.org/changeset/base/244377 Log: More correct version of prev. fix. Modified: head/gnu/usr.bin/binutils/as/Makefile Modified: head/gnu/usr.bin/binutils/as/Makefile ==

svn commit: r244376 - in stable/9/sys: kern sys

2012-12-17 Thread Konstantin Belousov
Author: kib Date: Tue Dec 18 04:38:34 2012 New Revision: 244376 URL: http://svnweb.freebsd.org/changeset/base/244376 Log: MFC r243835: The vnode_free_list_mtx is required unconditionally when iterating over the active list. MFC r244095: Do not yield while owning a mutex, by stopping a

svn commit: r244375 - stable/9/sys/ufs/ufs

2012-12-17 Thread Konstantin Belousov
Author: kib Date: Tue Dec 18 04:27:33 2012 New Revision: 244375 URL: http://svnweb.freebsd.org/changeset/base/244375 Log: MFC r244239: Fix a typo, resulting in the NULL pointer dereference. Modified: stable/9/sys/ufs/ufs/ufs_quota.c Directory Properties: stable/9/sys/ (props changed) M

svn commit: r244374 - stable/9/sys/sys

2012-12-17 Thread Konstantin Belousov
Author: kib Date: Tue Dec 18 04:23:44 2012 New Revision: 244374 URL: http://svnweb.freebsd.org/changeset/base/244374 Log: MFC r244238: Line up the continuation backslashes. Modified: stable/9/sys/sys/mount.h Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/sys

svn commit: r244373 - stable/9/sys/kern

2012-12-17 Thread Konstantin Belousov
Author: kib Date: Tue Dec 18 04:18:42 2012 New Revision: 244373 URL: http://svnweb.freebsd.org/changeset/base/244373 Log: MFC r243869: Fix a race between kern_setitimer() and realitexpire(), by using the process mutex to interlock the callout start. Modified: stable/9/sys/kern/init_main.c

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

2012-12-17 Thread Garrett Cooper
This broke !inet6 kernels. Sent from my iPhone On Dec 17, 2012, at 12:55 PM, "Andrey V. Elsukov" wrote: > Author: ae > Date: Mon Dec 17 20:55:33 2012 > New Revision: 244365 > URL: http://svnweb.freebsd.org/changeset/base/244365 > > Log: > Since we use different flags to detect tcp forwarding,

svn commit: r244370 - head/sys/kgssapi

2012-12-17 Thread Rick Macklem
Author: rmacklem Date: Tue Dec 18 00:25:48 2012 New Revision: 244370 URL: http://svnweb.freebsd.org/changeset/base/244370 Log: Piete.Brooks at cl.cam.ac.uk reported via email a crash which was caused by use of an invalid kgss_gssd_handle during an upcall to the gssd daemon when it has exited

svn commit: r244369 - head/sys/dev/arcmsr

2012-12-17 Thread Jim Harris
Author: jimharris Date: Tue Dec 18 00:00:07 2012 New Revision: 244369 URL: http://svnweb.freebsd.org/changeset/base/244369 Log: Use CAM_DEV_NOT_THERE instead of CAM_SEL_TIMEOUT to report nonexistent LUNs for the virtual processor device. This removes lots of CAM warnings, and follows simila

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

2012-12-17 Thread Navdeep Parhar
On 12/17/12 14:02, Adrian Chadd wrote: > On 17 December 2012 13:47, Andriy Gapon wrote: > >> But you see, the following is still illogical _to me_. > > And this is the core of the problem. > > A lot of developers are interpreting the KASSERT() conditions as an > invariant condition that, if in

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

2012-12-17 Thread Adrian Chadd
On 17 December 2012 13:47, Andriy Gapon wrote: > But you see, the following is still illogical _to me_. And this is the core of the problem. A lot of developers are interpreting the KASSERT() conditions as an invariant condition that, if in any way enabled, should be completely trusted, believe

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

2012-12-17 Thread Andriy Gapon
on 18/12/2012 00:02 Adrian Chadd said the following: > Why are they there, if we just ship production releases with > INVARIANTS disabled? Because there is an axis orthogonal to asserting correctness - performance. -- Andriy Gapon ___ svn-src-all@freeb

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

2012-12-17 Thread Andriy Gapon
on 17/12/2012 23:21 Alfred Perlstein said the following: > This is hard to explain to a customer. > > customer: "So we ran your debug image and got you a panic, here is the > information. So can you tell us what is the problem?" > alfred: "well that is due to XXX other thing that is broken, thank

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

2012-12-17 Thread Alfred Perlstein
On 12/17/12 11:39 AM, John Baldwin wrote: On Saturday, December 15, 2012 1:04:17 am Bruce Evans wrote: On Fri, 14 Dec 2012, Alfred Perlstein wrote: On 12/14/12 4:12 PM, Robert Watson wrote: On Fri, 14 Dec 2012, John Baldwin wrote: On Thursday, December 13, 2012 4:02:15 am Gleb Smirnoff wrot

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

2012-12-17 Thread John Baldwin
On Saturday, December 15, 2012 1:04:17 am Bruce Evans wrote: > On Fri, 14 Dec 2012, Alfred Perlstein wrote: > > > On 12/14/12 4:12 PM, Robert Watson wrote: > >> On Fri, 14 Dec 2012, John Baldwin wrote: > >> > >>> On Thursday, December 13, 2012 4:02:15 am Gleb Smirnoff wrote: > On Wed, Dec 12

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

2012-12-17 Thread John Baldwin
On Friday, December 14, 2012 3:24:44 pm Alfred Perlstein wrote: > On 12/14/12 8:49 AM, John Baldwin wrote: > > On Thursday, December 13, 2012 4:02:15 am Gleb Smirnoff wrote: > >> On Wed, Dec 12, 2012 at 04:53:48PM -0800, Alfred Perlstein wrote: > >> A> The problem again is that not all the KASSERTS

svn commit: r244366 - head/share/mk

2012-12-17 Thread Ed Maste
Author: emaste Date: Mon Dec 17 21:09:44 2012 New Revision: 244366 URL: http://svnweb.freebsd.org/changeset/base/244366 Log: Hide OBJCOPY and others in POSIX mode Submitted by: Garrett Cooper Modified: head/share/mk/sys.mk Modified: head/share/mk/sys.mk =

svn commit: r244365 - head/sys/netinet

2012-12-17 Thread Andrey V. Elsukov
Author: ae Date: Mon Dec 17 20:55:33 2012 New Revision: 244365 URL: http://svnweb.freebsd.org/changeset/base/244365 Log: Since we use different flags to detect tcp forwarding, and we share the same code for IPv4 and IPv6 in tcp_input, we should check both M_IP_NEXTHOP and M_IP6_NEXTHOP flags

svn commit: r244362 - head/gnu/usr.bin/binutils/as

2012-12-17 Thread Andrey A. Chernov
Author: ache Date: Mon Dec 17 19:17:10 2012 New Revision: 244362 URL: http://svnweb.freebsd.org/changeset/base/244362 Log: Fix: line 11: Malformed conditional (${TARGET} == "arm" || ${TARGET_ARCH} == "powerpc64") Modified: head/gnu/usr.bin/binutils/as/Makefile Modified: head/gnu/usr.bin/

Re: svn commit: r244236 - head/share/mk

2012-12-17 Thread Ed Maste
On 14 December 2012 19:13, Garrett Cooper wrote: > On Fri, Dec 14, 2012 at 4:03 PM, Ed Maste wrote: >> Author: emaste >> Date: Sat Dec 15 00:03:35 2012 >> New Revision: 244236 >> URL: http://svnweb.freebsd.org/changeset/base/244236 > > ... > >> Modified: head/share/mk/sys.mk >> ==

svn commit: r244360 - head/sys/netinet6

2012-12-17 Thread Andrey V. Elsukov
Author: ae Date: Mon Dec 17 14:36:56 2012 New Revision: 244360 URL: http://svnweb.freebsd.org/changeset/base/244360 Log: Use M_PROTO7 flag for M_IP6_NEXTHOP, because M_PROTO2 was used for M_AUTHIPHDR. Pointy hat to:ae Reported by: Vadim Goncharov MFC after:3 days Modifie

Re: svn commit: r244154 - head/bin/ps

2012-12-17 Thread Pawel Jakub Dawidek
On Sat, Dec 15, 2012 at 03:13:00AM +0200, Konstantin Belousov wrote: > On Fri, Dec 14, 2012 at 10:42:47PM +0100, Pawel Jakub Dawidek wrote: > > In that case I'd prefer to make existing kern.pid_max sysctl read-only > > and make it loader tunable. I don't expect there are many users of this > > sysc

svn commit: r244359 - stable/9/lib/libc/gen

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 13:03:13 2012 New Revision: 244359 URL: http://svnweb.freebsd.org/changeset/base/244359 Log: MFC r239151: ftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFILE

svn commit: r244358 - head/lib/libc/nls

2012-12-17 Thread Eitan Adler
Author: eadler Date: Mon Dec 17 12:57:36 2012 New Revision: 244358 URL: http://svnweb.freebsd.org/changeset/base/244358 Log: Fix warning from valgrind when a failed entry is tested. PR: kern/173008 Submitted by: Zhihao Yuan Reviewed by: gabor Approved by: cperciva (implic

svn commit: r244357 - stable/9/share/man/man4

2012-12-17 Thread Eitan Adler
Author: eadler Date: Mon Dec 17 12:55:01 2012 New Revision: 244357 URL: http://svnweb.freebsd.org/changeset/base/244357 Log: MFC r241864: Remove MLINK for if_idt. Approved by: cperciva (implicit) Modified: stable/9/share/man/man4/Makefile Directory Properties: stable/9/share/m

Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl

2012-12-17 Thread Jilles Tjoelker
On Thu, Dec 13, 2012 at 11:32:48PM +, Xin LI wrote: > Author: delphij > Date: Thu Dec 13 23:32:47 2012 > New Revision: 244198 > URL: http://svnweb.freebsd.org/changeset/base/244198 > Log: > Teach sysctl(8) about parsing a file (while I'm there also give it > capability of parsing both = an

svn commit: r244356 - stable/9/lib/libc/gen

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 12:26:10 2012 New Revision: 244356 URL: http://svnweb.freebsd.org/changeset/base/244356 Log: MFC r239150: nftw(): Do not check the maxfds argument against OPEN_MAX. Apart from the fact that nothing should have OPEN_MAX as a limit (as opposed to RLIMIT_NOFIL

Re: svn commit: r244271 - head/usr.sbin/iostat

2012-12-17 Thread Robert Watson
On Sat, 15 Dec 2012, Adrian Chadd wrote: People may have scripts based on the current output. You should have introduced a new parameter which modifies the output behaviour in the way you wanted, rather than modifying the existing behaviour. Please consider reverting your change (which is

Re: svn commit: r244346 - head/usr.bin/sort

2012-12-17 Thread Konstantin Belousov
On Mon, Dec 17, 2012 at 09:36:43AM +, Gabor Kovesdan wrote: > Author: gabor > Date: Mon Dec 17 09:36:43 2012 > New Revision: 244346 > URL: http://svnweb.freebsd.org/changeset/base/244346 > > Log: > - Use unsigned int for values obtained with sysctlbyname(). This fixes > sparc64 performa

svn commit: r244354 - vendor/bind9/9.6-ESV-R8

2012-12-17 Thread Erwin Lansing
Author: erwin Date: Mon Dec 17 11:00:03 2012 New Revision: 244354 URL: http://svnweb.freebsd.org/changeset/base/244354 Log: Tag the Bind 9.6-ESV-R8 release. Approved by: delphij (mentor) Added: vendor/bind9/9.6-ESV-R8/ - copied from r244353, vendor/bind9/dist-9.6/ _

svn commit: r244353 - in vendor/bind9/dist-9.6: . bin/check bin/dig bin/dnssec bin/named bin/nsupdate doc doc/arm doc/misc lib lib/bind9 lib/bind9/include lib/bind9/include/bind9 lib/dns lib/dns/in...

2012-12-17 Thread Erwin Lansing
Author: erwin Date: Mon Dec 17 10:58:24 2012 New Revision: 244353 URL: http://svnweb.freebsd.org/changeset/base/244353 Log: Vendor import of Bind 9.6-ESV-R8 Approved by: delphij (mentor) Sponsored by: DK Hostmaster A/S Modified: vendor/bind9/dist-9.6/CHANGES vendor/bind9/dist-9.6/RE

svn commit: r244352 - head/sys/kern

2012-12-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Dec 17 10:51:22 2012 New Revision: 244352 URL: http://svnweb.freebsd.org/changeset/base/244352 Log: Minor style tweaks. Obtained from:WHEEL Systems Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ===

svn commit: r244351 - head/sys/kern

2012-12-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Dec 17 10:48:10 2012 New Revision: 244351 URL: http://svnweb.freebsd.org/changeset/base/244351 Log: Better variables naming in expand_name() to be more consistent with coredump(). Obtained from:WHEEL Systems Modified: head/sys/kern/kern_sig.c Modified: hea

svn commit: r244350 - head/lib/libc/iconv

2012-12-17 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 17 10:38:51 2012 New Revision: 244350 URL: http://svnweb.freebsd.org/changeset/base/244350 Log: libc/iconv: Fix race condition with setting FD_CLOEXEC. A fork/exec could happen between open and fcntl, leaking a file descriptor. Using O_CLOEXEC fixes this and a

svn commit: r244348 - head/share/i18n/csmapper

2012-12-17 Thread Gabor Kovesdan
Author: gabor Date: Mon Dec 17 10:12:12 2012 New Revision: 244348 URL: http://svnweb.freebsd.org/changeset/base/244348 Log: - Fix handling of .mps files PR: bin/161454 Submitted by: Yamaya Takashi Modified: head/share/i18n/csmapper/Makefile.part Modified: head/share/i18n/cs

svn commit: r244347 - head/sys/netpfil/pf

2012-12-17 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Dec 17 10:10:13 2012 New Revision: 244347 URL: http://svnweb.freebsd.org/changeset/base/244347 Log: Warn about reaching various PF limits. Reviewed by: glebius Obtained from:WHEEL Systems Modified: head/sys/netpfil/pf/pf.c head/sys/netpfil/pf/pf_norm.c

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

2012-12-17 Thread Gabor Kovesdan
Author: gabor Date: Mon Dec 17 09:36:43 2012 New Revision: 244346 URL: http://svnweb.freebsd.org/changeset/base/244346 Log: - Use unsigned int for values obtained with sysctlbyname(). This fixes sparc64 performance problems. Submitted by: Oleg Moskalenko Tested by:trasz Modifie