svn commit: r267713 - stable/10/sys/kern

2014-06-22 Thread Konstantin Belousov
Author: kib Date: Sun Jun 22 08:30:43 2014 New Revision: 267713 URL: http://svnweb.freebsd.org/changeset/base/267713 Log: MFC r267255: Change the nblock mutex to rwlock. MFC r267264: Devolatile as needed. Modified: stable/10/sys/kern/vfs_bio.c Directory Properties: stable/10/ (pr

svn commit: r267714 - stable/10/sys/i386/i386

2014-06-22 Thread Konstantin Belousov
Author: kib Date: Sun Jun 22 08:32:31 2014 New Revision: 267714 URL: http://svnweb.freebsd.org/changeset/base/267714 Log: MFC r267492: Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT sysarch(2) code. Modified: stable/10/sys/i386/i386/sys_machdep.c Directory Properti

svn commit: r267715 - in head: contrib/wpa/src/utils usr.sbin/wpa/hostapd usr.sbin/wpa/hostapd_cli usr.sbin/wpa/wpa_cli usr.sbin/wpa/wpa_passphrase usr.sbin/wpa/wpa_supplicant

2014-06-22 Thread John-Mark Gurney
Author: jmg Date: Sun Jun 22 10:00:33 2014 New Revision: 267715 URL: http://svnweb.freebsd.org/changeset/base/267715 Log: convert to using pidfile... This prevents multiple wpa_supplicants running at the same time causing problems w/ wifi not working.. the patch will be submitted upstrea

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

2014-06-22 Thread Alexander V. Chernikov
Author: melifaro Date: Sun Jun 22 11:32:23 2014 New Revision: 267716 URL: http://svnweb.freebsd.org/changeset/base/267716 Log: Permit changing cpu mask for cpu set 1 in presence of drivers binding their threads to particular CPU. Changing ithread cpu mask is now performed by special cpuse

svn commit: r267717 - stable/9/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 12:16:27 2014 New Revision: 267717 URL: http://svnweb.freebsd.org/changeset/base/267717 Log: MFC r267105: Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf(). This was suggested by kevlo@. Modified: stable/9/sys/netinet/sctp_output

svn commit: r267718 - stable/9/sys/conf

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 12:18:41 2014 New Revision: 267718 URL: http://svnweb.freebsd.org/changeset/base/267718 Log: MFC r267329: Add support for the SCTP_LOCAL_TRACE_BUF options. While there, fix some whitespaces. Modified: stable/9/sys/conf/options Directory Properties: sta

svn commit: r267719 - in head/sys/arm: conf tegra

2014-06-22 Thread Andrew Turner
Author: andrew Date: Sun Jun 22 15:15:52 2014 New Revision: 267719 URL: http://svnweb.freebsd.org/changeset/base/267719 Log: Remove the incomplete Tegra 2 code, nobody was maintaining it. The AC100 never booted to single user mode. It can be brought back if someone is willing to get it in

svn commit: r267720 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:21:14 2014 New Revision: 267720 URL: http://svnweb.freebsd.org/changeset/base/267720 Log: MFC r262252: Remove redundant code and fix a style error. Modified: stable/10/sys/netinet/sctp_input.c stable/10/sys/netinet/sctp_output.c Directory Properties:

svn commit: r267721 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:22:44 2014 New Revision: 267721 URL: http://svnweb.freebsd.org/changeset/base/267721 Log: MFC r263094: SCTP uses CRC32C and not Adler anymore. While there change the reference to RFC 4960. This does not change any code, just comments. Modified: stab

svn commit: r267722 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:26:16 2014 New Revision: 267722 URL: http://svnweb.freebsd.org/changeset/base/267722 Log: MFC r263096: Put the offset of the CRC32C in csum_data instead of 0. The virtio driver needs the offset to be stored in csum_data, like in the case for UDP and TC

svn commit: r267723 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:28:52 2014 New Revision: 267723 URL: http://svnweb.freebsd.org/changeset/base/267723 Log: MFC r263237: * Provide information in error causes in ASCII instead of proprietary binary format. * Add support for a diagnostic information error cause. Th

svn commit: r267724 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:30:52 2014 New Revision: 267724 URL: http://svnweb.freebsd.org/changeset/base/267724 Log: MFC r263921: Use SCTP_OVER_UDP_TUNNELING_PORT more consistently. Modified: stable/10/sys/netinet/sctp_constants.h stable/10/sys/netinet/sctp_sysctl.h Directory P

