Re: svn commit: r244077 - head/sys/amd64/amd64

2012-12-10 Thread Robert Watson
On Mon, 10 Dec 2012, Konstantin Belousov wrote: Author: kib Date: Mon Dec 10 05:14:34 2012 New Revision: 244077 URL: http://svnweb.freebsd.org/changeset/base/244077 Log: Add amd64-specific ddb command "show pte". The command displays the hierarchy of the page table entries which map the spe

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

2012-12-10 Thread Alan Cox
On 12/09/2012 16:42, Andre Oppermann wrote: > On 09.12.2012 21:35, Alan Cox wrote: >> Andre, >> >> I believe that this change did not actually correct the overflow >> problem. See below for an explanation. >> >> On 11/29/2012 01:30, Andre Oppermann wrote: >>> Author: andre >>> Date: Thu Nov 29 07:

svn commit: r244080 - head/sys/kern

2012-12-10 Thread Andre Oppermann
Author: andre Date: Mon Dec 10 12:19:03 2012 New Revision: 244080 URL: http://svnweb.freebsd.org/changeset/base/244080 Log: Prevent long type overflow of realmem calculation on ILP32 by forcing calculation to be in quad_t space. Fix style issue with second parameter to qmin(). Reported

svn commit: r244082 - head/share/man/man4

2012-12-10 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 10 13:08:14 2012 New Revision: 244082 URL: http://svnweb.freebsd.org/changeset/base/244082 Log: NGM_NETFLOW_SHOW reports IPv6 flows as well. Submitted by: Dmitry Luhtionov Modified: head/share/man/man4/ng_netflow.4 Modified: head/share/man/man4/ng_netflow.

svn commit: r244089 - head/sys/boot/forth

2012-12-10 Thread Devin Teske
Author: dteske Date: Mon Dec 10 15:29:56 2012 New Revision: 244089 URL: http://svnweb.freebsd.org/changeset/base/244089 Log: Add support for comma-separated values (whitespace-separated still supported). PR: conf/121064 Submitted by: koitsu Reviewed by: jh Modified: head/s

svn commit: r244090 - head/sys/net

2012-12-10 Thread Guy Helmer
Author: ghelmer Date: Mon Dec 10 16:14:44 2012 New Revision: 244090 URL: http://svnweb.freebsd.org/changeset/base/244090 Log: Changes to resolve races in bpfread() and catchpacket() that, at worst, cause kernel panics. Add a flag to the bpf descriptor to indicate whether the hold buffer

svn commit: r244091 - head/lib/libc/locale

2012-12-10 Thread Brooks Davis
Author: brooks Date: Mon Dec 10 17:34:33 2012 New Revision: 244091 URL: http://svnweb.freebsd.org/changeset/base/244091 Log: Improve style(9) compliance of function declarations. Modified: head/lib/libc/locale/setrunelocale.c Modified: head/lib/libc/locale/setrunelocale.c ===

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

2012-12-10 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 10 17:56:51 2012 New Revision: 244092 URL: http://svnweb.freebsd.org/changeset/base/244092 Log: libc: Make various internal file descriptors close-on-exec. These are obtained via fopen(). Modified: head/lib/libc/gen/fmtmsg.c head/lib/libc/gen/getcap.c hea

Re: svn commit: r244077 - head/sys/amd64/amd64

2012-12-10 Thread Konstantin Belousov
On Mon, Dec 10, 2012 at 08:39:47AM +, Robert Watson wrote: > > On Mon, 10 Dec 2012, Konstantin Belousov wrote: > > > Author: kib > > Date: Mon Dec 10 05:14:34 2012 > > New Revision: 244077 > > URL: http://svnweb.freebsd.org/changeset/base/244077 > > > > Log: > > Add amd64-specific ddb comman

svn commit: r244095 - head/sys/kern

2012-12-10 Thread Konstantin Belousov
Author: kib Date: Mon Dec 10 20:44:09 2012 New Revision: 244095 URL: http://svnweb.freebsd.org/changeset/base/244095 Log: Do not yield while owning a mutex. The Giant reacquire in the kern_yield() is problematic than. The owned mutex is the mount interlock, and it is in fact not needed

svn commit: r244096 - head/etc

