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

2015-08-01 Thread Ed Schouten
Author: ed Date: Sat Aug 1 07:21:14 2015 New Revision: 286146 URL: https://svnweb.freebsd.org/changeset/base/286146 Log: Add kern_shm_open(). This allows you to specify the capabilities that the new file descriptor should have. This allows us to create shared memory objects that only h

svn commit: r286147 - head/sys/compat/cloudabi

2015-08-01 Thread Ed Schouten
Author: ed Date: Sat Aug 1 07:51:48 2015 New Revision: 286147 URL: https://svnweb.freebsd.org/changeset/base/286147 Log: Allow CloudABI processes to create shared memory objects. Summary: Use the newly created `kern_shm_open()` function to create objects with just the rights that are a

svn commit: r286148 - head/usr.sbin/chkgrp

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 08:35:20 2015 New Revision: 286148 URL: https://svnweb.freebsd.org/changeset/base/286148 Log: Use strtoumax instead of strtoul Modified: head/usr.sbin/chkgrp/chkgrp.c Modified: head/usr.sbin/chkgrp/chkgrp.c ===

svn commit: r286149 - head/usr.sbin/chkgrp

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 08:39:55 2015 New Revision: 286149 URL: https://svnweb.freebsd.org/changeset/base/286149 Log: Handle +:*:: the same way we handle +::: when checking group file The first is what the documentation recommands for NIS client Modified: head/usr.sbin/chkgrp/chkgr

Re: svn commit: r286142 - head/sys/net

2015-08-01 Thread Ed Schouten
Hi Luiz, 2015-07-31 23:43 GMT+02:00 Luiz Otavio O Souza : > - while (d->bd_hbuf_in_use) > - mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock, > - PRINET, "bd_hbuf", 0); Would it make sense to replace them by an assertion, instead of omitting

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 09:55:47 2015 New Revision: 286150 URL: https://svnweb.freebsd.org/changeset/base/286150 Log: Cast uid/git to uintmax_t when using printf-like functions so the size of uid/gid size remains a implementation detail Modified: head/usr.sbin/pw/pw_conf.c head/usr.

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 10:10:13 2015 New Revision: 286151 URL: https://svnweb.freebsd.org/changeset/base/286151 Log: Validate the max_uid/max_gid boundaries and entry type in pw.conf Modified: head/usr.sbin/pw/pw_conf.c Modified: head/usr.sbin/pw/pw_conf.c

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 10:25:55 2015 New Revision: 286152 URL: https://svnweb.freebsd.org/changeset/base/286152 Log: Validate expiration days and password days from commmand line and pw.conf Modified: head/usr.sbin/pw/pw.c head/usr.sbin/pw/pw_conf.c head/usr.sbin/pw/pw_user.c hea

Re: svn commit: r286148 - head/usr.sbin/chkgrp

2015-08-01 Thread Bruce Evans
On Sat, 1 Aug 2015, Baptiste Daroussin wrote: Log: Use strtoumax instead of strtoul This does nothing good, and breaks 32-bit arches. Modified: head/usr.sbin/chkgrp/chkgrp.c == --- head/usr.sbin/chkgrp/chkgrp.c