svn commit: r267725 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:32:41 2014 New Revision: 267725 URL: http://svnweb.freebsd.org/changeset/base/267725 Log: MFC r263922: Handle an edge case of address management similar to TCP. This needs to be reconsidered when the address handling will be reimplemented. The patch

svn commit: r267726 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:34:27 2014 New Revision: 267726 URL: http://svnweb.freebsd.org/changeset/base/267726 Log: MFC r264017: Increment the SSN only after processing the last fragment of an ordered user message. Modified: stable/10/sys/netinet/sctp_output.c Directory Proper

svn commit: r267727 - in head/tools/tools: . prstats

2014-06-22 Thread Gavin Atkinson
Author: gavin Date: Sun Jun 22 16:35:03 2014 New Revision: 267727 URL: http://svnweb.freebsd.org/changeset/base/267727 Log: With the migration from GNATS to Bugzilla, we no longer need a tool to graph GNATS PR statistics. It would be nice to have a similar tool for the new bug database, but

svn commit: r267728 - stable/10/sys/net

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:36:14 2014 New Revision: 267728 URL: http://svnweb.freebsd.org/changeset/base/267728 Log: MFC r264241: Call sctp_addr_change() from rt_addrmsg() instead of rt_newaddrmsg_fib(), since rt_addrmsg() gets also called from other functions. Modified: stable

svn commit: r267729 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:38:06 2014 New Revision: 267729 URL: http://svnweb.freebsd.org/changeset/base/267729 Log: MFC r264679: Send the correct error cause, when a DATA chunk with no user data is received. This bug was reported by Irene Ruengeler. Modified: stable/10/sys/net

svn commit: r267730 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:40:36 2014 New Revision: 267730 URL: http://svnweb.freebsd.org/changeset/base/267730 Log: MFC r264682: Use consistently debug output instead of an unconditional printf. Modified: stable/10/sys/netinet/sctp_indata.c Directory Properties: stable/10/ (

svn commit: r267731 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:42:09 2014 New Revision: 267731 URL: http://svnweb.freebsd.org/changeset/base/267731 Log: MFC r264701: Send also a packet containing an ABORT chunk in response to an OOTB packet containing a COOKIE-ECHO chunk. Modified: stable/10/sys/netinet/sctputil.

svn commit: r267732 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:43:59 2014 New Revision: 267732 URL: http://svnweb.freebsd.org/changeset/base/267732 Log: MFC r264704: Add consistency checks to ensure that fragments of a user message have the same U-bit. Modified: stable/10/sys/netinet/sctp_indata.c Directory Prope

svn commit: r267733 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:45:42 2014 New Revision: 267733 URL: http://svnweb.freebsd.org/changeset/base/267733 Log: MFC r264838: Don't free an mbuf twice. This only happens in very rare error cases where the peer sends illegal sequencing information in DATA chunks for an existi

svn commit: r267734 - in stable/10: . contrib/gcc etc etc/mtree gnu/usr.bin gnu/usr.bin/binutils/libbfd gnu/usr.bin/send-pr share/man/man7 share/termcap sys/mips/rmi sys/modules/svr4 usr.bin usr.bi...

2014-06-22 Thread Gavin Atkinson
Author: gavin Date: Sun Jun 22 16:48:21 2014 New Revision: 267734 URL: http://svnweb.freebsd.org/changeset/base/267734 Log: Merge r267482,r267483,r267486,r267577,r267671,r267672 from head: Remove send-pr and fix up all references to it. Replace it with a stub send-pr directing people

svn commit: r267735 - in stable/10/sys: dev/usb/net netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:50:46 2014 New Revision: 267735 URL: http://svnweb.freebsd.org/changeset/base/267735 Log: MFC r265455: Remove unused code. This is triggered by the bugreport of Sylvestre Ledru which deal with useless code in the user land stack: https://bugzilla.mozil

svn commit: r267736 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:54:59 2014 New Revision: 267736 URL: http://svnweb.freebsd.org/changeset/base/267736 Log: MFC r265691: For some UDP packets (for example with 200 byte payload) and IP options, the IP header and the UDP header are not in the same mbuf. Add code to in_de

