Re: svn commit: r285973 - head/sys/dev/bxe

2015-07-31 Thread John Baldwin
On Tuesday, July 28, 2015 07:15:45 PM David C Somayajulu wrote: > Author: davidcs > Date: Tue Jul 28 19:15:44 2015 > New Revision: 285973 > URL: https://svnweb.freebsd.org/changeset/base/285973 > > Log: > - Avoid lock contention in the if_transmit callback by using trylock and >enqueueing th

Re: svn commit: r283998 - in head/sys: dev/drm dev/drm2 fs/devfs kern sys vm

2015-07-31 Thread John Baldwin
On Thursday, July 30, 2015 09:11:54 PM Oliver Pinter wrote: > Hi John! > > On Thu, Jun 4, 2015 at 9:41 PM, John Baldwin wrote: > > Author: jhb > > Date: Thu Jun 4 19:41:15 2015 > > New Revision: 283998 > > URL: https://svnweb.freebsd.org/changeset/base/283998 > > > > Log: > > Add a new file op

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

2015-07-31 Thread Bruce Evans
On Fri, 31 Jul 2015, Pedro Giffuni wrote: On 07/31/15 02:12, Bruce Evans wrote: On Fri, 31 Jul 2015, Pedro F. Giffuni wrote: ... static char errbuf[1024]; Another static buffer. The function is obviously not reentrant. This large static buffer mainly wastes space all the time instea

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

2015-07-31 Thread John Baldwin
On Sunday, July 26, 2015 10:53:33 AM Andrey V. Elsukov wrote: > Author: ae > Date: Sun Jul 26 10:53:32 2015 > New Revision: 285888 > URL: https://svnweb.freebsd.org/changeset/base/285888 > > Log: > Build debug version of rmlock's methods only when LOCK_DEBUG > 0. > > Currently LOCK_DEBUG is

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

2015-07-31 Thread Pedro F. Giffuni
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 clang). Suggested by: bde Reviewed by: O

svn commit: r286143 - head/sbin/setkey

2015-07-31 Thread George V. Neville-Neil
Author: gnn Date: Fri Jul 31 23:40:18 2015 New Revision: 286143 URL: https://svnweb.freebsd.org/changeset/base/286143 Log: Add support for keys that include 4 byte SALT values, including GCM and ICM/CTR modes for AES. Reviewed by: jmg MFC after:1 week Sponsored by: Rubicon Commun

svn commit: r286142 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 21:43:27 2015 New Revision: 286142 URL: https://svnweb.freebsd.org/changeset/base/286142 Log: Remove two unnecessary sleeps from the hot path in bpf(4). The first one never triggers because bpf_canfreebuf() can only be true for zero-copy buffers and zero-copy

svn commit: r286140 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 20:25:54 2015 New Revision: 286140 URL: https://svnweb.freebsd.org/changeset/base/286140 Log: Remove the sleep from the buffer allocation routine. The buffer must be allocated (or even changed) before the interface is set and thus, there is no need to verify

svn commit: r286139 - head/sys/net

2015-07-31 Thread Luiz Otavio O Souza
Author: loos Date: Fri Jul 31 20:02:12 2015 New Revision: 286139 URL: https://svnweb.freebsd.org/changeset/base/286139 Log: Do not allocate the buffers at opening of the descriptor, because once the buffer is allocated we are committed to a particular buffer method (BPF_BUFMODE_BUFFER in thi

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

2015-07-31 Thread Benjamin Kaduk
On Fri, Jul 31, 2015 at 12:37 PM, Warner Losh wrote: > > > On Jul 31, 2015, at 10:31 AM, John-Mark Gurney wrote: > > > > Do we support linking man pages between man3/man9? or should it just > > be in a comment? and in one section? > > Put them in section 9 with a note saying they work for user l

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

2015-07-31 Thread John-Mark Gurney
Warner Losh wrote this message on Fri, Jul 31, 2015 at 10:37 -0600: > > > On Jul 31, 2015, at 10:31 AM, John-Mark Gurney wrote: > > > > Ed Schouten wrote this message on Fri, Jul 31, 2015 at 11:24 +0200: > >> Maybe it would make more sense to just remove this manual page? > >> > >> It looks lik

