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

2012-03-09 Thread Adrian Chadd
Author: adrian Date: Fri Mar 9 08:36:30 2012 New Revision: 232719 URL: http://svn.freebsd.org/changeset/base/232719 Log: Insert extra paranoia into the ath(4) driver. This function must be called with both the source and destination TXQs locked or things will get hairy. I added

svn commit: r232720 - head/sys/mips/conf

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Fri Mar 9 09:32:20 2012 New Revision: 232720 URL: http://svn.freebsd.org/changeset/base/232720 Log: Did you still want the not yet? I think we just arrived at yet. Submitted by: thompsa Modified: head/sys/mips/conf/OCTEON1 Modified: head/sys/mips/conf/OCTEON1

svn commit: r232721 - head/sys/x86/include

2012-03-09 Thread Tijl Coosemans
Author: tijl Date: Fri Mar 9 11:48:56 2012 New Revision: 232721 URL: http://svn.freebsd.org/changeset/base/232721 Log: Clean up x86 endian.h: - Remove extern C. There are no functions with external linkage here. [1] - Rename bswapNN_const(x) to bswapNN_gen(x) to indicate that these macros

Re: svn commit: r232721 - head/sys/x86/include

2012-03-09 Thread Dimitry Andric
On 2012-03-09 12:48, Tijl Coosemans wrote: Author: tijl Date: Fri Mar 9 11:48:56 2012 New Revision: 232721 URL: http://svn.freebsd.org/changeset/base/232721 Log: Clean up x86 endian.h: - Remove extern C. There are no functions with external linkage here. [1] - Rename

svn commit: r232722 - stable/9/share/man/man9

2012-03-09 Thread Jaakko Heinonen
Author: jh Date: Fri Mar 9 13:06:24 2012 New Revision: 232722 URL: http://svn.freebsd.org/changeset/base/232722 Log: MFC r232350: Since r199137 namei() returns EINVAL for DELETE and RENAME operations if the last component of the pathname is .. Modified:

svn commit: r232724 - head/sys/netinet

2012-03-09 Thread Michael Tuexen
Author: tuexen Date: Fri Mar 9 13:15:40 2012 New Revision: 232724 URL: http://svn.freebsd.org/changeset/base/232724 Log: Add support for stf interfaces. MFC after: 3days. Modified: head/sys/netinet/sctp_bsd_addr.c Modified: head/sys/netinet/sctp_bsd_addr.c

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

2012-03-09 Thread Bjoern A. Zeeb
On 9. Mar 2012, at 13:12 , Michael Tuexen wrote: Author: tuexen Date: Fri Mar 9 13:12:33 2012 New Revision: 232723 URL: http://svn.freebsd.org/changeset/base/232723 Log: Fix a bug reported by Peter Holm which results in a crash: Verify in sctp_peeloff() that the socket is a

Re: svn commit: r232692 - head/sys/ufs/ffs

2012-03-09 Thread Bruce Evans
On Fri, 9 Mar 2012, Peter Holm wrote: On Fri, Mar 09, 2012 at 03:51:30PM +1100, Bruce Evans wrote: On Thu, 8 Mar 2012, Peter Holm wrote: Log: syscall() fuzzing can trigger this panic. Return EINVAL instead. MFC after: 1 week If so, then, this is not the place to hide the bug. OK

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

2012-03-09 Thread Ed Maste
Author: emaste Date: Fri Mar 9 15:25:27 2012 New Revision: 232725 URL: http://svn.freebsd.org/changeset/base/232725 Log: Remove undesired sysctl(3) xref Submitted by: bde Modified: head/share/man/man4/tcp.4 Modified: head/share/man/man4/tcp.4

svn commit: r232726 - head/sys/netinet

2012-03-09 Thread Michael Tuexen
Author: tuexen Date: Fri Mar 9 15:42:47 2012 New Revision: 232726 URL: http://svn.freebsd.org/changeset/base/232726 Log: Fix a warning reported by bz@ MFC after: 3 days. Modified: head/sys/netinet/sctp_peeloff.c Modified: head/sys/netinet/sctp_peeloff.c

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

2012-03-09 Thread Michael Tuexen
On Mar 9, 2012, at 3:08 PM, Bjoern A. Zeeb wrote: On 9. Mar 2012, at 13:12 , Michael Tuexen wrote: Author: tuexen Date: Fri Mar 9 13:12:33 2012 New Revision: 232723 URL: http://svn.freebsd.org/changeset/base/232723 Log: Fix a bug reported by Peter Holm which results in a crash:

Re: svn commit: r232721 - head/sys/x86/include

2012-03-09 Thread Ed Schouten
Tijl, * Tijl Coosemans t...@freebsd.org, 20120309 12:48: Clean up x86 endian.h: Wouldn't it be possible to simply place these macros in sys/endian.h and only let machine/endian.h define the assembly versions for the non-constant cases? Thanks, -- Ed Schouten e...@80386.nl WWW: http

svn commit: r232727 - head/sys/dev/bge

2012-03-09 Thread John Baldwin
Author: jhb Date: Fri Mar 9 16:05:11 2012 New Revision: 232727 URL: http://svn.freebsd.org/changeset/base/232727 Log: Remove PAE special-case 2GB DMA boundary and always use a 4GB boundary now that DMA tags in PAE kernels support 4GB boundaries. Reviewed by: yongari Modified:

Re: svn commit: r232721 - head/sys/x86/include

2012-03-09 Thread Tijl Coosemans
On Friday 09 March 2012 16:47:07 Ed Schouten wrote: * Tijl Coosemans t...@freebsd.org, 20120309 12:48: Clean up x86 endian.h: Wouldn't it be possible to simply place these macros in sys/endian.h and only let machine/endian.h define the assembly versions for the non-constant cases

svn commit: r232728 - in stable/9: lib/libjail share/man/man5 sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/compat/linprocfs sys/compat/linsysfs sys/fs/devfs sys/fs/nullfs sys/fs/procfs sys/fs...

2012-03-09 Thread Martin Matuska
Author: mm Date: Fri Mar 9 16:17:46 2012 New Revision: 232728 URL: http://svn.freebsd.org/changeset/base/232728 Log: Jail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247, r232278,r232307,r232342 MFC r231265: Introduce the ruleset=number option for

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

2012-03-09 Thread Konstantin Belousov
Author: kib Date: Fri Mar 9 16:21:40 2012 New Revision: 232729 URL: http://svn.freebsd.org/changeset/base/232729 Log: Remove the use of toupper() from rtld_printf.c. Use of the libc function relies on working TLS, which is particulary not true for LD_DEBUG uses. MFC after:1 week

svn commit: r232730 - head/sys/x86/include

2012-03-09 Thread Tijl Coosemans
Author: tijl Date: Fri Mar 9 16:39:34 2012 New Revision: 232730 URL: http://svn.freebsd.org/changeset/base/232730 Log: Cast the expression in __bswap16(x) to __uint16_t because it is promoted to int. Reviewed by: dim Modified: head/sys/x86/include/endian.h Modified:

Re: svn commit: r232692 - head/sys/ufs/ffs

2012-03-09 Thread Peter Holm
On Sat, Mar 10, 2012 at 01:48:20AM +1100, Bruce Evans wrote: On Fri, 9 Mar 2012, Peter Holm wrote: On Fri, Mar 09, 2012 at 03:51:30PM +1100, Bruce Evans wrote: On Thu, 8 Mar 2012, Peter Holm wrote: Log: syscall() fuzzing can trigger this panic. Return EINVAL instead. MFC after: 1 week

svn commit: r232732 - head/sys/ufs/ffs

2012-03-09 Thread Peter Holm
Author: pho Date: Fri Mar 9 17:19:50 2012 New Revision: 232732 URL: http://svn.freebsd.org/changeset/base/232732 Log: Revert r232692 as the correct place to fix this is at the syscall level. Modified: head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/ufs/ffs/ffs_vnops.c

svn commit: r232738 - head/usr.sbin/diskinfo

2012-03-09 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 9 18:34:14 2012 New Revision: 232738 URL: http://svn.freebsd.org/changeset/base/232738 Log: Improve error reporting in diskinfo(8) by not displaying errno when it doesn't make sense. Modified: head/usr.sbin/diskinfo/diskinfo.c Modified:

svn commit: r232740 - head/sys/kern

2012-03-09 Thread Alexander Motin
Author: mav Date: Fri Mar 9 19:09:08 2012 New Revision: 232740 URL: http://svn.freebsd.org/changeset/base/232740 Log: Make kern.sched.idlespinthresh default value adaptive depending of HZ. Otherwise with HZ above 8000 CPU may never skip timer ticks on idle. Modified:

svn commit: r232742 - head/sys/i386/acpica