2012-12-10 Thread Xin LI
Author: delphij Date: Mon Dec 10 20:52:52 2012 New Revision: 244096 URL: http://svnweb.freebsd.org/changeset/base/244096 Log: Sync pf.os with OpenBSD: add a handful of linux signatures from p0fv2 and some other signatures from observation. MFC after:2 weeks Modified: head/etc/

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread John Baldwin
On Friday, December 07, 2012 7:00:44 pm Carl Delsey wrote: > On 12/07/12 10:08, John Baldwin wrote: > > On Thursday, December 06, 2012 5:33:32 pm Jim Harris wrote: > >> Author: jimharris > >> Date: Thu Dec 6 22:33:31 2012 > >> New Revision: 243960 > >> URL: http://svnweb.freebsd.org/changeset/base

svn commit: r244098 - head/sys/kern

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Mon Dec 10 23:09:55 2012 New Revision: 244098 URL: http://svnweb.freebsd.org/changeset/base/244098 Log: make sysctls kern.{bootfile,conftxt} read-only MFC after:1 month Modified: head/sys/kern/kern_mib.c Modified: head/sys/kern/kern_mib.c ===

svn commit: r244099 - head/sys/kern

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Mon Dec 10 23:11:26 2012 New Revision: 244099 URL: http://svnweb.freebsd.org/changeset/base/244099 Log: allow KASSERT to enter KDB. Modified: head/sys/kern/kern_shutdown.c Modified: head/sys/kern/kern_shutdown.c ===

svn commit: r244100 - head/sys/sys

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Mon Dec 10 23:12:51 2012 New Revision: 244100 URL: http://svnweb.freebsd.org/changeset/base/244100 Log: Add constant missed in r244099 KDB entered due to KASSERT. Modified: head/sys/sys/kdb.h Modified: head/sys/sys/kdb.h =

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

2012-12-10 Thread Konstantin Belousov
On Mon, Dec 10, 2012 at 11:09:56PM +, Alfred Perlstein wrote: > Author: alfred > Date: Mon Dec 10 23:09:55 2012 > New Revision: 244098 > URL: http://svnweb.freebsd.org/changeset/base/244098 > > Log: > make sysctls kern.{bootfile,conftxt} read-only You just break installkernel. pgpvXRIKCyH

svn commit: r244101 - head/sys/sys

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Mon Dec 10 23:17:08 2012 New Revision: 244101 URL: http://svnweb.freebsd.org/changeset/base/244101 Log: Add CTLFLAG_STATS to sysctl flags In preparation for sysctl(8) growing the ability to only print out boot/run-time tunables we need a way to differentiate between

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Niclas Zeising
On 12/06/12 23:33, Jim Harris wrote: > Author: jimharris > Date: Thu Dec 6 22:33:31 2012 > New Revision: 243960 > URL: http://svnweb.freebsd.org/changeset/base/243960 > > Log: > Add amd64 implementations for 8-byte bus_space routines. > > +#include > #include > + > +#define KASSERT_BUS_S

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Carl Delsey
On 12/10/12 16:20, Niclas Zeising wrote: On 12/06/12 23:33, Jim Harris wrote: Author: jimharris Date: Thu Dec 6 22:33:31 2012 New Revision: 243960 URL: http://svnweb.freebsd.org/changeset/base/243960 Log: Add amd64 implementations for 8-byte bus_space routines. +#include #include +

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

2012-12-10 Thread Alfred Perlstein
On 12/10/12 3:14 PM, Konstantin Belousov wrote: On Mon, Dec 10, 2012 at 11:09:56PM +, Alfred Perlstein wrote: Author: alfred Date: Mon Dec 10 23:09:55 2012 New Revision: 244098 URL: http://svnweb.freebsd.org/changeset/base/244098 Log: make sysctls kern.{bootfile,conftxt} read-only You j

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Niclas Zeising
On 12/11/12 00:32, Carl Delsey wrote: > On 12/10/12 16:20, Niclas Zeising wrote: >> On 12/06/12 23:33, Jim Harris wrote: >>> Author: jimharris >>> Date: Thu Dec 6 22:33:31 2012 >>> New Revision: 243960 >>> URL: http://svnweb.freebsd.org/changeset/base/243960 >>> >>> Log: >>>Add amd64 implement

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

2012-12-10 Thread Alfred Perlstein
On 12/10/12 3:38 PM, Alfred Perlstein wrote: On 12/10/12 3:14 PM, Konstantin Belousov wrote: On Mon, Dec 10, 2012 at 11:09:56PM +, Alfred Perlstein wrote: Author: alfred Date: Mon Dec 10 23:09:55 2012 New Revision: 244098 URL: http://svnweb.freebsd.org/changeset/base/244098 Log: make sy

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Carl Delsey
On 12/10/12 16:40, Niclas Zeising wrote: On 12/11/12 00:32, Carl Delsey wrote: On 12/10/12 16:20, Niclas Zeising wrote: On 12/06/12 23:33, Jim Harris wrote: Author: jimharris Date: Thu Dec 6 22:33:31 2012 New Revision: 243960 URL: http://svnweb.freebsd.org/changeset/base/243960 Log: Add

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

