svn commit: r191263 - head/sys/vm

2009-04-19 Thread Alan Cox
Author: alc Date: Sun Apr 19 07:18:08 2009 New Revision: 191263 URL: http://svn.freebsd.org/changeset/base/191263 Log: Calling pmap_clear_modify() after calling pmap_remove_write() is pointless. The latter function already clears the modified status from each of the page's mappings. Modifie

svn commit: r191264 - head/sys/netinet

2009-04-19 Thread Bruce M Simpson
Author: bms Date: Sun Apr 19 08:14:21 2009 New Revision: 191264 URL: http://svn.freebsd.org/changeset/base/191264 Log: Now that IFF_NEEDSGIANT has been removed from the network stack, catch up with this in IGMPv3 and remove dead code. This has the side-effect of not being back-portable to RE

svn commit: r191265 - head/usr.sbin/sysinstall

2009-04-19 Thread Marc Fonvieille
Author: blackend (doc committer) Date: Sun Apr 19 08:31:55 2009 New Revision: 191265 URL: http://svn.freebsd.org/changeset/base/191265 Log: Add docs category. MFC after:3 days Modified: head/usr.sbin/sysinstall/index.c Modified: head/usr.sbin/sysinstall/index.c =

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

2009-04-19 Thread Robert Watson
On Sun, 19 Apr 2009, Kip Macy wrote: Author: kmacy Date: Sun Apr 19 04:44:05 2009 New Revision: 191259 URL: http://svn.freebsd.org/changeset/base/191259 Log: - Allocate a small flowtable in ip_input.c (changeable by tuneable) - Use for accelerating ip_output If you anticipate the flowtable

svn commit: r191266 - head/sys/kern

2009-04-19 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Apr 19 09:56:30 2009 New Revision: 191266 URL: http://svn.freebsd.org/changeset/base/191266 Log: When allocating 'struct acl' instances, use malloc(9) instead of uma(9). This struct will get much bigger soon, and we don't want to waste too much memory on UMA caches.

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

2009-04-19 Thread Andre Oppermann
Robert Watson wrote: On Sun, 19 Apr 2009, Kip Macy wrote: Author: kmacy Date: Sun Apr 19 04:44:05 2009 New Revision: 191259 URL: http://svn.freebsd.org/changeset/base/191259 Log: - Allocate a small flowtable in ip_input.c (changeable by tuneable) - Use for accelerating ip_output If you ant

svn commit: r191267 - head/sys/sys

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 11:20:57 2009 New Revision: 191267 URL: http://svn.freebsd.org/changeset/base/191267 Log: Garbage collect now-unused struct malloc_type fields, bump __FreeBSD_version as kernel modules will need to be rebuilt. These fields existed to support binary compatibi

svn commit: r191268 - head/sys/kern

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 12:41:37 2009 New Revision: 191268 URL: http://svn.freebsd.org/changeset/base/191268 Log: struct malloc_type has had a 'magic' field statically initialized to M_MAGIC by MALLOC_DEFINE() for a long time; add assertions that malloc_type's passed to malloc(), fr

svn commit: r191269 - head/sys/compat/linux

2009-04-19 Thread Dmitry Chagin
Author: dchagin Date: Sun Apr 19 13:48:42 2009 New Revision: 191269 URL: http://svn.freebsd.org/changeset/base/191269 Log: Remove support for FUTEX_REQUEUE operation. Glibc does not use this operation since 2.3.3 version (Jun 2004), as it is racy and replaced by FUTEX_CMP_REQUEUE operation.

svn commit: r191270 - in head/sys: bsm conf security/audit

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 14:53:17 2009 New Revision: 191270 URL: http://svn.freebsd.org/changeset/base/191270 Log: Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: - Add and use mapping of fcntl(2) commands to new BSM constant space. - Adopt (int) rather than (long) arguments

svn commit: r191271 - in vendor/openbsm/dist: . bin bin/audit bin/auditd bin/auditfilterd bin/auditreduce bin/praudit bsm config etc libauditd libbsm man modules modules/auditfilter_noop sys sys/bs...

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 15:18:16 2009 New Revision: 191271 URL: http://svn.freebsd.org/changeset/base/191271 Log: Vendor import of OpenBSM 1.1, which incorporates the following changes since the last imported OpenBSM release: OpenBSM 1.1 - Change auditon(2) parameters and da