svn commit: r286138 - head/sbin/setkey

2015-07-31 Thread George V. Neville-Neil
Author: gnn Date: Fri Jul 31 17:41:53 2015 New Revision: 286138 URL: https://svnweb.freebsd.org/changeset/base/286138 Log: Summary: Remove unsupported 3des-deriv encryption algorithm from documentation. Modified: head/sbin/setkey/setkey.8 Modified: head/sbin/setkey/setkey.8

svn commit: r286136 - head/usr.bin/brandelf

2015-07-31 Thread Ed Maste
Author: emaste Date: Fri Jul 31 16:45:42 2015 New Revision: 286136 URL: https://svnweb.freebsd.org/changeset/base/286136 Log: Use standard 'THE AUTHOR' license text Approved by: jmg Modified: head/usr.bin/brandelf/brandelf.1 Modified: head/usr.bin/brandelf/brandelf.1 ==

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

2015-07-31 Thread Warner Losh
> On Jul 31, 2015, at 10:31 AM, John-Mark Gurney wrote: > > Ed Schouten wrote this message on Fri, Jul 31, 2015 at 11:24 +0200: >> Maybe it would make more sense to just remove this manual page? >> >> It looks like there are already some pieces of code in our source tree >> that use _Static_ass

Re: svn commit: r286100 - in head/sys: net netipsec

2015-07-31 Thread John-Mark Gurney
NGie Cooper wrote this message on Thu, Jul 30, 2015 at 17:41 -0700: > On Thu, Jul 30, 2015 at 5:23 PM, John-Mark Gurney wrote: > > Author: jmg > > Date: Fri Jul 31 00:23:21 2015 > > New Revision: 286100 > > URL: https://svnweb.freebsd.org/changeset/base/286100 > > > > Log: > > Clean up this head

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

2015-07-31 Thread John-Mark Gurney
Ed Schouten wrote this message on Fri, Jul 31, 2015 at 11:24 +0200: > Maybe it would make more sense to just remove this manual page? > > It looks like there are already some pieces of code in our source tree > that use _Static_assert(), which is good. Maybe it would be better to > to leave CTASSE

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

2015-07-31 Thread Pedro Giffuni
On 07/31/15 02:12, Bruce Evans wrote: > On Fri, 31 Jul 2015, Pedro F. Giffuni wrote: > ... > >> static char errbuf[1024]; > > Another static buffer. The function is obviously not reentrant. This > large static buffer mainly wastes space all the time instead of only > when the function i

svn commit: r286134 - head/sys/arm64/arm64

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 15:54:34 2015 New Revision: 286134 URL: https://svnweb.freebsd.org/changeset/base/286134 Log: Try to put the CPU into a low power state if we failed to otherwise halt the system. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation

Re: svn commit: r286070 - in head/contrib/elftoolchain: ar elfdump

2015-07-31 Thread Ed Maste
On 31 July 2015 at 11:33, Pedro Giffuni wrote: > > > FWIW, elftoolchain's brandelf was based on our brandelf, but modified > to use libelf. I think brandelf may not be needed anymore though; it's > main use was to add ELF branding notes to linux binaries for our > linuxulator. > > There was a mess

Re: svn commit: r286070 - in head/contrib/elftoolchain: ar elfdump

2015-07-31 Thread Pedro Giffuni
On 07/31/15 08:03, Ed Maste wrote: >>> Author: emaste >>> Date: Thu Jul 30 12:41:54 2015 >>> New Revision: 286070 >>> URL: https://svnweb.freebsd.org/changeset/base/286070 >>> >>> Log: >>>Add ELF Tool Chain's ar(1) and elfdump(1) to contrib >> >> Thank you! > > Np. Thanks for noting brandelf

svn commit: r286133 - in head/sys: arm64/arm64 conf

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 15:32:32 2015 New Revision: 286133 URL: https://svnweb.freebsd.org/changeset/base/286133 Log: Load the stack in stack_save and stack_save_td. This uses the generalised unwind_frame function to read each stack frame until either the pc or stack are no longer wi

