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

2012-11-27 Thread Adrian Chadd
Author: adrian Date: Tue Nov 27 08:40:48 2012 New Revision: 243606 URL: http://svnweb.freebsd.org/changeset/base/243606 Log: Correct some debugging output. Modified: head/sys/dev/ath/if_ath_tdma.c Modified: head/sys/dev/ath/if_ath_tdma.c ==

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

2012-11-27 Thread Andriy Gapon
on 27/11/2012 08:07 David Xu said the following: > Author: davidxu > Date: Tue Nov 27 06:07:58 2012 > New Revision: 243599 > URL: http://svnweb.freebsd.org/changeset/base/243599 > > Log: > Take first active vnode correctly. > > Reviewed by:kib > MFC after: 3 days > > Modified: >

svn commit: r243607 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:11:54 2012 New Revision: 243607 URL: http://svnweb.freebsd.org/changeset/base/243607 Log: Style fixes (mostly whitespaces). Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c ==

svn commit: r243608 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:15:58 2012 New Revision: 243608 URL: http://svnweb.freebsd.org/changeset/base/243608 Log: More style fixes. Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c == ---

svn commit: r243609 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:16:48 2012 New Revision: 243609 URL: http://svnweb.freebsd.org/changeset/base/243609 Log: Allow to modify kern.sugid_coredump and kern.corefile from loader.conf. Obtained from:WHEEL Systems Modified: head/sys/kern/kern_sig.c Modified: head/sys/ker

svn commit: r243610 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:22:40 2012 New Revision: 243610 URL: http://svnweb.freebsd.org/changeset/base/243610 Log: Allow to use kill(2) in capability mode, but process can send a signal only to himself. For example abort(3) at first tries to do kill(getpid(), SIGABRT) which was failin

svn commit: r243611 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:25:03 2012 New Revision: 243611 URL: http://svnweb.freebsd.org/changeset/base/243611 Log: Regenerate after r243610. Modified: head/sys/kern/init_sysent.c Modified: head/sys/kern/init_sysent.c

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

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:32:35 2012 New Revision: 243612 URL: http://svnweb.freebsd.org/changeset/base/243612 Log: - Add NOCAPCHECK flag to namei that allows lookup to work even if the process is in capability mode. - Add VN_OPEN_NOCAPCHECK flag for vn_open_cred() to will ne convert

svn commit: r243613 - head/sys/kern

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 10:38:11 2012 New Revision: 243613 URL: http://svnweb.freebsd.org/changeset/base/243613 Log: Add kern.capmode_coredump sysctl/tunable to allow processes in capability mode to dump core. Reviewed by: rwatson Obtained from:WHEEL Systems MFC after:

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

2012-11-27 Thread Adrian Chadd
Author: adrian Date: Tue Nov 27 11:30:39 2012 New Revision: 243614 URL: http://svnweb.freebsd.org/changeset/base/243614 Log: * Fix another culprit of my "committed from the wrong directory" nonsense; now this works for non-debug and debug builds. * Add a comment reminding me (or someone

svn commit: r243615 - head/sys/net

2012-11-27 Thread David Xu
Author: davidxu Date: Tue Nov 27 12:23:57 2012 New Revision: 243615 URL: http://svnweb.freebsd.org/changeset/base/243615 Log: Pass allocated unit number to make_dev, otherwise kernel panics later while cloning second tap. Reviewed by: kevlo,ed Modified: head/sys/net/if_tap.c Modified:

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

2012-11-27 Thread Attilio Rao
On Tue, Nov 27, 2012 at 6:07 AM, David Xu wrote: > Author: davidxu > Date: Tue Nov 27 06:07:58 2012 > New Revision: 243599 > URL: http://svnweb.freebsd.org/changeset/base/243599 > > Log: > Take first active vnode correctly. Thanks. I had send the exact same report to Kirk and Jeff one week ago,

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