svn commit: r267737 - stable/10/sys/netinet

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:57:07 2014 New Revision: 267737 URL: http://svnweb.freebsd.org/changeset/base/267737 Log: MFC r267105: Use ENOBUFS instead of ENOMEM in error situations related to m_uiotombuf(). This was suggested by kevlo@. Modified: stable/10/sys/netinet/sctp_outpu

svn commit: r267738 - in stable/9: . etc etc/mtree gnu/usr.bin gnu/usr.bin/binutils/libbfd gnu/usr.bin/send-pr share/man/man7 share/termcap sys/mips/rmi sys/modules/svr4 usr.bin

2014-06-22 Thread Gavin Atkinson
Author: gavin Date: Sun Jun 22 16:58:18 2014 New Revision: 267738 URL: http://svnweb.freebsd.org/changeset/base/267738 Log: Merge r267482,r267483,r267486,r267577,r267671,r267672 from head: Remove send-pr and fix up all references to it. Replace it with a stub send-pr directing people

svn commit: r267739 - stable/10/sys/conf

2014-06-22 Thread Michael Tuexen
Author: tuexen Date: Sun Jun 22 16:58:29 2014 New Revision: 267739 URL: http://svnweb.freebsd.org/changeset/base/267739 Log: MFC r267329: Add support for the SCTP_LOCAL_TRACE_BUF options. While there, fix some whitespaces. Modified: stable/10/sys/conf/options Directory Properties: st

svn commit: r267740 - in stable/10/sys: nfs rpc

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 18:01:40 2014 New Revision: 267740 URL: http://svnweb.freebsd.org/changeset/base/267740 Log: MFC r267221, r267278: Introduce new per-thread lock to protect the list of requests. This allows to slightly simplify svc_run_internal() code: if we processed all th

svn commit: r267741 - stable/10/sys/rpc

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 18:02:39 2014 New Revision: 267741 URL: http://svnweb.freebsd.org/changeset/base/267741 Log: MFC r267223: Remove st_idle variable, duplicating st_xprt. Modified: stable/10/sys/rpc/svc.c stable/10/sys/rpc/svc.h Directory Properties: stable/10/ (props change

svn commit: r267742 - stable/10/sys/rpc

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 18:03:53 2014 New Revision: 267742 URL: http://svnweb.freebsd.org/changeset/base/267742 Log: MFC r267228: Split RPC pool threads into number of smaller semi-isolated groups. Old design with unified thread pool was good from the point of thread utilization.

svn commit: r267743 - stable/10/sys/kern

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 18:06:11 2014 New Revision: 267743 URL: http://svnweb.freebsd.org/changeset/base/267743 Log: MFC r267232, r267239: Use atomics to modify numvnodes variable. This allows to mostly avoid lock usage in getnewvnode_[drop_]reserve(), that reduces number of global

svn commit: r267744 - svnadmin/conf

2014-06-22 Thread Kirk McKusick
Author: mckusick Date: Sun Jun 22 19:10:55 2014 New Revision: 267744 URL: http://svnweb.freebsd.org/changeset/base/267744 Log: Add Matt Ahrens as a new committer being mentored by me. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access

svn commit: r267745 - head/lib/libc/stdlib

2014-06-22 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jun 22 20:13:57 2014 New Revision: 267745 URL: http://svnweb.freebsd.org/changeset/base/267745 Log: getopt(3): recognize option:: as GNU extension for "optional options". Also ANSIfy a function declaration. While here update the OpenBSD patch level in getopt_long.

svn commit: r267746 - stable/10/usr.bin/patch

2014-06-22 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jun 22 20:24:17 2014 New Revision: 267746 URL: http://svnweb.freebsd.org/changeset/base/267746 Log: MFC r267490: patch: unsign the line length to avoid overflows. Patch(1) uses a short int for the line length, which is usually sufficient for regular diffs, but ma

svn commit: r267747 - stable/10/usr.bin/patch

2014-06-22 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jun 22 20:29:51 2014 New Revision: 267747 URL: http://svnweb.freebsd.org/changeset/base/267747 Log: MFC r267512: patch: add dry-run alias for compatibility with other implementations. Other implementations of patch(1), including GNU patch and "svn patch" have

