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

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 05:58:51 2013 New Revision: 252541 URL: http://svnweb.freebsd.org/changeset/base/252541 Log: MFC r251778: Cleanup and simplification in khelp_{register|deregister}_helper(). No functional changes. Modified: stable/9/sys/kern/kern_khelp.c Directory

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

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 05:59:48 2013 New Revision: 252542 URL: http://svnweb.freebsd.org/changeset/base/252542 Log: MFC r251778: Cleanup and simplification in khelp_{register|deregister}_helper(). No functional changes. Modified: stable/8/sys/kern/kern_khelp.c Directory

Re: svn commit: r252514 - head/sbin/swapon

2013-07-03 Thread Alexey Dokuchaev
On Tue, Jul 02, 2013 at 05:34:35PM +, Xin LI wrote: New Revision: 252514 URL: http://svnweb.freebsd.org/changeset/base/252514 Log: Plug a memory leak. Is MFC to stable/[89] applicable? If yes, can it be scheduled? ;-) ./danfe ___

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

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 06:20:47 2013 New Revision: 252543 URL: http://svnweb.freebsd.org/changeset/base/252543 Log: MFC r251787: Move hhook's per-vnet initialisation to an earlier SYSINIT SI_SUB stage to ensure all per-vnet related hhook initialisation is completed prior to

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

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 06:23:46 2013 New Revision: 252544 URL: http://svnweb.freebsd.org/changeset/base/252544 Log: MFC r251787: Move hhook's per-vnet initialisation to an earlier SYSINIT SI_SUB stage to ensure all per-vnet related hhook initialisation is completed prior to

svn commit: r252547 - in head: include lib/libc/iconv lib/libc/locale

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 07:03:19 2013 New Revision: 252547 URL: http://svnweb.freebsd.org/changeset/base/252547 Log: Replace the #define for iconv so it is for the function name instead of a macro with parameters. Remove a __DECONST hack and add consts instead for gnu libiconv API

svn commit: r252548 - head/sys/net

2013-07-03 Thread Hiroki Sato
Author: hrs Date: Wed Jul 3 07:31:07 2013 New Revision: 252548 URL: http://svnweb.freebsd.org/changeset/base/252548 Log: Fix a compiler warning. MFC after:1 week Modified: head/sys/net/if_bridge.c Modified: head/sys/net/if_bridge.c

svn commit: r252549 - stable/9/sys/sys

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 07:57:22 2013 New Revision: 252549 URL: http://svnweb.freebsd.org/changeset/base/252549 Log: MFC r251789: Now that the necessary infrastructure is in place to ensure hhook points which register after a khelp module will get hooked, move khelp module

svn commit: r252550 - stable/8/sys/sys

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 07:58:14 2013 New Revision: 252550 URL: http://svnweb.freebsd.org/changeset/base/252550 Log: MFC r251789: Now that the necessary infrastructure is in place to ensure hhook points which register after a khelp module will get hooked, move khelp module

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

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 08:20:40 2013 New Revision: 252551 URL: http://svnweb.freebsd.org/changeset/base/252551 Log: MFC r252052: Non-virtualised hhook points are supported as of r251732. Modified: stable/9/share/man/man9/hhook.9 Directory Properties: stable/9/share/man/

svn commit: r252552 - stable/8/share/man/man9

2013-07-03 Thread Lawrence Stewart
Author: lstewart Date: Wed Jul 3 08:21:05 2013 New Revision: 252552 URL: http://svnweb.freebsd.org/changeset/base/252552 Log: MFC r252052: Non-virtualised hhook points are supported as of r251732. Modified: stable/8/share/man/man9/hhook.9 Directory Properties: stable/8/share/man/

Re: should_yield problem [Was: svn commit: r251322 - head/sys/kern]

2013-07-03 Thread Andriy Gapon
on 03/07/2013 07:40 Bruce Evans said the following: On Tue, 2 Jul 2013, Andriy Gapon wrote: distance = (signed)( i1 - i2 ) With 2's complement and benign overflow, this is no different from 'distance = i1 - i2'. Given the particular context I'd say that there is a difference. But signed

svn commit: r252553 - stable/8/sys/dev/mfi

