Re: svn commit: r348843 - head/sys/vm

2019-06-09 Thread Bruce Evans
On Mon, 10 Jun 2019, Doug Moore wrote: Log: There are times when a len==0 parameter to mmap is okay. But on a 32-bit machine, a len parameter just a few bytes short of 4G, rounded up to a page boundary and hitting zero then, is not okay. Return failure in that case. Some overflows still oc

Re: svn commit: r348843 - head/sys/vm

2019-06-09 Thread Doug Moore
-fwrapv concerns signed arithmetic.  This calculation is with unsigned arithmetic, and the possibility of wrapping around to 0 is part of the language. Doug Moore On 6/10/19 1:35 AM, Andriy Gapon wrote: > On 10/06/2019 06:07, Doug Moore wrote: >> Author: dougm >> Date: Mon Jun 10 03:07:10 2019 >>

Re: svn commit: r348843 - head/sys/vm

2019-06-09 Thread Andriy Gapon
On 10/06/2019 06:07, Doug Moore wrote: > Author: dougm > Date: Mon Jun 10 03:07:10 2019 > New Revision: 348843 > URL: https://svnweb.freebsd.org/changeset/base/348843 > > Log: > There are times when a len==0 parameter to mmap is okay. But on a > 32-bit machine, a len parameter just a few bytes

svn commit: r348847 - head/sys/sys

2019-06-09 Thread Dmitry Chagin
Author: dchagin Date: Mon Jun 10 05:28:03 2019 New Revision: 348847 URL: https://svnweb.freebsd.org/changeset/base/348847 Log: Use C11 anonymous unions. PR: 215202 Reported by: glebius MFC after:2 weeks Modified: head/sys/sys/ucred.h Modified: head/sys/sys/ucred.h ===

Re: svn commit: r348843 - head/sys/vm

2019-06-09 Thread Doug Moore
I understand that I ought to have included this in the previous checkin. MFC after: 3 days and that my description of the appropriateness of len==0 passed to mmap was imprecise.  I regret the error. Doug Moore On 6/9/19 10:07 PM, Doug Moore wrote: > Author: dougm > Date: Mon Jun 10 03:07:10 201

svn commit: r348845 - head/sys/powerpc/powernv

2019-06-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 10 03:24:38 2019 New Revision: 348845 URL: https://svnweb.freebsd.org/changeset/base/348845 Log: powernv: Port HMI handler to use the message framework When an HMI occurs a message event also gets created with the details of the exception. Hook into the mes

svn commit: r348844 - head/sys/powerpc/powernv

2019-06-09 Thread Justin Hibbits
Author: jhibbits Date: Mon Jun 10 03:16:55 2019 New Revision: 348844 URL: https://svnweb.freebsd.org/changeset/base/348844 Log: powerpc/powernv: Reduce the scope of the sensor guarding mutex vmem_xalloc() cannot be called while holding a nonblocking mutex, warned by WITNESS. The lock may

svn commit: r348843 - head/sys/vm

2019-06-09 Thread Doug Moore
Author: dougm Date: Mon Jun 10 03:07:10 2019 New Revision: 348843 URL: https://svnweb.freebsd.org/changeset/base/348843 Log: There are times when a len==0 parameter to mmap is okay. But on a 32-bit machine, a len parameter just a few bytes short of 4G, rounded up to a page boundary and hitti

svn commit: r348842 - head/usr.bin/tail

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 22:55:21 2019 New Revision: 348842 URL: https://svnweb.freebsd.org/changeset/base/348842 Log: tail: fix the checks if the file was rotated The freopen(3) was replaced with fileargs_open(3) and fclose(3). In the following function, we skip if the stream is

svn commit: r348841 - head/cddl/usr.sbin/dtrace/tests/amd64

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 22:45:07 2019 New Revision: 348841 URL: https://svnweb.freebsd.org/changeset/base/348841 Log: DTrace: add a top level makefile to the new test suit Pointed out by: markj Added: head/cddl/usr.sbin/dtrace/tests/amd64/Makefile (contents, props change

svn commit: r348840 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:52:26 2019 New Revision: 348840 URL: https://svnweb.freebsd.org/changeset/base/348840 Log: Remove unused mcall_trap() function The mcall_trap() dummy function is unused, and should be removed as we are unlikely to support M-mode traps any time soon.

svn commit: r348839 - head/sys/riscv/conf

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:50:35 2019 New Revision: 348839 URL: https://svnweb.freebsd.org/changeset/base/348839 Log: RISC-V: Clean up some GENERIC options Some of the config options that are disabled by default seem to be only for historical reasons. Enable those that appear to n

svn commit: r348838 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:48:36 2019 New Revision: 348838 URL: https://svnweb.freebsd.org/changeset/base/348838 Log: RISC-V: Announce real and available memory at boot Most architectures print their total (real) and available memory during boot. Properly initialize the realmem gl

svn commit: r348837 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:45:48 2019 New Revision: 348837 URL: https://svnweb.freebsd.org/changeset/base/348837 Log: Add TSLOG events to initriscv() Add the enter and exit events, similar to what's found in hammer_time() on amd64. We must use TSRAW as the pcpu isn't yet initial

svn commit: r348836 - in head/sys: conf riscv/include riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:43:38 2019 New Revision: 348836 URL: https://svnweb.freebsd.org/changeset/base/348836 Log: Fix global pointer relaxations in the RISC-V kernel The gp register is intended to used by the linker as another means of performing relaxations, and should point

svn commit: r348835 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:36:51 2019 New Revision: 348835 URL: https://svnweb.freebsd.org/changeset/base/348835 Log: Remove block of dead code Approved by: markj (mentor) Modified: head/sys/riscv/riscv/exception.S Modified: head/sys/riscv/riscv/exception.S

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

2019-06-09 Thread Vincenzo Maffione
Author: vmaffione Date: Sun Jun 9 12:41:21 2019 New Revision: 348834 URL: https://svnweb.freebsd.org/changeset/base/348834 Log: bhyve: vtnet: simplify thread synchronization On vtnet device reset it is necessary to wait for threads to stop TX and RX processing. However, the rx_in_progres

svn commit: r348833 - head/usr.bin/tail

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 11:21:29 2019 New Revision: 348833 URL: https://svnweb.freebsd.org/changeset/base/348833 Log: tail: style nits Modified: head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/tail.c ==