svn commit: r191272 - vendor/openbsm/1.1

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 15:19:26 2009 New Revision: 191272 URL: http://svn.freebsd.org/changeset/base/191272 Log: Tag OpenBSM 1.1 vendor import. Added: vendor/openbsm/1.1/ - copied from r191271, vendor/openbsm/dist/ ___ svn-src-all@fre

svn commit: r191273 - in head: contrib/openbsm contrib/openbsm/bin contrib/openbsm/bin/audit contrib/openbsm/bin/auditd contrib/openbsm/bin/auditfilterd contrib/openbsm/bin/auditreduce contrib/open...

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 16:17:13 2009 New Revision: 191273 URL: http://svn.freebsd.org/changeset/base/191273 Log: Merge OpenBSM 1.1 from OpenBSM vendor branch to head. OpenBSM history for imported revision below for reference. MFC after: 2 weeks Sponsored by: Apple, I

svn commit: r191274 - head/sys/dev/drm

2009-04-19 Thread Robert Noland
Author: rnoland Date: Sun Apr 19 16:54:33 2009 New Revision: 191274 URL: http://svn.freebsd.org/changeset/base/191274 Log: Don't try to setup interrupts for drivers that don't support them. This causes sis and probably a couple of other driver to panic and fail. Tested by:cpghost

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

2009-04-19 Thread Kip Macy
On Sun, Apr 19, 2009 at 3:18 AM, Andre Oppermann wrote: > Robert Watson wrote: >> >> On Sun, 19 Apr 2009, Kip Macy wrote: >> >>> Author: kmacy >>> Date: Sun Apr 19 04:44:05 2009 >>> New Revision: 191259 >>> URL: http://svn.freebsd.org/changeset/base/191259 > I have another question on the flowtabl

Re: svn commit: r191197 - head/share/misc

2009-04-19 Thread Sean C. Farley
On Fri, 17 Apr 2009, Juli Mallett wrote: On Fri, Apr 17, 2009 at 1:01 AM, Kevin Lo wrote: Log: Change Taiwan, Province of China to Taiwan, Republic of China Modified: head/share/misc/iso3166 Do you have a source for this change? The ISO sites I've checked don't support it. For example:

svn commit: r191275 - head/tools/tools/nanobsd

2009-04-19 Thread Poul-Henning Kamp
Author: phk Date: Sun Apr 19 18:23:23 2009 New Revision: 191275 URL: http://svn.freebsd.org/changeset/base/191275 Log: A script for plucking packages and their runtime dependencies for nanobsd images. Added: head/tools/tools/nanobsd/fill_pkg.sh (contents, props changed) Added: head/tools

Re: svn commit: r191261 - in head/sys/powerpc: aim include

2009-04-19 Thread Andreas Tobler
Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Apr 19 06:30:00 2009 New Revision: 191261 URL: http://svn.freebsd.org/changeset/base/191261 Log: Fix a typo in the SRR1 comparison for program exceptions. While here, replace magic numbers with constants to keep this from happening again.

svn commit: r191276 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 20:19:13 2009 New Revision: 191276 URL: http://svn.freebsd.org/changeset/base/191276 Log: For each architecture, define CACHE_LINE_SHIFT and a derived CACHE_LINE_SIZE constant. These constants are intended to over-estimate the cache line size, and be used at

Re: svn commit: r191269 - head/sys/compat/linux

2009-04-19 Thread Roman Divacky
On Sun, Apr 19, 2009 at 01:48:43PM +, Dmitry Chagin wrote: > Author: dchagin > Date: Sun Apr 19 13:48:42 2009 > New Revision: 191269 > URL: http://svn.freebsd.org/changeset/base/191269 > > Log: > Remove support for FUTEX_REQUEUE operation. > Glibc does not use this operation since 2.3.3 ve

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

2009-04-19 Thread Marko Zec
On Sunday 19 April 2009 19:13:37 Kip Macy wrote: > On Sun, Apr 19, 2009 at 3:18 AM, Andre Oppermann wrote: ... > > I have another question on the flowtable:  What is the pupose of it? > > All router vendors have learned a long time ago that route caching > > (aka flow caching) doesn't work out on

Re: svn commit: r191269 - head/sys/compat/linux