svn commit: r286153 - head/usr.sbin/chkgrp

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 10:40:17 2015 New Revision: 286153 URL: https://svnweb.freebsd.org/changeset/base/286153 Log: Revert r286148 Modified: head/usr.sbin/chkgrp/chkgrp.c Modified: head/usr.sbin/chkgrp/chkgrp.c =

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 11:31:59 2015 New Revision: 286154 URL: https://svnweb.freebsd.org/changeset/base/286154 Log: Fix formatting of new code Fix sorting or errstr Remove useless initialisation or errstr Reported by: bde Modified: head/usr.sbin/pw/pw_conf.c Modified: head/

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 11:52:48 2015 New Revision: 286155 URL: https://svnweb.freebsd.org/changeset/base/286155 Log: Fix build Modified: head/usr.sbin/pw/pw_conf.c Modified: head/usr.sbin/pw/pw_conf.c == --- h

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 12:18:48 2015 New Revision: 286156 URL: https://svnweb.freebsd.org/changeset/base/286156 Log: Partial revert of r286152 More work needed on the cli validation Modified: head/usr.sbin/pw/pw.c head/usr.sbin/pw/pw_conf.c head/usr.sbin/pw/pw_user.c head/us

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

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sat Aug 1 12:20:55 2015 New Revision: 286157 URL: https://svnweb.freebsd.org/changeset/base/286157 Log: Remove things that crept in after badly checked revert Modified: head/usr.sbin/pw/pw_conf.c Modified: head/usr.sbin/pw/pw_conf.c ===

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-08-01 Thread Jilles Tjoelker
On Wed, Jul 29, 2015 at 08:52:52AM +1000, Bruce Evans wrote: > On Tue, 28 Jul 2015, Baptiste Daroussin wrote: > > Added: head/usr.sbin/pw/tests/pw_groupadd.sh > > == > > --- /dev/null 00:00:00 1970 (empty, because f

Re: svn commit: r286144 - head/usr.bin/wall

2015-08-01 Thread Eric van Gyzen
On 7/31/15 8:29 PM, Pedro F. Giffuni wrote: Author: pfg Date: Sat Aug 1 01:29:55 2015 New Revision: 286144 URL: https://svnweb.freebsd.org/changeset/base/286144 Log: Buffer overflow in wall(1). Revert r286102 and apply a cleaner fix. Tested for overflows by FORTIFY_SOURCE GSoC (with c

Re: svn commit: r286144 - head/usr.bin/wall

2015-08-01 Thread Pedro Giffuni
On 08/01/15 09:34, Eric van Gyzen wrote: On 7/31/15 8:29 PM, Pedro F. Giffuni wrote: Author: pfg Date: Sat Aug 1 01:29:55 2015 New Revision: 286144 URL: https://svnweb.freebsd.org/changeset/base/286144 Log: Buffer overflow in wall(1). Revert r286102 and apply a cleaner fix. Tested

svn commit: r286158 - in head: sys/kern tests/sys/kern

2015-08-01 Thread John Baldwin
Author: jhb Date: Sat Aug 1 16:27:52 2015 New Revision: 286158 URL: https://svnweb.freebsd.org/changeset/base/286158 Log: Clear P_TRACED before reparenting a detached process back to its original parent. Otherwise the debugee will be set as an orphan of the debugger. Add tests for trac

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-08-01 Thread Bruce Evans
On Sat, 1 Aug 2015, Jilles Tjoelker wrote: On Wed, Jul 29, 2015 at 08:52:52AM +1000, Bruce Evans wrote: On Tue, 28 Jul 2015, Baptiste Daroussin wrote: Added: head/usr.sbin/pw/tests/pw_groupadd.sh == --- /dev/null 00:

svn commit: r286159 - head/usr.bin/getopt

2015-08-01 Thread John-Mark Gurney
Author: jmg Date: Sat Aug 1 17:27:47 2015 New Revision: 286159 URL: https://svnweb.freebsd.org/changeset/base/286159 Log: use : instead of true... Change file file to file1 file2, partly for igor, and partly because it's odd to pass the same file to a command twice.. Modified: head/us

svn commit: r286160 - in head: share/misc usr.bin/calendar/calendars

2015-08-01 Thread Jason Unovitch
Author: junovitch (ports committer) Date: Sat Aug 1 17:29:52 2015 New Revision: 286160 URL: https://svnweb.freebsd.org/changeset/base/286160 Log: - Add myself to the committers-ports.dot and add my mentor relationship. - Add myself to the calendar.freebsd. Approved by: delphij (mentor)

Re: svn commit: r286147 - head/sys/compat/cloudabi

2015-08-01 Thread John Baldwin
On Saturday, August 01, 2015 07:51:48 AM Ed Schouten wrote: > Author: ed > Date: Sat Aug 1 07:51:48 2015 > New Revision: 286147 > URL: https://svnweb.freebsd.org/changeset/base/286147 > > Log: > Allow CloudABI processes to create shared memory objects. > > Summary: > Use the newly create

svn commit: r286161 - head/usr.bin/calendar/calendars

2015-08-01 Thread Jason Unovitch
Author: junovitch (ports committer) Date: Sat Aug 1 17:48:35 2015 New Revision: 286161 URL: https://svnweb.freebsd.org/changeset/base/286161 Log: - Add myself to the calendar.freebsd. (fix typo in r286160) Approved by: delphij (mentor) Differential Revision:https://reviews.FreeB

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-08-01 Thread Jilles Tjoelker
On Sun, Aug 02, 2015 at 02:59:00AM +1000, Bruce Evans wrote: > On Sat, 1 Aug 2015, Jilles Tjoelker wrote: > > These values are easily written using arithmetic expansion, for example > > largeid=$((0x1)). > Not really. Shells are also very buggy or limited in this area. I > often use old

svn commit: r286162 - head/sys/dev/e1000

2015-08-01 Thread Hans Petter Selasky
Author: hselasky Date: Sat Aug 1 20:40:37 2015 New Revision: 286162 URL: https://svnweb.freebsd.org/changeset/base/286162 Log: Free mbufs when busdma loading fails. Reviewed by: erj, sbruno MFC after:1 month Modified: head/sys/dev/e1000/if_em.c head/sys/dev/e1000/if_igb.c Modi

Re: svn commit: r286147 - head/sys/compat/cloudabi

2015-08-01 Thread Ed Schouten
2015-08-01 17:34 GMT+02:00 John Baldwin : > Can you please not use 'arc commit'? Sure! That said, maybe there is something we can do to make it integrate with our workflow so that it does work the way we want. Or maybe we could somehow administratively disable 'arc commit', so that others don't d

Re: svn commit: r286142 - head/sys/net

2015-08-01 Thread Guy Helmer
> On Aug 1, 2015, at 4:50 AM, Ed Schouten wrote: > > Hi Luiz, > > 2015-07-31 23:43 GMT+02:00 Luiz Otavio O Souza : >> - while (d->bd_hbuf_in_use) >> - mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock, >> - PRINET, "bd_hbuf", 0); > > Would