2012-11-27 Thread David Xu
On 2012/11/27 21:52, Attilio Rao wrote: > On Tue, Nov 27, 2012 at 6:07 AM, David Xu wrote: >> Author: davidxu >> Date: Tue Nov 27 06:07:58 2012 >> New Revision: 243599 >> URL: http://svnweb.freebsd.org/changeset/base/243599 >> >> Log: >> Take first active vnode correctly. > Thanks. > I had send

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

2012-11-27 Thread Attilio Rao
On Tue, Nov 27, 2012 at 2:35 PM, David Xu wrote: > On 2012/11/27 21:52, Attilio Rao wrote: >> On Tue, Nov 27, 2012 at 6:07 AM, David Xu wrote: >>> Author: davidxu >>> Date: Tue Nov 27 06:07:58 2012 >>> New Revision: 243599 >>> URL: http://svnweb.freebsd.org/changeset/base/243599 >>> >>> Log: >>>

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

2012-11-27 Thread Konstantin Belousov
On Tue, Nov 27, 2012 at 11:59:05AM +0200, Andriy Gapon wrote: > on 27/11/2012 08:07 David Xu said the following: > > Author: davidxu > > Date: Tue Nov 27 06:07:58 2012 > > New Revision: 243599 > > URL: http://svnweb.freebsd.org/changeset/base/243599 > > > > Log: > > Take first active vnode corre

svn commit: r243617 - head/usr.bin/passwd

2012-11-27 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Nov 27 16:23:12 2012 New Revision: 243617 URL: http://svnweb.freebsd.org/changeset/base/243617 Log: Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined. MFC after:2 weeks Modified: head/usr.bin/passwd/Makefile Modified: head/usr.bin/passwd/

svn commit: r243621 - head/sys/netinet

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 19:07:28 2012 New Revision: 243621 URL: http://svnweb.freebsd.org/changeset/base/243621 Log: Add DELACK to list of timers. MFC after:1 week Modified: head/sys/netinet/tcp_timer.h Modified: head/sys/netinet/tcp_timer.h ==

svn commit: r243622 - head/sys/dev/iwn

2012-11-27 Thread Bernhard Schmidt
Author: bschmidt Date: Tue Nov 27 19:09:36 2012 New Revision: 243622 URL: http://svnweb.freebsd.org/changeset/base/243622 Log: fix a panic resulting from a stray '&' MFC after:1 week Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c

svn commit: r243624 - in head/sys: dev/bce dev/bxe net netinet sys

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 19:31:49 2012 New Revision: 243624 URL: http://svnweb.freebsd.org/changeset/base/243624 Log: Remove unused and unnecessary CSUM_IP_FRAGS checksumming capability. Checksumming the IP header of fragments is no different from doing normal IP headers. Discusse

svn commit: r243627 - head/sys/kern

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 20:04:52 2012 New Revision: 243627 URL: http://svnweb.freebsd.org/changeset/base/243627 Log: Fix a race on listen socket teardown where while draining the accept queues a new socket/connection may be added to the queue due to a race on the ACCEPT_LOCK. The

svn commit: r243628 - head/sys/sys

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 20:16:01 2012 New Revision: 243628 URL: http://svnweb.freebsd.org/changeset/base/243628 Log: Update comment to prefer M_NOWAIT over M_DONTWAIT and M_WAITOK over M_WAIT. MFC after:1 week Modified: head/sys/sys/mbuf.h Modified: head/sys/sys/mbuf.h

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

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 21:19:58 2012 New Revision: 243631 URL: http://svnweb.freebsd.org/changeset/base/243631 Log: Base the mbuf related limits on the available physical memory or kernel memory, whichever is lower. The overall mbuf related memory limit must be set so that mbufs (an

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