2009-04-19 Thread Chagin Dmitry
On Sun, Apr 19, 2009 at 10:22:53PM +0200, Roman Divacky wrote: > On Sun, Apr 19, 2009 at 01:48:43PM +, Dmitry Chagin wrote: > > Author: dchagin > > Date: Sun Apr 19 13:48:42 2009 > > New Revision: 191269 > > URL: http://svn.freebsd.org/changeset/base/191269 > > > > Log: > > Remove support fo

svn commit: r191277 - head/sys/vm

2009-04-19 Thread Konstantin Belousov
Author: kib Date: Sun Apr 19 20:53:47 2009 New Revision: 191277 URL: http://svn.freebsd.org/changeset/base/191277 Log: In both pageout oom handler and vm_daemon, acquire the reference to the vmspace of the examined process instead of directly accessing its vmspace, that may change. Also, as

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

2009-04-19 Thread Kip Macy
On Sun, Apr 19, 2009 at 1:21 PM, Marko Zec wrote: > On Sunday 19 April 2009 19:13:37 Kip Macy wrote: >> On Sun, Apr 19, 2009 at 3:18 AM, Andre Oppermann wrote: > ... >> > I have another question on the flowtable:  What is the pupose of it? >> > All router vendors have learned a long time ago that

svn commit: r191278 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 21:26:36 2009 New Revision: 191278 URL: http://svn.freebsd.org/changeset/base/191278 Log: Add description and cautionary note regarding CACHE_LINE_SIZE. MFC after:2 weeks Suggested by: alc Modified: head/sys/amd64/include/param.h head/sys/arm/incl

svn commit: r191279 - head/sys/kern

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 21:36:18 2009 New Revision: 191279 URL: http://svn.freebsd.org/changeset/base/191279 Log: Lock the interface address list while iterating a network interface's address list when searching for a link-layer address to use during uuid generation. MFC after:

svn commit: r191280 - head/sys/modules

2009-04-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Sun Apr 19 21:37:45 2009 New Revision: 191280 URL: http://svn.freebsd.org/changeset/base/191280 Log: Build sound modules on PowerPC. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile ==

svn commit: r191281 - head/sys/netatalk

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:01:38 2009 New Revision: 191281 URL: http://svn.freebsd.org/changeset/base/191281 Log: Lock interface address list lock around ifaddr inserts and deletes in at_control(). This locking is not yet complete but should prevent some classes of race conditions.

svn commit: r191283 - head/sys/netgraph

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:04:29 2009 New Revision: 191283 URL: http://svn.freebsd.org/changeset/base/191283 Log: Lock interface address list when building a reply to NGM_EIFACE_GET_IFADDRS messages in ng_eiface. MFC after:2 weeks Modified: head/sys/netgraph/ng_eiface.c M

svn commit: r191284 - head/sys/netgraph

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:05:39 2009 New Revision: 191284 URL: http://svn.freebsd.org/changeset/base/191284 Log: Lock the interface address list while building replies to NGM_CISCO_COOKIE messages in ng_iface. MFC after:2 weeks Modified: head/sys/netgraph/ng_iface.c Modi

svn commit: r191285 - head/sys/netinet

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:16:19 2009 New Revision: 191285 URL: http://svn.freebsd.org/changeset/base/191285 Log: Protect against some writer-writer races in in_control() by acquiring the interface address list lock around interface address list modifications. More to do here.

svn commit: r191286 - head/sys/netinet

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:25:09 2009 New Revision: 191286 URL: http://svn.freebsd.org/changeset/base/191286 Log: Lock interface address lists in in_pcbladdr() when searching for a source address for a connection and there's no route or now interface for the route. MFC after:

svn commit: r191287 - head/sys/netinet

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:29:16 2009 New Revision: 191287 URL: http://svn.freebsd.org/changeset/base/191287 Log: In divert_packet(), lock the interface address list before iterating over it in search of an address. MFC after:2 weeks Modified: head/sys/netinet/ip_divert.c

svn commit: r191288 - head/sys/netinet

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:34:35 2009 New Revision: 191288 URL: http://svn.freebsd.org/changeset/base/191288 Log: Lock the interface address list when searching for a matching interface by address, or when implementing 'me' rules on IPv6. Prefer the field name if_addrhead to the ma