svn commit: r267748 - stable/10/sys/kern

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:14:34 2014 New Revision: 267748 URL: http://svnweb.freebsd.org/changeset/base/267748 Log: MFC r267362: Remove unneeded mountlist_mtx acquisition from sync_fsync(). All struct mount fields accessed by sync_fsync() are protected by MNT_MTX. Modified: stabl

svn commit: r267749 - stable/10/sys/kern

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:16:18 2014 New Revision: 267749 URL: http://svnweb.freebsd.org/changeset/base/267749 Log: MFC r267392: Implement simple direct-mapped cache for popular filesystem identifiers to avoid congestion on global mountlist_mtx mutex in vfs_busyfs(), while traversing

svn commit: r267750 - stable/10/sys/vm

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:18:24 2014 New Revision: 267750 URL: http://svnweb.freebsd.org/changeset/base/267750 Log: MFC r267387: Allocating new bucket for bucket zone, never take it from the zone itself, since it will almost certanly fail. Take next bigger zone instead. This situ

svn commit: r267751 - stable/10/sys/vm

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:19:19 2014 New Revision: 267751 URL: http://svnweb.freebsd.org/changeset/base/267751 Log: MFC r267391: Introduce new "256 Bucket" zone to split requests and reduce congestion on "128 Bucket" zone lock. Modified: stable/10/sys/vm/uma_core.c Directory Propert

svn commit: r267752 - stable/10/sys/kern

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:21:27 2014 New Revision: 267752 URL: http://svnweb.freebsd.org/changeset/base/267752 Log: MFC r267351: Move root_mount_hold() functionality to separate mutex. It has nothing to share with mutex protecting list of mounted file systems. Modified: stable/10

svn commit: r267753 - stable/10/sys/nfs

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:26:46 2014 New Revision: 267753 URL: http://svnweb.freebsd.org/changeset/base/267753 Log: MFC r267479: Fix/improve fhe_stats sysctl output. Modified: stable/10/sys/nfs/nfs_fha.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/nfs

svn commit: r267754 - stable/10/sys/cam/ctl

2014-06-22 Thread Alexander Motin
Author: mav Date: Sun Jun 22 21:28:05 2014 New Revision: 267754 URL: http://svnweb.freebsd.org/changeset/base/267754 Log: MFC r267429: Fix some leaks on LUN creation error. Modified: stable/10/sys/cam/ctl/ctl_backend_block.c Directory Properties: stable/10/ (props changed) Modified: st

svn commit: r267755 - head/sys/kern

2014-06-22 Thread Mateusz Guzik
Author: mjg Date: Sun Jun 22 21:37:27 2014 New Revision: 267755 URL: http://svnweb.freebsd.org/changeset/base/267755 Log: Don't take filedesc lock in fdunshare(). We can read refcnt safely and only care if it is equal to 1. If it could suddenly change from 1 to something bigger the cod

svn commit: r267756 - head/lib/libc/stdlib

2014-06-22 Thread Andrey A. Chernov
Author: ache Date: Sun Jun 22 21:54:57 2014 New Revision: 267756 URL: http://svnweb.freebsd.org/changeset/base/267756 Log: Merge intermediate OpenBSD v1.25 changes (almost identical to ours) to reduce diff and bump OpenBSD patch level to v1.26. MFC after: 2 weeks Modified: head/li

Re: svn commit: r267745 - head/lib/libc/stdlib

2014-06-22 Thread Baptiste Daroussin
On Sun, Jun 22, 2014 at 08:13:58PM +, Pedro F. Giffuni wrote: > Author: pfg > Date: Sun Jun 22 20:13:57 2014 > New Revision: 267745 > URL: http://svnweb.freebsd.org/changeset/base/267745 > > Log: > getopt(3): recognize option:: as GNU extension for "optional options". > Will that allow t

Re: svn commit: r267745 - head/lib/libc/stdlib

2014-06-22 Thread Pedro Giffuni
Il giorno 22/giu/2014, alle ore 18:48, Baptiste Daroussin ha scritto: > On Sun, Jun 22, 2014 at 08:13:58PM +, Pedro F. Giffuni wrote: >> Author: pfg >> Date: Sun Jun 22 20:13:57 2014 >> New Revision: 267745 >> URL: http://svnweb.freebsd.org/changeset/base/267745 >> >> Log: >> getopt(3): r

svn commit: r267758 - head