2012-03-09 Thread John Baldwin
Author: jhb Date: Fri Mar 9 19:20:19 2012 New Revision: 232742 URL: http://svn.freebsd.org/changeset/base/232742 Log: MFamd64: - Return failure for a suspend attempt if we have no wake address. - Use intr_disable()/intr_restore() instead of ACPI_DISABLE_IRQS(). - Invoke intr_suspend()

svn commit: r232744 - in head/sys: conf i386/i386 i386/include

2012-03-09 Thread John Baldwin
Author: jhb Date: Fri Mar 9 19:42:48 2012 New Revision: 232744 URL: http://svn.freebsd.org/changeset/base/232744 Log: Allow a native i386 kernel to be built with 'nodevice atpic'. Just as on amd64, if 'device isa' is present quiesce the 8259A's during boot and resume from suspend.

svn commit: r232745 - in head/sys: powerpc/include sparc64/include x86/include

2012-03-09 Thread Dimitry Andric
Author: dim Date: Fri Mar 9 20:34:31 2012 New Revision: 232745 URL: http://svn.freebsd.org/changeset/base/232745 Log: Add casts to __uint16_t to the __bswap16() macros on all arches which didn't already have them. This is because the ternary expression will return int, due to the Usual

svn commit: r232747 - in head/sys: amd64/amd64 conf i386/i386 x86/x86

2012-03-09 Thread John Baldwin
Author: jhb Date: Fri Mar 9 20:43:29 2012 New Revision: 232747 URL: http://svn.freebsd.org/changeset/base/232747 Log: Move i386's intr_machdep.c to the x86 tree and share it with amd64. Added: head/sys/x86/x86/intr_machdep.c - copied, changed from r232744,

svn commit: r232748 - head/usr.bin/netstat

2012-03-09 Thread Dimitry Andric
Author: dim Date: Fri Mar 9 20:50:15 2012 New Revision: 232748 URL: http://svn.freebsd.org/changeset/base/232748 Log: After r232745, which makes sure __bswap16(), ntohs() and htons() return __uint16_t, we can partially undo r228668. Note the remark Work around a clang false positive

svn commit: r232749 - head/sbin/fsdb

2012-03-09 Thread Dimitry Andric
Author: dim Date: Fri Mar 9 21:02:39 2012 New Revision: 232749 URL: http://svn.freebsd.org/changeset/base/232749 Log: Partially undo r228693, by removing NO_WFORMAT.clang in fsdb's Makefile, and fixing the format string in sbin/fsdb/fsdbutil.c instead. Note the remark Work around a

svn commit: r232750 - head/sys/kern

2012-03-09 Thread Peter Holm
Author: pho Date: Fri Mar 9 21:31:12 2012 New Revision: 232750 URL: http://svn.freebsd.org/changeset/base/232750 Log: Perform the parameter validation before assigning it to a signed int variable. This fixes the problem seen with readdir(3) fuzzing. Submitted by: bde MFC after:1

Re: svn commit: r232727 - head/sys/dev/bge

2012-03-09 Thread Bjoern A. Zeeb
On 9. Mar 2012, at 16:05 , John Baldwin wrote: Author: jhb Date: Fri Mar 9 16:05:11 2012 New Revision: 232727 URL: http://svn.freebsd.org/changeset/base/232727 Log: Remove PAE special-case 2GB DMA boundary and always use a 4GB boundary now that DMA tags in PAE kernels support 4GB

svn commit: r232751 - head/sys/kern

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Fri Mar 9 22:30:54 2012 New Revision: 232751 URL: http://svn.freebsd.org/changeset/base/232751 Log: Export intrcnt correctly when running under 32-bit compatibility. Reviewed by: gonzo, nwhitehorn Modified: head/sys/kern/kern_intr.c Modified:

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

2012-03-09 Thread Adrian Chadd
Author: adrian Date: Fri Mar 9 22:41:09 2012 New Revision: 232752 URL: http://svn.freebsd.org/changeset/base/232752 Log: Should the mcast queue be locked here? In case more multicast traffic comes along? This commit was brought to you via an Atheros AR5210, associated to an 3x3 HT40

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

2012-03-09 Thread Adrian Chadd
Author: adrian Date: Fri Mar 9 22:58:34 2012 New Revision: 232753 URL: http://svn.freebsd.org/changeset/base/232753 Log: Document that we may end up with some suboptimal handling of data frames with stations in power saving mode. I'm not (yet) sure how to handle TX'ing aggregates frames