svn commit: r191291 - in head: lib/libthr/thread libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386 libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc libexec/rtld-...

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 23:02:50 2009 New Revision: 191291 URL: http://svn.freebsd.org/changeset/base/191291 Log: Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use that definition in the custom locking code for the run-time linker rather than local definitions.

svn commit: r191292 - head/libexec/rtld-elf

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 23:03:57 2009 New Revision: 191292 URL: http://svn.freebsd.org/changeset/base/191292 Log: Explicitly include machine/param.h for CACHE_LINE_SIZE. MFC after:2 weeks Modified: head/libexec/rtld-elf/rtld_lock.c Modified: head/libexec/rtld-elf/rtld_lock.

Re: svn commit: r191291 - in head: lib/libthr/thread libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386 libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc libexec/rtld

2009-04-19 Thread Robert Watson
On Sun, 19 Apr 2009, Robert Watson wrote: Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use that definition in the custom locking code for the run-time linker rather than local definitions. This actually changes the line size used by the rtld code for pre-pthreads locking

svn commit: r191296 - head/sys/security/audit

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 23:28:08 2009 New Revision: 191296 URL: http://svn.freebsd.org/changeset/base/191296 Log: Temporarily relax the constraints on argument size checking for A_GETCOND; login(1) isn't quite ready for them yet on 64-bit systems as it continues to use the conventio

Re: svn commit: r191291 - in head: lib/libthr/thread libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386 libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc libexec/r

2009-04-19 Thread Ivan Voras
2009/4/20 Robert Watson : > On Sun, 19 Apr 2009, Robert Watson wrote: > >>  Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use >>  that definition in the custom locking code for the run-time linker >>  rather than local definitions. > > This actually changes the line size used by t

svn commit: r191297 - head/usr.bin/login

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 23:34:22 2009 New Revision: 191297 URL: http://svn.freebsd.org/changeset/base/191297 Log: Pass int arguments to auditon(2)'s A_GETCOND API rather than long arguments. This change should be MFC'd with OpenBSM 1.1 since they are interdependent. MFC after:

svn commit: r191298 - vendor/ntp/dist/ntpq

2009-04-19 Thread Ollivier Robert
Author: roberto Date: Sun Apr 19 23:34:52 2009 New Revision: 191298 URL: http://svn.freebsd.org/changeset/base/191298 Log: Prevent a buffer overflow in ntpq. Patch taken from the PR database after being committed to the official ntp tree and present in 4.2.4p7-rc2. It will be MFH to the

Re: svn commit: r191291 - in head: lib/libthr/thread libexec/rtld-elf/amd64 libexec/rtld-elf/arm libexec/rtld-elf/i386 libexec/rtld-elf/ia64 libexec/rtld-elf/mips libexec/rtld-elf/powerpc libexec/rt

2009-04-19 Thread Robert Watson
On Mon, 20 Apr 2009, Ivan Voras wrote: 2009/4/20 Robert Watson : On Sun, 19 Apr 2009, Robert Watson wrote:  Now that the kernel defines CACHE_LINE_SIZE in machine/param.h, use  that definition in the custom locking code for the run-time linker  rather than local definitions. This actually

svn commit: r191299 - head/sys/dev/ed

2009-04-19 Thread Warner Losh
Author: imp Date: Mon Apr 20 01:19:59 2009 New Revision: 191299 URL: http://svn.freebsd.org/changeset/base/191299 Log: Cleanup resource allocation code a bit. Store the rids on the resources rather than on the softc. When we allocate resources for PC Card, if we only get 16 ports, try agai

svn commit: r191300 - head/sys/mips/mips

2009-04-19 Thread Alan Cox
Author: alc Date: Mon Apr 20 03:44:54 2009 New Revision: 191300 URL: http://svn.freebsd.org/changeset/base/191300 Log: MFamd64/i386 Introduce pmap_try_insert_pv_entry(), a function that conditionally creates a pv entry if the number of entries is below the high water mark for pv entr

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

2009-04-19 Thread Marko Zec
On Sunday 19 April 2009 23:05:55 Kip Macy wrote: > On Sun, Apr 19, 2009 at 1:21 PM, Marko Zec wrote: > > On Sunday 19 April 2009 19:13:37 Kip Macy wrote: > >> On Sun, Apr 19, 2009 at 3:18 AM, Andre Oppermann > >> wrote: > > > > ... > > > >> > I have another question on the flowtable:  What is the