2014-06-22 Thread Andrey A. Chernov
Author: ache Date: Mon Jun 23 00:54:56 2014 New Revision: 267758 URL: http://svnweb.freebsd.org/changeset/base/267758 Log: Change suggestion how to set MAKESYSPATH as broken incremental build workaround. Magic ".../share/mk" (search directories up to /) does not work for f.e. /usr/src/gnu/li

svn commit: r267759 - head/sys/cddl/dev/dtrace/amd64

2014-06-22 Thread Mark Johnston
Author: markj Date: Mon Jun 23 01:10:56 2014 New Revision: 267759 URL: http://svnweb.freebsd.org/changeset/base/267759 Log: Fix a couple of bugs on amd64 when fetching probe arguments beyond the first five for probes entered through a UD fault (i.e. FBT probes). Specifically, handle the f

svn commit: r267760 - head/sys/kern

2014-06-22 Thread Mateusz Guzik
Author: mjg Date: Mon Jun 23 01:28:18 2014 New Revision: 267760 URL: http://svnweb.freebsd.org/changeset/base/267760 Log: Tidy up fd-related functions called by do_execve o assert in each one that fdp is not shared o remove unnecessary NULL checks - all userspace processes have fdtables

svn commit: r267761 - in head/sys/cddl: contrib/opensolaris/uts/common/sys dev/dtrace/i386

2014-06-22 Thread Mark Johnston
Author: markj Date: Mon Jun 23 02:00:14 2014 New Revision: 267761 URL: http://svnweb.freebsd.org/changeset/base/267761 Log: Fix some bugs when fetching probe arguments in i386. Firstly ensure that the 4 byte-aligned dtrace_invop_callsite can be found and that it immediately follows the call

Re: svn commit: r267581 - in head/sys/dev/sound: pci pci/hda pcm

2014-06-22 Thread Hans Petter Selasky
Hi, Looks like this patch cause instant panic at USB audio detach: usbconfig -d 0.4 reset uaudio0: at uhub1, port 2, addr 4 (disconnected) vm_fault(0xc0661400, 0, 1, 0) -> 1 Fatal kernel mode data abort: 'Translation Fault (P)' trapframe: 0xd28b8b58 FSR=0017, FAR=002c, spsr=6113 r0

svn commit: r267762 - head/sys/dev/sound/pcm

2014-06-22 Thread Alexander Kabaev
Author: kan Date: Mon Jun 23 03:45:39 2014 New Revision: 267762 URL: http://svnweb.freebsd.org/changeset/base/267762 Log: Restore the check for non-NULL dmatag in sndbuf_free. The sound drivers that use own buffer management can use sndbuf_setup and not do any busdma allocation, so the dr

svn commit: r267763 - in head: share/man/man9 sys/netinet6

2014-06-22 Thread Kevin Lo
Author: kevlo Date: Mon Jun 23 05:17:39 2014 New Revision: 267763 URL: http://svnweb.freebsd.org/changeset/base/267763 Log: Catch up with r186809, correct comments. Modified: head/share/man/man9/domain.9 head/sys/netinet6/ip6protosw.h Modified: head/share/man/man9/domain.9

svn commit: r267764 - stable/10/sys/dev/cxgbe

2014-06-22 Thread Navdeep Parhar
Author: np Date: Mon Jun 23 05:39:10 2014 New Revision: 267764 URL: http://svnweb.freebsd.org/changeset/base/267764 Log: MFC r267689: Consider the total number of descriptors available (and not just those that are ready to be reclaimed) when deciding whether to resume tx after a stall.

svn commit: r267765 - stable/9/sys/dev/cxgbe

2014-06-22 Thread Navdeep Parhar
Author: np Date: Mon Jun 23 05:42:52 2014 New Revision: 267765 URL: http://svnweb.freebsd.org/changeset/base/267765 Log: MFC r267689: Consider the total number of descriptors available (and not just those that are ready to be reclaimed) when deciding whether to resume tx after a stall.

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

2014-06-22 Thread Konstantin Belousov
On Mon, Jun 23, 2014 at 01:28:18AM +, Mateusz Guzik wrote: > + KASSERT(fdp->fd_refcnt == 1, ("the fdtable should not be shared")); > FILEDESC_XLOCK(fdp); This is at least weird. Not incorrect, but the code now looks strange. The fd_refcnt == 1 assert just states the circumstances of