2013-07-03 Thread Steven Hartland
Author: smh Date: Wed Jul 3 08:35:14 2013 New Revision: 252553 URL: http://svnweb.freebsd.org/changeset/base/252553 Log: MFC r252471: Remove forced timeout of in-flight commands from mfi_timeout. While this prevents commands getting stuck forever there is no way to guarantee that

svn commit: r252554 - stable/9/sys/dev/mfi

2013-07-03 Thread Steven Hartland
Author: smh Date: Wed Jul 3 08:39:18 2013 New Revision: 252554 URL: http://svnweb.freebsd.org/changeset/base/252554 Log: MFC r252471: Remove forced timeout of in-flight commands from mfi_timeout. While this prevents commands getting stuck forever there is no way to guarantee that

Re: svn commit: r252408 - head/sbin/ifconfig

2013-07-03 Thread Ulrich Spörlein
On Sun, 2013-06-30 at 07:37:32 +, Hiroki Sato wrote: Author: hrs Date: Sun Jun 30 07:37:31 2013 New Revision: 252408 URL: http://svnweb.freebsd.org/changeset/base/252408 Log: Do not display a warning message in a jail without AF_INET6 support. MFC after: 3 days Modified:

svn commit: r252555 - in stable/9: sbin/ifconfig sys/amd64/conf sys/conf sys/contrib/rdma sys/contrib/rdma/krping sys/dev/cxgb/ulp/tom sys/i386/conf sys/modules sys/modules/rdma/krping sys/modules/...

2013-07-03 Thread Navdeep Parhar
Author: np Date: Wed Jul 3 09:25:29 2013 New Revision: 252555 URL: http://svnweb.freebsd.org/changeset/base/252555 Log: MFC/backport core kernel and userspace parts of r237263 (TCP_OFFLOAD rework). MFC r237563, r239511, r243603, r245915, r245916, r245919, r245921, r245922, r245924,

Re: svn commit: r252356 - in head: contrib/smbfs/mount_smbfs etc/defaults etc/mtree include lib lib/libprocstat rescue/rescue sbin/mount share/examples share/examples/etc share/mk sys/conf sys/kern sy

2013-07-03 Thread Ulrich Spörlein
On Fri, 2013-06-28 at 21:00:08 +, Davide Italiano wrote: Author: davide Date: Fri Jun 28 21:00:08 2013 New Revision: 252356 URL: http://svnweb.freebsd.org/changeset/base/252356 Log: - Trim an unused and bogus Makefile for mount_smbfs. - Reconnect with some minor modifications, in

svn commit: r252556 - head/usr.sbin/pw

2013-07-03 Thread Dag-Erling Smørgrav
Author: des Date: Wed Jul 3 09:48:24 2013 New Revision: 252556 URL: http://svnweb.freebsd.org/changeset/base/252556 Log: There is no reason to disallow setting the password or account expiry date to the current date. MFC after:3 days Modified: head/usr.sbin/pw/pw_user.c

svn commit: r252557 - head/sbin/ifconfig

2013-07-03 Thread Hiroki Sato
Author: hrs Date: Wed Jul 3 09:50:59 2013 New Revision: 252557 URL: http://svnweb.freebsd.org/changeset/base/252557 Log: Fix a typo (s/error/errno/). Modified: head/sbin/ifconfig/af_nd6.c Modified: head/sbin/ifconfig/af_nd6.c

svn commit: r252558 - head/sys/fs/smbfs

2013-07-03 Thread Davide Italiano
Author: davide Date: Wed Jul 3 10:31:45 2013 New Revision: 252558 URL: http://svnweb.freebsd.org/changeset/base/252558 Log: - Fix double frees/user after free. - Allocate using smb_rq_alloc() instead of inlining it. Reported by: uqs Found with: Coverity Scan Modified:

Re: svn commit: r252356 - in head: contrib/smbfs/mount_smbfs etc/defaults etc/mtree include lib lib/libprocstat rescue/rescue sbin/mount share/examples share/examples/etc share/mk sys/conf sys/kern sy

2013-07-03 Thread Davide Italiano
On Wed, Jul 3, 2013 at 11:28 AM, Ulrich Spörlein u...@freebsd.org wrote: On Fri, 2013-06-28 at 21:00:08 +, Davide Italiano wrote: Author: davide Date: Fri Jun 28 21:00:08 2013 New Revision: 252356 URL: http://svnweb.freebsd.org/changeset/base/252356 Log: - Trim an unused and bogus