2012-12-10 Thread Alfred Perlstein
On 12/10/12 3:51 PM, Alfred Perlstein wrote: On 12/10/12 3:38 PM, Alfred Perlstein wrote: On 12/10/12 3:14 PM, Konstantin Belousov wrote: On Mon, Dec 10, 2012 at 11:09:56PM +, Alfred Perlstein wrote: Author: alfred Date: Mon Dec 10 23:09:55 2012 New Revision: 244098 URL: http://svnweb.free

svn commit: r244103 - head/sys/kern

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Tue Dec 11 00:10:20 2012 New Revision: 244103 URL: http://svnweb.freebsd.org/changeset/base/244103 Log: back out half of 244098. kern.bootfile needs to be rw for installkernel. Pointed out by: kib, flo Modified: head/sys/kern/kern_mib.c Modified: head/sys/kern/

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Niclas Zeising
On 12/11/12 00:54, Carl Delsey wrote: > On 12/10/12 16:40, Niclas Zeising wrote: >> On 12/11/12 00:32, Carl Delsey wrote: >>> On 12/10/12 16:20, Niclas Zeising wrote: On 12/06/12 23:33, Jim Harris wrote: > Author: jimharris > Date: Thu Dec 6 22:33:31 2012 > New Revision: 243960 >>

svn commit: r244104 - head/sbin/sysctl

2012-12-10 Thread Xin LI
Author: delphij Date: Tue Dec 11 01:12:29 2012 New Revision: 244104 URL: http://svnweb.freebsd.org/changeset/base/244104 Log: In parse(): - Only operate on copy, don't operate on source. - Eliminate home-rolled strsep(). - Constify the parameter. MFC after:2 weeks Modified:

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

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Tue Dec 11 01:23:50 2012 New Revision: 244105 URL: http://svnweb.freebsd.org/changeset/base/244105 Log: Switch the hardwired WITNESS panics to kassert_panic. This is an ongoing effort to provide runtime debug information useful in the field that does not panic existin

svn commit: r244106 - head/sbin/sysctl

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Tue Dec 11 01:28:06 2012 New Revision: 244106 URL: http://svnweb.freebsd.org/changeset/base/244106 Log: Allow sysctl to filter boot and runtime tunables. Add the following flags to sysctl: -W - show only writable sysctls -T - show only tuneable sysctls This

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Bruce Evans
On Tue, 11 Dec 2012, Niclas Zeising wrote: On 12/11/12 00:54, Carl Delsey wrote: On 12/10/12 16:40, Niclas Zeising wrote: ... libpciaccess uses bus_space_[read,write]_[1,2,4], which are defined in x86/bus.h. It does not use the quad functions. Regards! Ok. In that case I won't ifdef out the

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

2012-12-10 Thread Adrian Chadd
Author: adrian Date: Tue Dec 11 04:19:51 2012 New Revision: 244109 URL: http://svnweb.freebsd.org/changeset/base/244109 Log: There's no need to use a TXQ pointer here; we specifically need the hardware queue ID when queuing to EDMA descriptors. This is a small part of trying to reduce the

svn commit: r244111 - head/sys/kern

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Tue Dec 11 05:59:16 2012 New Revision: 244111 URL: http://svnweb.freebsd.org/changeset/base/244111 Log: Fix WITNESS when INVARIANT_SUPPORT is defined. This fixes tinderbox breakage from r244105. Pointed out by: adrian Modified: head/sys/kern/subr_witness.c Modi

Re: svn commit: r243960 - in head/sys: amd64/include i386/include x86/include

2012-12-10 Thread Carl Delsey
On 12/10/2012 9:06 PM, Bruce Evans wrote: On Tue, 11 Dec 2012, Niclas Zeising wrote: On 12/11/12 00:54, Carl Delsey wrote: On 12/10/12 16:40, Niclas Zeising wrote: ... libpciaccess uses bus_space_[read,write]_[1,2,4], which are defined in x86/bus.h. It does not use the quad functions. Regard

svn commit: r244112 - head/sys/kern

2012-12-10 Thread Alfred Perlstein
Author: alfred Date: Tue Dec 11 07:08:14 2012 New Revision: 244112 URL: http://svnweb.freebsd.org/changeset/base/244112 Log: Cleanup more of the kassert_panic. fix compile warnings on !amd64 and NULL derefs that would happen if kassert_panic() would return. Modified: head/sys/kern/subr