2012-11-27 Thread Bruce Evans
On Tue, 27 Nov 2012, Pawel Jakub Dawidek wrote: Log: Add kern.capmode_coredump sysctl/tunable to allow processes in capability mode to dump core. You missed fixing some style bugs before touching this. Modified: head/sys/kern/kern_sig.c =

svn commit: r243634 - head/usr.sbin/bsdconfig/networking/share

2012-11-27 Thread Devin Teske
Author: dteske Date: Tue Nov 27 22:05:01 2012 New Revision: 243634 URL: http://svnweb.freebsd.org/changeset/base/243634 Log: Comments. Approved by: adrian (co-mentor) (implicit) Modified: head/usr.sbin/bsdconfig/networking/share/ipaddr.subr Modified: head/usr.sbin/bsdconfig/networking/

svn commit: r243635 - head/usr.sbin/bsdconfig/share

2012-11-27 Thread Devin Teske
Author: dteske Date: Tue Nov 27 22:11:53 2012 New Revision: 243635 URL: http://svnweb.freebsd.org/changeset/base/243635 Log: Change self-initialization to occur when loaded versus the previous behavior which was to self-initialize during the first function-call. This didn't work so well beca

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

2012-11-27 Thread Andre Oppermann
On 27.11.2012 04:04, Alfred Perlstein wrote: Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize structure based on max sockets. While here, also make the code that enforces power-of-two mor

svn commit: r243636 - head/usr.sbin/bsdconfig/share

2012-11-27 Thread Devin Teske
Author: dteske Date: Tue Nov 27 22:14:22 2012 New Revision: 243636 URL: http://svnweb.freebsd.org/changeset/base/243636 Log: Allow setting of NULL titles with f_dialog_[back]title(). Approved by: adrian (co-mentor) (implicit) Modified: head/usr.sbin/bsdconfig/share/dialog.subr Modified

svn commit: r243637 - head/usr.sbin/nfsd

2012-11-27 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 27 22:34:46 2012 New Revision: 243637 URL: http://svnweb.freebsd.org/changeset/base/243637 Log: Autoconfigure nfsd threads based on ncpu. Rick Macklem and I discussed the default number of nfsd threads and concluded that it is too low to perform adiquitely on

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

2012-11-27 Thread Peter Wemm
Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. On Tue, Nov 27, 2012 at 12:04 PM, Andre Oppermann wrote: > Author: andre > Date: Tue Nov 27 20:04:52 2012 > New Revision: 243627 > UR

svn commit: r243638 - head/sys/kern

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 22:35:48 2012 New Revision: 243638 URL: http://svnweb.freebsd.org/changeset/base/243638 Log: Fix r243627 by testing against the head socket instead of the socket just created. MFC after:1 week X-MFC-with: r243627 Modified: head/sys/kern/uipc_socke

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

2012-11-27 Thread Andre Oppermann
On 27.11.2012 23:35, Peter Wemm wrote: Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. I just found out and fixed it. Sorry for the breakage. -- Andre On Tue, Nov 27, 2012 at

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

2012-11-27 Thread Robert Watson
On Tue, 27 Nov 2012, Andre Oppermann wrote: On 27.11.2012 23:35, Peter Wemm wrote: Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. I just found out and fixed it. Sorry for th

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

2012-11-27 Thread Andre Oppermann
On 27.11.2012 23:48, Robert Watson wrote: On Tue, 27 Nov 2012, Andre Oppermann wrote: On 27.11.2012 23:35, Peter Wemm wrote: Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. I

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

2012-11-27 Thread Robert N. M. Watson
On 27 Nov 2012, at 22:54, Andre Oppermann wrote: Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. >>> >>> I just found out and fixed it. Sorry for the breakage. >>

svn commit: r243639 - head/sys/kern

2012-11-27 Thread Andre Oppermann
Author: andre Date: Tue Nov 27 23:16:56 2012 New Revision: 243639 URL: http://svnweb.freebsd.org/changeset/base/243639 Log: Complete r243631 by applying the remainder of kern_mbuf.c that got lost while merging into the commit tree. MFC after:1 month X-MFC-with: r243631 Modified:

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