Re: svn commit: r252408 - head/sbin/ifconfig

2013-07-03 Thread Hiroki Sato
Ulrich Spörlein u...@freebsd.org wrote in 20130703092307.ga2...@acme.spoerlein.net: uqif ((s6 = socket(AF_INET6, SOCK_DGRAM, 0)) 0) { uq - if (errno != EAFNOSUPPORT) uq + if (errno != EAFNOSUPPORT error != EPROTONOSUPPORT) uqwarn(socket(AF_INET6,

svn commit: r252561 - head/tools/build/options

2013-07-03 Thread Niclas Zeising
Author: zeising (doc,ports committer) Date: Wed Jul 3 12:36:47 2013 New Revision: 252561 URL: http://svnweb.freebsd.org/changeset/base/252561 Log: Document WITHOUT_SVNLITE and WITH_SVN. PR: docs/180025 Submitted by: Garrett Cooper yaneurab...@gmail.com Added:

Re: should_yield problem [Was: svn commit: r251322 - head/sys/kern]

2013-07-03 Thread Andriy Gapon
on 02/07/2013 21:11 Andriy Gapon said the following: on 02/07/2013 20:59 Ed Maste said the following: What about just initializing td_swvoltick to ticks at td creation? I like this idea. What would be the best place(s) to do the initialization? Or, perhaps, td_swvoltick should be moved to

svn commit: r252562 - head/share/man/man5

2013-07-03 Thread Niclas Zeising
Author: zeising (doc,ports committer) Date: Wed Jul 3 12:53:06 2013 New Revision: 252562 URL: http://svnweb.freebsd.org/changeset/base/252562 Log: Regenerate after r252561 PR: docs/180025 Submitted by: Garrett Cooper yaneurab...@gmail.com Modified:

svn commit: r252563 - stable/9/sys/netinet6

2013-07-03 Thread Andrey V. Elsukov
Author: ae Date: Wed Jul 3 12:58:17 2013 New Revision: 252563 URL: http://svnweb.freebsd.org/changeset/base/252563 Log: MFC r251995: Use ICMP6STAT_INC() macro for ICMPv6 errors accounting. Modified: stable/9/sys/netinet6/icmp6.c Directory Properties: stable/9/sys/ (props changed)

svn commit: r252564 - head/share/man/man5

2013-07-03 Thread Niclas Zeising
Author: zeising (doc,ports committer) Date: Wed Jul 3 12:58:53 2013 New Revision: 252564 URL: http://svnweb.freebsd.org/changeset/base/252564 Log: Revert previous revision, local change that accidentally snuck in. Modified: head/share/man/man5/rc.conf.5 Modified:

svn commit: r252565 - stable/9/sys/netinet6

2013-07-03 Thread Andrey V. Elsukov
Author: ae Date: Wed Jul 3 13:00:35 2013 New Revision: 252565 URL: http://svnweb.freebsd.org/changeset/base/252565 Log: MFC r252007: Use RIP6STAT_INC() macro for raw ip6 statistics accounting. Modified: stable/9/sys/netinet6/raw_ip6.c stable/9/sys/netinet6/raw_ip6.h Directory

svn commit: r252566 - stable/9/sys/netinet6

2013-07-03 Thread Andrey V. Elsukov
Author: ae Date: Wed Jul 3 13:03:09 2013 New Revision: 252566 URL: http://svnweb.freebsd.org/changeset/base/252566 Log: MFC r252009: Use PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast statistics accounting. Modified: stable/9/sys/netinet6/ip6_mroute.c Directory

svn commit: r252567 - svnadmin/conf

2013-07-03 Thread Adrian Chadd
Author: adrian Date: Wed Jul 3 13:16:58 2013 New Revision: 252567 URL: http://svnweb.freebsd.org/changeset/base/252567 Log: Add loos into the committers list, mentored by yours truely. Approved by: core (implicit) Modified: svnadmin/conf/access svnadmin/conf/mentors Modified:

svn commit: r252569 - head/sys/cam/ctl

2013-07-03 Thread Alexander Motin
Author: mav Date: Wed Jul 3 14:58:11 2013 New Revision: 252569 URL: http://svnweb.freebsd.org/changeset/base/252569 Log: Fix NULL-deference kernel panic on attempt of destroying non-existing ramdisk-backed CTL LUN. Modified: head/sys/cam/ctl/ctl_backend_ramdisk.c Modified:

svn commit: r252577 - head/sys/netinet

2013-07-03 Thread Navdeep Parhar
Author: np Date: Wed Jul 3 17:27:32 2013 New Revision: 252577 URL: http://svnweb.freebsd.org/changeset/base/252577 Log: Catch up with r238990. LLE_DELETED does not clobber everything else in la_flags since said revision. Modified: head/sys/netinet/if_ether.c Modified:

Re: svn commit: r250953 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2013-07-03 Thread Alan Somers
This creates another panic on module unload when WITNESS is enabled, because the module exits while holding the fasttrap_cleanup_mtx. This patch fixes the problem. I'm not sure if the mtx_destroy() is necessary, but I would feel dirty to leave it out. Does this patch look good to you? Index:

svn commit: r252576 - head/sys/dev/acpica

2013-07-03 Thread John Baldwin
Author: jhb Date: Wed Jul 3 17:26:05 2013 New Revision: 252576 URL: http://svnweb.freebsd.org/changeset/base/252576 Log: Don't perform the acpi_DeviceIsPresent() check for PCI-PCI bridges. If we are probing a PCI-PCI bridge it is because we found one by enumerating the devices on a PCI

Re: svn commit: r250953 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2013-07-03 Thread Mark Johnston
On Wed, Jul 3, 2013 at 1:28 PM, Alan Somers asom...@freebsd.org wrote: This creates another panic on module unload when WITNESS is enabled, because the module exits while holding the fasttrap_cleanup_mtx. This patch fixes the problem. I'm not sure if the mtx_destroy() is necessary, but I

Re: svn commit: r250953 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2013-07-03 Thread asomers
Great timing. I think that's only a few hours more recent than my latest src checkout. On Wed, Jul 3, 2013 at 11:35 AM, Mark Johnston ma...@freebsd.org wrote: On Wed, Jul 3, 2013 at 1:28 PM, Alan Somers asom...@freebsd.org wrote: This creates another panic on module unload when WITNESS is

svn commit: r252580 - head/sys/dev/qlxgbe

2013-07-03 Thread David C Somayajulu
Author: davidcs Date: Wed Jul 3 17:57:35 2013 New Revision: 252580 URL: http://svnweb.freebsd.org/changeset/base/252580 Log: Port 0 needs to wait for ACK only if it issued the RESET. Modified: head/sys/dev/qlxgbe/ql_os.c Modified: head/sys/dev/qlxgbe/ql_os.c

svn commit: r252581 - svnadmin/conf

2013-07-03 Thread Gavin Atkinson
Author: gavin Date: Wed Jul 3 18:04:46 2013 New Revision: 252581 URL: http://svnweb.freebsd.org/changeset/base/252581 Log: Remove jinmei, as he handed his commit bit back for safekeeping. This should have been committed as part of r252465. Approved by: core Modified:

svn commit: r252582 - in head/usr.bin: mkcsmapper mkesdb

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 18:25:27 2013 New Revision: 252582 URL: http://svnweb.freebsd.org/changeset/base/252582 Log: Attempt to deal with a compile failure that shows up with gcc, which has -Werror on. Without this, yylex() is inconsistently or redundantly defined. Modified:

svn commit: r252583 - in head: lib/libc/iconv lib/libiconv_modules/BIG5 lib/libiconv_modules/DECHanyu lib/libiconv_modules/EUC lib/libiconv_modules/EUCTW lib/libiconv_modules/GBK2K lib/libiconv_mod...

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 18:27:45 2013 New Revision: 252583 URL: http://svnweb.freebsd.org/changeset/base/252583 Log: As a followup to r252547, propate const down the call stack. Modified: head/lib/libc/iconv/citrus_none.c head/lib/libc/iconv/citrus_stdenc.h

svn commit: r252584 - head/lib/libc/iconv

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 18:35:21 2013 New Revision: 252584 URL: http://svnweb.freebsd.org/changeset/base/252584 Log: Make it clear that there are three separate internal locks. Modified: head/lib/libc/iconv/citrus_csmapper.c head/lib/libc/iconv/citrus_iconv.c

svn commit: r252585 - head/sys/netinet

2013-07-03 Thread Michael Tuexen
Author: tuexen Date: Wed Jul 3 18:48:43 2013 New Revision: 252585 URL: http://svnweb.freebsd.org/changeset/base/252585 Log: Code cleanups. MFC after: 3 days Modified: head/sys/netinet/sctp_indata.c head/sys/netinet/sctp_indata.h head/sys/netinet/sctp_input.c

svn commit: r252586 - head/sys/boot/i386/gptboot

2013-07-03 Thread Warren Block
Author: wblock (doc committer) Date: Wed Jul 3 18:53:36 2013 New Revision: 252586 URL: http://svnweb.freebsd.org/changeset/base/252586 Log: Add descriptions to the FILES list, fix some mdoc complaints, move the neither entry out of the table in BOOTING. Submitted by: joeld Reviewed

svn commit: r252587 - head/contrib/llvm/tools/clang/lib/Sema

2013-07-03 Thread Dimitry Andric
Author: dim Date: Wed Jul 3 19:08:10 2013 New Revision: 252587 URL: http://svnweb.freebsd.org/changeset/base/252587 Log: Pull in r185446 from clang trunk: Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout. Reported by: glebius Modified:

svn commit: r252588 - stable/9

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 19:12:35 2013 New Revision: 252588 URL: http://svnweb.freebsd.org/changeset/base/252588 Log: MFC: r238051: Add hier as an alternate spelling of hierarchy to match hier(9). Modified: stable/9/Makefile (contents, props changed) stable/9/Makefile.inc1

svn commit: r252590 - vendor/v4l/dist

2013-07-03 Thread Alexander Leidinger
Author: netchild Date: Wed Jul 3 19:56:39 2013 New Revision: 252590 URL: http://svnweb.freebsd.org/changeset/base/252590 Log: Update videodev2.h to the version from linux kernel 2.6.34.14. This version is dual-licensed: 3 clause BSD license and GPL v2+. Modified:

svn commit: r252591 - vendor/v4l/2.6.34.14

2013-07-03 Thread Alexander Leidinger
Author: netchild Date: Wed Jul 3 20:08:22 2013 New Revision: 252591 URL: http://svnweb.freebsd.org/changeset/base/252591 Log: Tag 2.6.34.14. Added: vendor/v4l/2.6.34.14/ - copied from r252372, vendor/v4l/dist/ Replaced: vendor/v4l/2.6.34.14/videodev2.h - copied unchanged from

svn commit: r252592 - head/sys/dev/cpuctl

2013-07-03 Thread Rui Paulo
Author: rpaulo Date: Wed Jul 3 20:19:23 2013 New Revision: 252592 URL: http://svnweb.freebsd.org/changeset/base/252592 Log: Typos in comments. Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c

svn commit: r252593 - head/sys/conf

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 20:21:39 2013 New Revision: 252593 URL: http://svnweb.freebsd.org/changeset/base/252593 Log: Move static ZFS compile option to the other static file system options. Modified: head/sys/conf/options Modified: head/sys/conf/options

svn commit: r252594 - head/sys/conf

2013-07-03 Thread Peter Wemm
Author: peter Date: Wed Jul 3 20:22:12 2013 New Revision: 252594 URL: http://svnweb.freebsd.org/changeset/base/252594 Log: Add an entry for filemon. Modified: head/sys/conf/files head/sys/conf/options Modified: head/sys/conf/files

svn commit: r252595 - stable/9/usr.bin/truss

2013-07-03 Thread Mateusz Guzik
Author: mjg Date: Wed Jul 3 20:24:37 2013 New Revision: 252595 URL: http://svnweb.freebsd.org/changeset/base/252595 Log: MFC r252414: truss: recognize O_DIRECTORY, O_EXEC, O_TTY_INIT and O_CLOEXEC Modified: stable/9/usr.bin/truss/syscalls.c Directory Properties: stable/9/usr.bin/truss/

svn commit: r252596 - head/usr.bin/rwho

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:28:33 2013 New Revision: 252596 URL: http://svnweb.freebsd.org/changeset/base/252596 Log: Style cleanups. Submitted by: Mariusz Zaborski osho...@freebsd.org Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after:1 month Modified:

svn commit: r252597 - head/sys/dev/cpuctl

2013-07-03 Thread Rui Paulo
Author: rpaulo Date: Wed Jul 3 20:29:15 2013 New Revision: 252597 URL: http://svnweb.freebsd.org/changeset/base/252597 Log: Increase the microcode max size to 16K to accomodate more recent Intel firmware. Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c

svn commit: r252598 - head/usr.bin/rwho

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:42:10 2013 New Revision: 252598 URL: http://svnweb.freebsd.org/changeset/base/252598 Log: Sandbox rwho(1) using capability mode and Capsicum capabilities. rwho(1) gets only read-only access to /var/rwho/ directory. Submitted by: Mariusz Zaborski

svn commit: r252599 - head/usr.bin/rwho

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:44:47 2013 New Revision: 252599 URL: http://svnweb.freebsd.org/changeset/base/252599 Log: Few more style nits. MFC after:1 month Modified: head/usr.bin/rwho/rwho.c Modified: head/usr.bin/rwho/rwho.c

svn commit: r252600 - stable/9/usr.sbin/sysinstall

2013-07-03 Thread Devin Teske
Author: dteske Date: Wed Jul 3 20:54:25 2013 New Revision: 252600 URL: http://svnweb.freebsd.org/changeset/base/252600 Log: Fix grammar in a comment. Modified: stable/9/usr.sbin/sysinstall/package.c Modified: stable/9/usr.sbin/sysinstall/package.c

svn commit: r252601 - stable/8/usr.sbin/sysinstall

2013-07-03 Thread Devin Teske
Author: dteske Date: Wed Jul 3 20:55:49 2013 New Revision: 252601 URL: http://svnweb.freebsd.org/changeset/base/252601 Log: MFC r252600: Fix grammar in a comment. Modified: stable/8/usr.sbin/sysinstall/package.c Modified: stable/8/usr.sbin/sysinstall/package.c

svn commit: r252602 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 20:58:58 2013 New Revision: 252602 URL: http://svnweb.freebsd.org/changeset/base/252602 Log: Style cleanups. Submitted by: Mariusz Zaborski osho...@freebsd.org Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after:1 month Modified:

svn commit: r252606 - stable/9/bin/sleep

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:11:56 2013 New Revision: 252606 URL: http://svnweb.freebsd.org/changeset/base/252606 Log: MFC r251078,r251433: sleep: Improve nanosleep() error handling: * Work around kernel bugs that cause a spurious [EINTR] return if a debugger (such as truss(1))

svn commit: r252604 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:05:35 2013 New Revision: 252604 URL: http://svnweb.freebsd.org/changeset/base/252604 Log: MFC r250982: sigreturn(2): Remove ancient compatibility warning about 4.2BSD The HISTORY subsection still says that sigreturn() was added in 4.3BSD. Modified:

svn commit: r252603 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:04:20 2013 New Revision: 252603 URL: http://svnweb.freebsd.org/changeset/base/252603 Log: The whole sending functionality was implemented within signal handler, which is very bad idea. Split sending and receiving in two processes, which fixes this problem and

svn commit: r252605 - head/usr.sbin/rwhod

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:07:02 2013 New Revision: 252605 URL: http://svnweb.freebsd.org/changeset/base/252605 Log: Sandbox rwhod(8) receiver process using capability mode and Capsicum capabilities. rwhod(8) receiver can now only receive packages, write to /var/rwho/ directory

svn commit: r252607 - stable/9/bin/test

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:14:57 2013 New Revision: 252607 URL: http://svnweb.freebsd.org/changeset/base/252607 Log: MFC r251209: test(1): List non-standard primaries. Modified: stable/9/bin/test/test.1 Directory Properties: stable/9/bin/test/ (props changed) Modified:

svn commit: r252608 - in head: include lib/libc/stdlib

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 21:21:54 2013 New Revision: 252608 URL: http://svnweb.freebsd.org/changeset/base/252608 Log: 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffe] range, so

svn commit: r252609 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:22:47 2013 New Revision: 252609 URL: http://svnweb.freebsd.org/changeset/base/252609 Log: MFC r248692: sh(1): Mention possible ambiguities with $(( and ((. In some other shells, things like $((a);(b)) are command substitutions. Also, there are shells

svn commit: r252610 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:25:46 2013 New Revision: 252610 URL: http://svnweb.freebsd.org/changeset/base/252610 Log: MFC r248870 by joel: Minor mdoc fix in previous commit. Modified: stable/9/bin/sh/sh.1 Directory Properties: stable/9/bin/sh/ (props changed) Modified:

svn commit: r252611 - stable/9/bin/sh

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:31:13 2013 New Revision: 252611 URL: http://svnweb.freebsd.org/changeset/base/252611 Log: MFC r251763: sh(1): A subshell environment has its own rlimits (ulimit). This has always been the case and is intended (just like cd). This matches Austin group

svn commit: r252612 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:41:35 2013 New Revision: 252612 URL: http://svnweb.freebsd.org/changeset/base/252612 Log: MFp4: @229469: Garbage-collect dead prototypes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/dhcpd.h

svn commit: r252613 - in stable/9/tools/regression/bin/sh: builtins execution expansion

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:43:41 2013 New Revision: 252613 URL: http://svnweb.freebsd.org/changeset/base/252613 Log: MFC r245383,245392,247190,249220,251180,251797: New sh testcases. These already work on stable/9. Added: stable/9/tools/regression/bin/sh/builtins/break4.4 -

svn commit: r252614 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:45:29 2013 New Revision: 252614 URL: http://svnweb.freebsd.org/changeset/base/252614 Log: MFp4 @229470: Remove unused argument from send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/bpf.c

svn commit: r252615 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:49:10 2013 New Revision: 252615 URL: http://svnweb.freebsd.org/changeset/base/252615 Log: MFp4 @229471: Remove unused argument from assemble_hw_header(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/bpf.c

svn commit: r252616 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:53:54 2013 New Revision: 252616 URL: http://svnweb.freebsd.org/changeset/base/252616 Log: MFp4 @229472: Use the same type for 'from' and 'to' argument in send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252617 - in stable/9: bin/sh tools/regression/bin/sh/builtins

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 21:56:25 2013 New Revision: 252617 URL: http://svnweb.freebsd.org/changeset/base/252617 Log: MFC r248349: sh: Recognize -- and explicitly reject options in wait builtin. If syntactically invalid job identifiers are to be taken as jobs that exited with

svn commit: r252618 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:57:24 2013 New Revision: 252618 URL: http://svnweb.freebsd.org/changeset/base/252618 Log: MFp4 @229473: No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252619 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 21:58:26 2013 New Revision: 252619 URL: http://svnweb.freebsd.org/changeset/base/252619 Log: MFp4 @229474: iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252620 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:01:52 2013 New Revision: 252620 URL: http://svnweb.freebsd.org/changeset/base/252620 Log: MFp4 @229476,229478: Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in

svn commit: r252621 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:03:19 2013 New Revision: 252621 URL: http://svnweb.freebsd.org/changeset/base/252621 Log: Remove redundant white-spaces. Modified: head/sbin/dhclient/dhclient.c Modified: head/sbin/dhclient/dhclient.c

svn commit: r252622 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 22:04:35 2013 New Revision: 252622 URL: http://svnweb.freebsd.org/changeset/base/252622 Log: MFC r248774: accept(2): Mention inheritance of O_ASYNC and signal destination. While almost nobody uses O_ASYNC, and rightly so, the inheritance of the related

svn commit: r252623 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:05:36 2013 New Revision: 252623 URL: http://svnweb.freebsd.org/changeset/base/252623 Log: MFp4 @229477: The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use

svn commit: r252624 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:07:55 2013 New Revision: 252624 URL: http://svnweb.freebsd.org/changeset/base/252624 Log: MFp4 @229479: - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD

svn commit: r252625 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:09:02 2013 New Revision: 252625 URL: http://svnweb.freebsd.org/changeset/base/252625 Log: MFp4 @229480: Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252626 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:12:54 2013 New Revision: 252626 URL: http://svnweb.freebsd.org/changeset/base/252626 Log: MFp4 @229481: Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move

svn commit: r252627 - stable/9/lib/libc/sys

2013-07-03 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 3 22:14:12 2013 New Revision: 252627 URL: http://svnweb.freebsd.org/changeset/base/252627 Log: MFC r251181: fork(2): #include sys/types.h is not needed. Modified: stable/9/lib/libc/sys/fork.2 Directory Properties: stable/9/lib/libc/ (props changed)

svn commit: r252628 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:16:02 2013 New Revision: 252628 URL: http://svnweb.freebsd.org/changeset/base/252628 Log: MFp4 @229482: - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf

svn commit: r252629 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:17:29 2013 New Revision: 252629 URL: http://svnweb.freebsd.org/changeset/base/252629 Log: MFp4 @229483: Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252630 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:18:40 2013 New Revision: 252630 URL: http://svnweb.freebsd.org/changeset/base/252630 Log: MFp4 @229484: Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or

svn commit: r252631 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:19:43 2013 New Revision: 252631 URL: http://svnweb.freebsd.org/changeset/base/252631 Log: MFp4 @229485: Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified: head/sbin/dhclient/dhclient.c Modified:

svn commit: r252632 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:21:11 2013 New Revision: 252632 URL: http://svnweb.freebsd.org/changeset/base/252632 Log: MFp4 @229486: Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The

svn commit: r252633 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:22:29 2013 New Revision: 252633 URL: http://svnweb.freebsd.org/changeset/base/252633 Log: MFp4 @229487: Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed

svn commit: r252634 - head/sbin/dhclient

2013-07-03 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Jul 3 22:23:25 2013 New Revision: 252634 URL: http://svnweb.freebsd.org/changeset/base/252634 Log: MFp4 @229488: Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Modified:

svn commit: r252635 - stable/9/usr.sbin/pkg_install/lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:25:00 2013 New Revision: 252635 URL: http://svnweb.freebsd.org/changeset/base/252635 Log: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/9/usr.sbin/pkg_install/lib/exec.c Directory Properties: stable/9/ (props changed)

svn commit: r252636 - head/usr.bin/patch

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:44:26 2013 New Revision: 252636 URL: http://svnweb.freebsd.org/changeset/base/252636 Log: Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch: Make it so that 'patch FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy

svn commit: r252637 - head/usr.bin/patch

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:46:30 2013 New Revision: 252637 URL: http://svnweb.freebsd.org/changeset/base/252637 Log: Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch: Properly handle input lines containing NUL characters such that pgets() accurately fills the read

svn commit: r252638 - in stable/9/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:57:20 2013 New Revision: 252638 URL: http://svnweb.freebsd.org/changeset/base/252638 Log: Really MFC r252363 (sysconf(3) returns a long, not an int). Modified: stable/9/usr.sbin/pkg_install/add/extract.c stable/9/usr.sbin/pkg_install/create/pl.c

svn commit: r252639 - in stable/8/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 22:59:46 2013 New Revision: 252639 URL: http://svnweb.freebsd.org/changeset/base/252639 Log: MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/8/usr.sbin/pkg_install/add/extract.c

svn commit: r252640 - in stable/7/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 23:03:28 2013 New Revision: 252640 URL: http://svnweb.freebsd.org/changeset/base/252640 Log: MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified: stable/7/usr.sbin/pkg_install/add/extract.c

svn commit: r252641 - head/sys/amd64/vmm

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:05:17 2013 New Revision: 252641 URL: http://svnweb.freebsd.org/changeset/base/252641 Log: Verify that all bytes in the instruction buffer are consumed during decoding. Suggested by: grehan Modified: head/sys/amd64/vmm/vmm_instruction_emul.c Modified:

svn commit: r252642 - in stable/6/usr.sbin/pkg_install: add create lib

2013-07-03 Thread David E. O'Brien
Author: obrien Date: Wed Jul 3 23:06:58 2013 New Revision: 252642 URL: http://svnweb.freebsd.org/changeset/base/252642 Log: MF7: r252640 MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. Modified:

svn commit: r252643 - stable/9/sys/dev/mfi

2013-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 23:15:30 2013 New Revision: 252643 URL: http://svnweb.freebsd.org/changeset/base/252643 Log: MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be

svn commit: r252644 - stable/8/sys/dev/mfi

2013-07-03 Thread Mark Johnston
Author: markj Date: Wed Jul 3 23:16:33 2013 New Revision: 252644 URL: http://svnweb.freebsd.org/changeset/base/252644 Log: MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be

  1   2   >