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: 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

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

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:

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: 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: 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: 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

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:

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: r252646 - head/sys/amd64/amd64

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:21:25 2013 New Revision: 252646 URL: http://svnweb.freebsd.org/changeset/base/252646 Log: If a superpage mapping is being removed then we need to ignore the PG_PDE_PAT bit when looking up the vm_page associated with the superpage's physical address. If

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

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Wed Jul 3 23:27:04 2013 New Revision: 252648 URL: http://svnweb.freebsd.org/changeset/base/252648 Log: In addition to prev. commit, for repeated rand_r(3) calls don't forget to compensate back at the end incremented at the start internal state. MFC after: 2

svn commit: r252652 - head/sys/arm/arm

2013-07-03 Thread Oleksandr Tymoshenko
Author: gonzo Date: Wed Jul 3 23:38:02 2013 New Revision: 252652 URL: http://svnweb.freebsd.org/changeset/base/252652 Log: Fix one of INVARIANTS-related UMA panics on ARM Force UMA zone to allocate service structures like slabs using own allocator. uma_debug code performs atomic ops on

svn commit: r252653 - head/sys/vm

2013-07-03 Thread Neel Natu
Author: neel Date: Wed Jul 3 23:38:37 2013 New Revision: 252653 URL: http://svnweb.freebsd.org/changeset/base/252653 Log: vm_phys_fictitious_reg_range() was losing the 'memattr' because it would be reset by pmap_page_init() right after being initialized in vm_page_initfake(). The

svn commit: r252657 - in head/sys: cam/scsi geom

2013-07-03 Thread Steven Hartland
Author: smh Date: Wed Jul 3 23:46:30 2013 New Revision: 252657 URL: http://svnweb.freebsd.org/changeset/base/252657 Log: Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940. Ensure that d_delmaxsize is always set, removing init to 0 which could cause future

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

2013-07-03 Thread Andrey A. Chernov
Author: ache Date: Thu Jul 4 00:02:10 2013 New Revision: 252668 URL: http://svnweb.freebsd.org/changeset/base/252668 Log: After fixing ranges restore POSIX requirement: rand() call without srand() must be the same as srand(1); rand(); (yet one increment) Modified:

svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Jim Harris
Author: jimharris Date: Thu Jul 4 00:26:24 2013 New Revision: 252672 URL: http://svnweb.freebsd.org/changeset/base/252672 Log: Fix printf argument mismatch reported by gcc on i386. Reported by: kargl Modified: head/sbin/nvmecontrol/firmware.c Modified: head/sbin/nvmecontrol/firmware.c

Re: svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Steve Kargl
On Thu, Jul 04, 2013 at 12:26:24AM +, Jim Harris wrote: Author: jimharris Date: Thu Jul 4 00:26:24 2013 New Revision: 252672 URL: http://svnweb.freebsd.org/changeset/base/252672 Log: Fix printf argument mismatch reported by gcc on i386. Reported by: kargl Thanks. --

svn commit: r252673 - head/sys/nfsclient

2013-07-03 Thread Rick Macklem
Author: rmacklem Date: Thu Jul 4 00:54:23 2013 New Revision: 252673 URL: http://svnweb.freebsd.org/changeset/base/252673 Log: A problem with the old NFS client where large writes to large files would sometimes result in a corrupted file was reported via email. This problem appears to have

Re: svn commit: r252672 - head/sbin/nvmecontrol

2013-07-03 Thread Bruce Evans
On Thu, 4 Jul 2013, Jim Harris wrote: Log: Fix printf argument mismatch reported by gcc on i386. This just substitutes one printf format with another. Modified: head/sbin/nvmecontrol/firmware.c == ---

svn commit: r252678 - head/share/misc

2013-07-03 Thread Luiz Otavio O Souza
Author: loos Date: Thu Jul 4 01:48:55 2013 New Revision: 252678 URL: http://svnweb.freebsd.org/changeset/base/252678 Log: - add myself to the committers list and add adrian as my mentor Approved by: adrian (mentor) Modified: head/share/misc/committers-src.dot Modified:

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

2013-07-03 Thread Bruce Evans
On Wed, 3 Jul 2013, Andrey A. Chernov wrote: 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 our RAND_MAX (0x7fff) is never reached because it is off by one,

svn commit: r252679 - in head/usr.bin: mail make

2013-07-03 Thread Kevin Lo
Author: kevlo Date: Thu Jul 4 03:24:58 2013 New Revision: 252679 URL: http://svnweb.freebsd.org/changeset/base/252679 Log: Remove unnecessary cast to pid_t. Modified: head/usr.bin/mail/popen.c head/usr.bin/make/job.c Modified: head/usr.bin/mail/popen.c

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

2013-07-03 Thread Andrey Chernov
On 04.07.2013 6:47, Bruce Evans wrote: Er, I think it is too dangerous to change either RAND_MAX or the offset without more preparation: - increasing the range returned (and increasing RAND_MAX to match) would obviously be binary-incompatible. Old binaries may have the old RAND_MAX built

svn commit: r252682 - head/usr.sbin/bhyve

2013-07-03 Thread Peter Grehan
Author: grehan Date: Thu Jul 4 05:35:56 2013 New Revision: 252682 URL: http://svnweb.freebsd.org/changeset/base/252682 Log: Support an optional mac= parameter to virtio-net config, to allow users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c

svn commit: r252683 - head/sys/kern

2013-07-03 Thread Alfred Perlstein
Author: alfred Date: Thu Jul 4 05:53:05 2013 New Revision: 252683 URL: http://svnweb.freebsd.org/changeset/base/252683 Log: The change in r236456 (atomic_store_rel not locked) exposed a bug in the ithread code where we could lose ithread interrupts if intr_event_schedule_thread() is called