svn commit: r286131 - in head/sys: amd64/conf i386/conf

2015-07-31 Thread Glen Barber
Author: gjb Date: Fri Jul 31 15:23:48 2015 New Revision: 286131 URL: https://svnweb.freebsd.org/changeset/base/286131 Log: Pull pmspcv (pms(4)) from GENERIC. It has PCI ID conflicts with ahd(4), mvs(4), and likely other drivers. MFC after:immediately With hat: re Sponsored by

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

2015-07-31 Thread Warner Losh
> On Jul 31, 2015, at 3:24 AM, Ed Schouten wrote: > > Hi John-Mark, > > Maybe it would make more sense to just remove this manual page? > > It looks like there are already some pieces of code in our source tree > that use _Static_assert(), which is good. Maybe it would be better to > to leave

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

2015-07-31 Thread Warner Losh
> On Jul 31, 2015, at 1:48 AM, John-Mark Gurney wrote: > > Author: jmg > Date: Fri Jul 31 07:48:08 2015 > New Revision: 286110 > URL: https://svnweb.freebsd.org/changeset/base/286110 > > Log: > temporarily fix build.. This isn't the final fix, and testing is > still on going, but it has pass

svn commit: r286130 - in head/sys: arm64/arm64 arm64/include conf

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 14:17:26 2015 New Revision: 286130 URL: https://svnweb.freebsd.org/changeset/base/286130 Log: Add support for uma_small_alloc and uma_small_free, and make use of these. This is copied from the amd64 version with minor changes. These should be merged into a sin

svn commit: r286129 - head/sys/arm64/arm64

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 13:39:51 2015 New Revision: 286129 URL: https://svnweb.freebsd.org/changeset/base/286129 Log: Add memrw. This has had minimal testing, and will likely panic the kernel when trying to read data from outside the DMAP region. I expect this panic to be from within

svn commit: r286128 - head/sys/arm64/include

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 13:34:43 2015 New Revision: 286128 URL: https://svnweb.freebsd.org/changeset/base/286128 Log: Add more atomic_swap_* functions. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/include/atomic.h Modified

svn commit: r286127 - head/sys/arm64/include

2015-07-31 Thread Andrew Turner
Author: andrew Date: Fri Jul 31 13:32:25 2015 New Revision: 286127 URL: https://svnweb.freebsd.org/changeset/base/286127 Log: Add VIRT_IN_DMAP to check if a virtual address is from the DMAP range. Obtained from:ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head

Re: svn commit: r286070 - in head/contrib/elftoolchain: ar elfdump

2015-07-31 Thread Ed Maste
>> Author: emaste >> Date: Thu Jul 30 12:41:54 2015 >> New Revision: 286070 >> URL: https://svnweb.freebsd.org/changeset/base/286070 >> >> Log: >>Add ELF Tool Chain's ar(1) and elfdump(1) to contrib > > Thank you! Np. Thanks for noting brandelf, I just copied it over as well. There's a little

svn commit: r286126 - head/contrib/elftoolchain/brandelf

2015-07-31 Thread Ed Maste
Author: emaste Date: Fri Jul 31 12:37:40 2015 New Revision: 286126 URL: https://svnweb.freebsd.org/changeset/base/286126 Log: Add ELF Tool Chain's brandelf(1) to contrib Noticed by pfg after r286070 (ar and elfdump) Added: - copied from r286125, vendor/elftoolchain/dist/brandelf/ Dire

svn commit: r286123 - head/sys/kern

2015-07-31 Thread Ed Schouten
Author: ed Date: Fri Jul 31 10:46:45 2015 New Revision: 286123 URL: https://svnweb.freebsd.org/changeset/base/286123 Log: Fix accidental line wrapping introduced in r286122. Modified: head/sys/kern/kern_fork.c Modified: head/sys/kern/kern_fork.c ==

svn commit: r286122 - in head/sys: compat/cloudabi compat/linux kern sys

2015-07-31 Thread Ed Schouten
Author: ed Date: Fri Jul 31 10:21:58 2015 New Revision: 286122 URL: https://svnweb.freebsd.org/changeset/base/286122 Log: Limit rights on process descriptors. On CloudABI, the rights bits returned by cap_rights_get() match up with the operations that you can actually perform on the file d