2012-11-27 Thread Andre Oppermann
On 28.11.2012 00:16, Andre Oppermann wrote: Author: andre Date: Tue Nov 27 23:16:56 2012 New Revision: 243639 URL: http://svnweb.freebsd.org/changeset/base/243639 Log: Complete r243631 by applying the remainder of kern_mbuf.c that got lost while merging into the commit tree. Please note

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

2012-11-27 Thread Andre Oppermann
On 28.11.2012 00:05, Robert N. M. Watson wrote: On 27 Nov 2012, at 22:54, Andre Oppermann wrote: Andre.. this breaks incoming connections. TCP is immediately reset and never even gets to the listener process. You need to back out of fix this urgently please. I just found out and fixed it.

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

2012-11-27 Thread Robert N. M. Watson
On 27 Nov 2012, at 23:29, Andre Oppermann wrote: >> Andre.. this breaks incoming connections. TCP is immediately reset and >> never even gets to the >> listener process. You need to back out of fix this urgently please. > > I just found out and fixed it. Sorry for the bre

svn commit: r243641 - head/sys/fs/ext2fs

2012-11-27 Thread Pedro F. Giffuni
Author: pfg Date: Wed Nov 28 00:36:40 2012 New Revision: 243641 URL: http://svnweb.freebsd.org/changeset/base/243641 Log: Partially bring r242520 to ext2fs. When a file is first being written, the dynamic block reallocation (implemented by ext2_reallocblks) relocates the file's blocks s

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

2012-11-27 Thread Adrian Chadd
Author: adrian Date: Wed Nov 28 01:55:22 2012 New Revision: 243642 URL: http://svnweb.freebsd.org/changeset/base/243642 Log: Pull out the debugging code from the critical path and make sure it happens _after_ all of the time delta calculations. Modified: head/sys/dev/ath/if_ath_tdma.c Modi

svn commit: r243644 - head/usr.sbin/nfsd

2012-11-27 Thread Alfred Perlstein
Author: alfred Date: Wed Nov 28 02:23:59 2012 New Revision: 243644 URL: http://svnweb.freebsd.org/changeset/base/243644 Log: Fix typo. Pointed out by: marck Modified: head/usr.sbin/nfsd/nfsd.c Modified: head/usr.sbin/nfsd/nfsd.c ==

svn commit: r243645 - head/usr.sbin/nfsd

2012-11-27 Thread Alfred Perlstein
Author: alfred Date: Wed Nov 28 02:47:31 2012 New Revision: 243645 URL: http://svnweb.freebsd.org/changeset/base/243645 Log: Don't allow minthreads > maxthreads. Suggested by: rmacklem Modified: head/usr.sbin/nfsd/nfsd.c Modified: head/usr.sbin/nfsd/nfsd.c ==

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

2012-11-27 Thread Alfred Perlstein
On 11/27/12 2:12 PM, Andre Oppermann wrote: On 27.11.2012 04:04, Alfred Perlstein wrote: Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize structure based on max sockets. While here, also

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

2012-11-27 Thread Adrian Chadd
Author: adrian Date: Wed Nov 28 06:55:34 2012 New Revision: 243647 URL: http://svnweb.freebsd.org/changeset/base/243647 Log: Until I figure out what to do here, remind myself that this needs some rate control 'adjustment' when NOACK is set. Modified: head/sys/dev/ath/if_ath_tx.c Modified:

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

2012-11-27 Thread Adrian Chadd
Author: adrian Date: Wed Nov 28 07:12:08 2012 New Revision: 243648 URL: http://svnweb.freebsd.org/changeset/base/243648 Log: Call if_free() with the correct vnet context if and only if ifp_vnet isn't NULL. If the attach fails prematurely and there's no if_vnet context, calling CURVNET_S