svn commit: r232754 - in head: share/mk sys/boot/i386/boot2

2012-03-09 Thread Jung-uk Kim
Author: jkim Date: Fri Mar 9 23:30:30 2012 New Revision: 232754 URL: http://svn.freebsd.org/changeset/base/232754 Log: Make boot2 build with Clang again. Submitted by: dim (bsd.sys.mk) Reviewed by: dim, jhb Modified: head/share/mk/bsd.sys.mk head/sys/boot/i386/boot2/boot2.c

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

2012-03-09 Thread Ryan Stone
Author: rstone Date: Sat Mar 10 02:26:12 2012 New Revision: 232756 URL: http://svn.freebsd.org/changeset/base/232756 Log: MFC r230984: Whenever a new kernel thread is spawned, explicitly clear any CPU affinity set on the new thread. This prevents the thread from inadvertently

svn commit: r232757 - stable/8/sys/kern

2012-03-09 Thread Ryan Stone
Author: rstone Date: Sat Mar 10 02:27:04 2012 New Revision: 232757 URL: http://svn.freebsd.org/changeset/base/232757 Log: MFC r230984: Whenever a new kernel thread is spawned, explicitly clear any CPU affinity set on the new thread. This prevents the thread from inadvertently

svn commit: r232763 - head/sys/dev/wtap

2012-03-09 Thread Adrian Chadd
Author: adrian Date: Sat Mar 10 04:02:52 2012 New Revision: 232763 URL: http://svn.freebsd.org/changeset/base/232763 Log: Enforce that wtap requires VIMAGE to be useful. Modified: head/sys/dev/wtap/if_wtap.c Modified: head/sys/dev/wtap/if_wtap.c

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

2012-03-09 Thread Adrian Chadd
Author: adrian Date: Sat Mar 10 04:14:04 2012 New Revision: 232764 URL: http://svn.freebsd.org/changeset/base/232764 Log: Don't flood the cabq/mcastq with frames. In a very noisy 2.4GHz environment (with HT/40 enabled, making it worse) I saw the following occur: * the air was

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

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 05:38:04 2012 New Revision: 232765 URL: http://svn.freebsd.org/changeset/base/232765 Log: o) Bump INTRCOUNT_COUNT to 256, since Octeon already has 128. XXX It would be good to use a better way to size intrcnt. o) Fix literal 4s that are supposed to be

svn commit: r232766 - head/sys/dev/bge

2012-03-09 Thread Pyun YongHyeon
Author: yongari Date: Sat Mar 10 06:12:14 2012 New Revision: 232766 URL: http://svn.freebsd.org/changeset/base/232766 Log: After r232403, DMA transactions does not cross 4GB boundary for all PCI devices. Remove driver workaround for 4GB boundary issue. Modified: head/sys/dev/bge/if_bge.c

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

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 06:31:28 2012 New Revision: 232767 URL: http://svn.freebsd.org/changeset/base/232767 Log: Reduce diffs with freebsd32_sysarch. Modified: head/sys/mips/mips/sys_machdep.c Modified: head/sys/mips/mips/sys_machdep.c

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

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 06:43:41 2012 New Revision: 232768 URL: http://svn.freebsd.org/changeset/base/232768 Log: Don't truncate physical addresses to 32-bits. Modified: head/sys/mips/mips/nexus.c Modified: head/sys/mips/mips/nexus.c

svn commit: r232769 - in head/sys: conf mips/mips

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 06:45:21 2012 New Revision: 232769 URL: http://svn.freebsd.org/changeset/base/232769 Log: Get rid of mainbus.c. The version in nexus.c is being used and is perfectly-sufficient and equally-crufty. Deleted: head/sys/mips/mips/mainbus.c Modified:

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

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 06:54:37 2012 New Revision: 232770 URL: http://svn.freebsd.org/changeset/base/232770 Log: o) Remove some CPU_CNMIPS-related magical thinking about the status register's contents for user programs. o) Conditionalize the installation of an XTLB handler on

svn commit: r232773 - head/sys/mips/include

2012-03-09 Thread Juli Mallett
Author: jmallett Date: Sat Mar 10 07:54:41 2012 New Revision: 232773 URL: http://svn.freebsd.org/changeset/base/232773 Log: Use ABI to determine bus_addr_t for cnMIPS. Modified: head/sys/mips/include/_bus.h Modified: head/sys/mips/include/_bus.h