svn commit: r286121 - in head/sys: arm64/arm64 arm64/conf arm64/include conf

2015-07-31 Thread Zbigniew Bodek
Author: zbb Date: Fri Jul 31 10:00:45 2015 New Revision: 286121 URL: https://svnweb.freebsd.org/changeset/base/286121 Log: Apply erratum for mrs ICC_IAR1_EL1 speculative execution on ThunderX ERRATUM: 22978, 23154 PASS (rev.): 1.0/1.1 Reviewed by: imp Obtained from: Semihalf

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

2015-07-31 Thread Ed Schouten
Hi John-Mark, Maybe it would make more sense to just remove this manual page? It looks like there are already some pieces of code in our source tree that use _Static_assert(), which is good. Maybe it would be better to to leave CTASSERT() undocumented, so that it becomes less likely that new code

svn commit: r286118 - head/sys/dev/usb/controller

2015-07-31 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jul 31 09:12:31 2015 New Revision: 286118 URL: https://svnweb.freebsd.org/changeset/base/286118 Log: Limit the number of times we loop inside the DWC OTG poll handler to avoid starving other fast interrupts. Fix a comment while at it. MFC after:1 week Sugg

svn commit: r286114 - head/sys/net

2015-07-31 Thread Andrey V. Elsukov
Author: ae Date: Fri Jul 31 09:04:22 2015 New Revision: 286114 URL: https://svnweb.freebsd.org/changeset/base/286114 Log: Ansify if_stf.c Modified: head/sys/net/if_stf.c Modified: head/sys/net/if_stf.c == --- head/sy

svn commit: r286112 - head/sys/netinet

2015-07-31 Thread Andrey V. Elsukov
Author: ae Date: Fri Jul 31 09:02:28 2015 New Revision: 286112 URL: https://svnweb.freebsd.org/changeset/base/286112 Log: Remove unneded #include "opt_inet.h". Modified: head/sys/netinet/ip_ecn.h Modified: head/sys/netinet/ip_ecn.h

svn commit: r286111 - head/sys/boot/forth

2015-07-31 Thread Ed Schouten
Author: ed Date: Fri Jul 31 08:45:35 2015 New Revision: 286111 URL: https://svnweb.freebsd.org/changeset/base/286111 Log: Document the existence of cloudabi_load and cloudabi64_load. Modified: head/sys/boot/forth/loader.conf Modified: head/sys/boot/forth/loader.conf =

svn commit: r286110 - head/sys/net

2015-07-31 Thread John-Mark Gurney
Author: jmg Date: Fri Jul 31 07:48:08 2015 New Revision: 286110 URL: https://svnweb.freebsd.org/changeset/base/286110 Log: temporarily fix build.. This isn't the final fix, and testing is still on going, but it has passed world for mips and powerpc... I know this has an extra semicolon,

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

2015-07-31 Thread Bruce Evans
On Fri, 31 Jul 2015, John-Mark Gurney wrote: Bruce Evans wrote this message on Fri, Jul 31, 2015 at 16:21 +1000: On Fri, 31 Jul 2015, John-Mark Gurney wrote: Log: The implementation note isn't true anymore.. Not that anyone reads it, but those that do, remind them that this isn't usable i

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

2015-07-31 Thread Bruce Evans
On Fri, 31 Jul 2015, Pedro F. Giffuni wrote: Log: Buffer overflow in wall(1). This affected syslogd, wall and talkd. Detected by FORTIFY_SOURCE GSoC (with clang). Old versions got this wrong by using strcpy() instead of strlcpy(). The fix using strlcpy() got this wrong by using a wrong buf

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

2015-07-31 Thread John-Mark Gurney
Bruce Evans wrote this message on Fri, Jul 31, 2015 at 16:21 +1000: > On Fri, 31 Jul 2015, John-Mark Gurney wrote: > > > Log: > > The implementation note isn't true anymore.. > > > > Not that anyone reads it, but those that do, remind them that this > > isn't usable in userland... I can't wait