svn commit: r286163 - head/etc

2015-08-01 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 1 22:00:25 2015 New Revision: 286163 URL: https://svnweb.freebsd.org/changeset/base/286163 Log: rc.subr: Allow rc.conf.d with multi-directory local_startup. I also changed ${...%*/rc.d} to ${...%/rc.d} since the shortest match always has an empty string for t

svn commit: r286165 - head/sys/arm/ti

2015-08-01 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat Aug 1 23:10:36 2015 New Revision: 286165 URL: https://svnweb.freebsd.org/changeset/base/286165 Log: Set output pin initial value based on pin's pinmux pullup/pulldown setup Some of FDT blobs for AM335x-based devices use pinmux pullup/pulldown flag to setup initial

Re: svn commit: r286144 - head/usr.bin/wall

2015-08-01 Thread Pedro Giffuni
On 01/08/2015 10:01 a.m., Pedro Giffuni wrote: On 08/01/15 09:34, Eric van Gyzen wrote: On 7/31/15 8:29 PM, Pedro F. Giffuni wrote: Author: pfg Date: Sat Aug 1 01:29:55 2015 New Revision: 286144 URL: https://svnweb.freebsd.org/changeset/base/286144 Log: Buffer overflow in wall(1).

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

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:03:08 2015 New Revision: 286166 URL: https://svnweb.freebsd.org/changeset/base/286166 Log: Don't modify curthread->td_locks unless INVARIANTS is enabled. This field is only used in a KASSERT that verifies that no locks are held when returning to user mode

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

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:11:56 2015 New Revision: 286167 URL: https://svnweb.freebsd.org/changeset/base/286167 Log: Avoid dereferencing curthread->td_proc->p_cred in DTrace probe context. When a process is exiting, there is a narrow window where p_cred may be NULL while its threa

svn commit: r286168 - head/sys/net

2015-08-01 Thread John-Mark Gurney
Author: jmg Date: Sun Aug 2 00:15:52 2015 New Revision: 286168 URL: https://svnweb.freebsd.org/changeset/base/286168 Log: convert to C11's _Static_assert, and pull in sys/cdefs.h for compatibility w/ older non-C11 compilers... passed make tinerdbox.. Suggested by: imp Modified: h

svn commit: r286169 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:18:48 2015 New Revision: 286169 URL: https://svnweb.freebsd.org/changeset/base/286169 Log: Perform bounds checking when constructing a format string. This was detected by the FORTIFY_SOURCE build. PR: 201657 Reported by: pfg MFC after:

svn commit: r286170 - head/share/man/man9

2015-08-01 Thread John-Mark Gurney
Author: jmg Date: Sun Aug 2 00:22:14 2015 New Revision: 286170 URL: https://svnweb.freebsd.org/changeset/base/286170 Log: mark this function as deprecated, and put the warning first, since I doubt most people will read to the end... Note the use of sys/cdefs.h for pre-C11 compilers...

svn commit: r286171 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:23:18 2015 New Revision: 286171 URL: https://svnweb.freebsd.org/changeset/base/286171 Log: - Remove hardcoded paths for the perl executable. - Rather than assuming that a process is listening on 127.0.0.1:22, use nc(1) to find an available port and bind to

svn commit: r286172 - head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:24:21 2015 New Revision: 286172 URL: https://svnweb.freebsd.org/changeset/base/286172 Log: Don't hardcode the module or function component of lockstat probes. MFC after:1 week Modified: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/

svn commit: r286173 - head/usr.sbin/pw/tests

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sun Aug 2 00:33:34 2015 New Revision: 286173 URL: https://svnweb.freebsd.org/changeset/base/286173 Log: Remove netbsd tests on pw(8) First they are redundant with the tests we currently have on pw(8) Second they to modify the host database instead of being self contain

svn commit: r286174 - in head: cddl/usr.sbin/dtrace share/mk tools/build/options

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:37:33 2015 New Revision: 286174 URL: https://svnweb.freebsd.org/changeset/base/286174 Log: Add a src.conf option to build and install the DTrace test suite. Reviewed by: gnn, ngie Differential Revision:https://reviews.freebsd.org/D3195 Added:

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

2015-08-01 Thread Mark Johnston
Author: markj Date: Sun Aug 2 00:56:16 2015 New Revision: 286175 URL: https://svnweb.freebsd.org/changeset/base/286175 Log: Regenerate after r286174. Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5 ===

svn commit: r286176 - in head/tools/bus_space: . C Python

2015-08-01 Thread Marcel Moolenaar
Author: marcel Date: Sun Aug 2 01:09:30 2015 New Revision: 286176 URL: https://svnweb.freebsd.org/changeset/base/286176 Log: Rename busdma_sync() to busdma_sync_range() and rename the base and size parameters to ofs and len (resp). Add a new busdma_sync() that makes the entire MD coherent.

svn commit: r286177 - head/lib/libc/stdio

2015-08-01 Thread John Baldwin
Author: jhb Date: Sun Aug 2 02:00:20 2015 New Revision: 286177 URL: https://svnweb.freebsd.org/changeset/base/286177 Log: Fix a couple of markup typos. MFC after:2 weeks Modified: head/lib/libc/stdio/open_memstream.3 Modified: head/lib/libc/stdio/open_memstream.3 ==

Re: svn commit: r286173 - head/usr.sbin/pw/tests

2015-08-01 Thread Garrett Cooper
> On Aug 1, 2015, at 17:33, Baptiste Daroussin wrote: > > Author: bapt > Date: Sun Aug 2 00:33:34 2015 > New Revision: 286173 > URL: https://svnweb.freebsd.org/changeset/base/286173 > > Log: > Remove netbsd tests on pw(8) > > First they are redundant with the tests we currently have on pw(8

svn commit: r286178 - head

2015-08-01 Thread Baptiste Daroussin
Author: bapt Date: Sun Aug 2 02:23:30 2015 New Revision: 286178 URL: https://svnweb.freebsd.org/changeset/base/286178 Log: Add removed tests to ObsoleteFiles.inc Submitted by: ngie Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ===

Re: svn commit: r284345 - in head: . bin/cat bin/chflags bin/chio bin/chmod bin/cp bin/csh bin/date bin/dd bin/df bin/domainname bin/echo bin/ed bin/expr bin/freebsd-version bin/getfacl bin/hostname b

2015-08-01 Thread Simon J. Gerraty
Baptiste Daroussin wrote: > This breaks using fmake from ports because of usage of :U in sys.mk Oops - sorry. I saw Warner posted a patch for this which looked ok, but doesn't appear to have been committed. > is compatible with FreeBSD 9 (not that I'm just speaking about sys.mk not > other > pa

Re: svn commit: r286168 - head/sys/net

2015-08-01 Thread Bruce Evans
On Sun, 2 Aug 2015, John-Mark Gurney wrote: Log: convert to C11's _Static_assert, and pull in sys/cdefs.h for compatibility w/ older non-C11 compilers... This include is bogus. already depends on the includer including other headers that include . Mainly . defined massive namespace pollu

Re: svn commit: r284598 - head/share/mk

2015-08-01 Thread Simon J. Gerraty
Bryan Drewery wrote: > > head/share/mk/local.sys.mk > > I'm bothered by the amount of local.* files committed in the tree. I > expect, as a user and working in a downstream product, that a local.* > file is MINE, not FREEBSD. The pattern of using 'local' is quite common > as a *user* file. Yes

Re: svn commit: r286168 - head/sys/net

2015-08-01 Thread John-Mark Gurney
Bruce Evans wrote this message on Sun, Aug 02, 2015 at 14:10 +1000: > On Sun, 2 Aug 2015, John-Mark Gurney wrote: > > > Log: > > convert to C11's _Static_assert, and pull in sys/cdefs.h for > > compatibility w/ older non-C11 compilers... > > This include is bogus. already depends on the inclu

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-08-01 Thread Bruce Evans
On Sat, 1 Aug 2015, Jilles Tjoelker wrote: On Sun, Aug 02, 2015 at 02:59:00AM +1000, Bruce Evans wrote: On Sat, 1 Aug 2015, Jilles Tjoelker wrote: These values are easily written using arithmetic expansion, for example largeid=$((0x1)). Not really. Shells are also very buggy or lim

Re: svn commit: r286170 - head/share/man/man9

2015-08-01 Thread Bruce Evans
On Sun, 2 Aug 2015, John-Mark Gurney wrote: Log: mark this function as deprecated, and put the warning first, since I doubt most people will read to the end... Note the use of sys/cdefs.h for pre-C11 compilers... This function shouldn't be deprecated. It is a kernel wrapper with a good na